:root {
  --ink: #061018;
  --deep: #0a1c28;
  --sea: #123848;
  --foam: #9ec9c0;
  --aurora: #3ecf9a;
  --filament: #e6a23c;
  --paper: #e8eef1;
  --muted: #8aa0ab;
  --line: rgba(158, 201, 192, 0.18);
  --font-display: "Syne", system-ui, sans-serif;
  --font-callsign: "IBM Plex Mono", ui-monospace, monospace;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(62, 207, 154, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(230, 162, 60, 0.08), transparent 50%),
    linear-gradient(165deg, var(--ink) 0%, var(--deep) 45%, #0d2430 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cpath d='M0 40c20-18 40-18 60 0s40 18 60 0 40-18 60 0' fill='none' stroke='%239ec9c0' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 160px 80px;
  animation: drift 28s linear infinite;
  z-index: 0;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 160px 0; }
}

a {
  color: var(--aurora);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #7ff0c4;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 16, 24, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand .call {
  font-family: var(--font-callsign);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.brand .qth {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--foam);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--filament);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(6, 16, 24, 0.35) 0%,
      rgba(6, 16, 24, 0.28) 35%,
      rgba(6, 16, 24, 0.72) 70%,
      rgba(6, 16, 24, 0.94) 100%
    ),
    url("img/hero-sdr.jpg") center 28% / cover no-repeat;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 30% 70%, rgba(6, 16, 24, 0.55), transparent 70%);
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(230, 162, 60, 0.45), transparent);
  animation: sweep 5.5s var(--ease) infinite;
  pointer-events: none;
}

@keyframes pulse {
  from { transform: scale(0.92); opacity: 0.7; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes sweep {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-8px); }
}

.hero-copy {
  max-width: 40rem;
}

.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-flag img {
  width: 2.4rem;
  height: auto;
  border-radius: 2px;
}

.hero h1,
.hero .callsign {
  margin: 0;
  font-family: var(--font-callsign);
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--paper);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 8px 28px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s var(--ease) both;
}

.hero .tagline {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--foam);
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--filament);
  color: #1a1205;
}

.btn-primary:hover {
  background: #f0b54f;
  color: #1a1205;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--foam);
  color: var(--paper);
}

.page-hero {
  padding: 3.2rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
}

.page-hero p {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  color: var(--muted);
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

.section {
  padding: 2.75rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15;
}

.section h2.cq-title {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section .lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.about-ham {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: start;
}

.about-ham-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15;
}

.erau-logo {
  display: block;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.erau-logo img {
  width: 5.5rem;
  height: auto;
  display: block;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.prose p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-row strong {
  color: var(--foam);
  font-weight: 700;
}

.shack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.9fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.shack-main h2,
.temps-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15;
}

.shack-photo {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 55%;
  margin: 1rem 0 0;
}

.temps-panel {
  padding-left: 0;
}

.temps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.temps-head h2 {
  margin: 0;
}

.temps-head a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.temps-head a:hover {
  color: var(--aurora);
}

.temps {
  display: grid;
  gap: 0.75rem;
}

.temp-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.temp-card span {
  color: var(--foam);
  font-size: 0.95rem;
}

.temp-value {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  text-align: right;
}

.temp-card strong {
  font-family: var(--font-callsign);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.temp-card em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
}

.temp-card.cold strong {
  color: #7ec8ff;
}

.temp-card.hot strong {
  color: #ffb060;
}

.temp-empty,
.temp-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.station-list li {
  padding-left: 1rem;
  border-left: 2px solid var(--aurora);
}

.station-list strong {
  display: block;
  color: var(--paper);
}

.station-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.link-list a {
  text-decoration: none;
  color: var(--paper);
  font-weight: 600;
}

.link-list a:hover {
  color: var(--aurora);
}

.link-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.gallery a {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 0.65rem;
  transition: transform 0.3s var(--ease);
}

.gallery a:hover {
  transform: translateY(-4px);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sea);
}

.gallery figcaption {
  font-size: 0.95rem;
  color: var(--foam);
}

.software-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.software-list li {
  break-inside: avoid;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.software-list a {
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
}

.software-list a:hover {
  color: var(--aurora);
}

.software-list small {
  display: block;
  color: var(--muted);
  margin-top: 0.15rem;
}

.mod-steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  max-width: 42rem;
}

.mod-steps li {
  margin-bottom: 0.55rem;
}

.mod-photos {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mod-photos img {
  width: 100%;
  background: #000;
}

.aside-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.widget-link {
  display: inline-block;
}

.widget-link img {
  max-width: min(100%, 18rem);
  background: #111;
}

.conditions {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.tropo-block h2 {
  margin: 0 0 0.85rem;
}

.tropo-block h2 a {
  color: var(--paper);
  text-decoration: none;
}

.tropo-block h2 a:hover {
  color: var(--aurora);
}

.tropo-map {
  display: block;
}

.tropo-map img {
  width: 100%;
  max-width: 40rem;
  height: auto;
  background: #0a1520;
}

.contact-block {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}

.contact-block a {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
}

.contact-block a:hover {
  color: var(--aurora);
}

.contact-block .label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.qsl-card {
  display: block;
  width: min(100%, 10cm);
  height: auto;
  margin-top: 0.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--foam);
  background: rgba(255, 255, 255, 0.08);
}

.social-link img {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.social-link-wide img {
  width: auto;
  height: 2.1rem;
  max-width: 9.5rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--foam);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-bar {
    flex-wrap: wrap;
  }

  .nav-bar > nav {
    flex: 1 0 100%;
    width: 100%;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0 0.85rem;
  }

  .nav-bar.is-open .nav-list {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 12rem;
  }

  .software-list {
    columns: 1;
  }

  .conditions {
    grid-template-columns: 1fr;
  }

  .shack-grid {
    grid-template-columns: 1fr;
  }

  .about-ham {
    grid-template-columns: 1fr;
  }

  .erau-logo img {
    width: 4.5rem;
  }

  .hero {
    min-height: 78vh;
    padding-top: 3rem;
  }
}
