body {
  padding: 0;
  margin: 0;
  background-color: #1d1f21;
  color: #c5c8c6;
  font-family: 'JuliaMono', monospace;
}

h1 {
  margin: 0;
  font-size: 3.4em;
  letter-spacing: -2px;
  text-align: right;
  color: #b5bd68;
}

h2 {
  margin: 0 0 20px 0;
  font-size: 2.2em;
}

#title {
  width: 90%;
  max-width: 1200px;
  margin: 15px auto;
}

#container {
  margin: 0 auto 15px auto;
  width: 90%;
  max-width: 1200px;
  min-height: 80vh;
  padding: 40px 40px 15px 40px;
  background-color: #222222;
  border: 10px solid #373b41;
  box-sizing: border-box;
  display: flex;
}

@media (max-width: 600px) {
  #container {
    width: 94%;
    padding: 15px 15px 10px 15px;
    border-width: 5px;
  }
}

#main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-content {
  flex: 1;
}

.about-content {
  display: flex;
  margin-bottom: 25px;
}

p {
  margin: 0;
  line-height: 1.6;
}

.links, .qth-block {
  background-color: #1d1f21;
  border: 1px solid #373b41;
  padding: 15px 20px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.links {
  margin: 0 0 30px 0;
  line-height: 1.8;
}

/* === SPILLED LIQUID EFFECT === */
.spill-wrapper {
  position: relative;
  display: block;
  margin: 70px auto;
  max-width: 100%; /* Keeps it from overflowing on small screens */
  width: 700px;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,1));
  transform: skewX(-2deg);
  /* Push the image layout securely to the bottom layer */
  z-index: 0; 
}

.spill-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  transition: all 0.3s ease;

  clip-path: polygon(
    20% 0%, 25% 10%, 40% 5%, 45% 15%, 55% 5%, 60% 15%, 80% 0%,
    95% 20%, 90% 30%, 100% 40%, 90% 50%, 100% 60%, 95% 80%,
    80% 100%, 75% 90%, 60% 95%, 55% 85%, 45% 95%, 40% 85%, 20% 100%,
    5% 80%, 10% 70%, 0% 60%, 10% 50%, 0% 40%, 10% 30%, 5% 20%,
    10% 10%
  );
}

.spill-wrapper:hover .spill-img {
  opacity: 1;
  filter: brightness(1.1);
  transform: scale(1.02) translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  .spill-img {
    transition: none;
  }
}

@media (max-width: 600px) {
  .spill-wrapper {
    transform: none;
  }
}

.bottom-cluster {
  margin-top: auto;
}

.qth-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 30px 0;
}

.qth-block {
  font-size: 0.9em;
  line-height: 1.6;
}

.label {
  color: #81a2be;
  font-weight: bold;
  margin-right: 5px;
}

.antenna-zone {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.radio-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.75em;
  color: #969896;
  text-align: right;
  line-height: 1.4;
  border-right: 2px solid #81a2be;
  padding-right: 10px;
  margin-bottom: 5px;
}

.ascii-tower {
  color: #81a2be;
  font-size: 0.9em;
  line-height: 1.1;
  margin-bottom: -5px;
  font-weight: bold;
}

#button-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-bottom: 15px;
}

a {
  text-decoration: none;
  color: #c5c8c6;
  transition: color 0.1s ease;
}

a:hover {
  color: #81a2be;
}

a:focus-visible {
  outline: 2px solid #81a2be;
  outline-offset: 2px;
}

.shade img { opacity: 1; }
.shade:hover img { opacity: 0.8; }

.footer-ruler {
  margin: 0 0 12px 0;
  border: 0;
  border-top: 1px solid #373b41;
  width: 100%;
}

.contact {
  margin: 0;
  line-height: 1.2;
  font-size: 0.9em;
  color: #b5bd68;
  text-align: center;
}

.contact a {
  color: #81a2be;
}
