/* GB7HH — dark. Every colour and type decision lives in :root. */

:root {
  --base:      #060b0e;
  --panel:     rgba(17, 28, 34, 0.72);
  --panel-solid: #111c22;
  --edge:      rgba(120, 200, 210, 0.16);
  --edge-firm: rgba(120, 200, 210, 0.30);
  --ink:       #eaf2f4;
  --ink-soft:  #a5b9c0;
  --ink-faint: #8ca0a8;
  --accent:    #3fd8c4;
  --onair:     #ff5c48;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans:    'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1080px;
  --gutter: clamp(1rem, 5vw, 5.5rem);
}

* { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  background: var(--base); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* --- the corridor hero, home page only --------------------------- */

.hero {
  position: relative; overflow: hidden;
  min-height: 500px;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.75rem 0 3rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/assets/hero-mast-v2.jpg') center 62% / cover no-repeat;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6,11,14,0.70) 0%, rgba(6,11,14,0.10) 26%,
    rgba(6,11,14,0.55) 78%, var(--base) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center;
}

/* --- navigation --------------------------------------------------- */

.site-nav {
  width: 100%;
  padding: 0.8rem 1.5rem; border-radius: 12px;
  background: rgba(10, 20, 25, 0.58); border: 1px solid var(--edge);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.3rem 1.5rem;
}
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem;
  padding: 0.2rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink); font-weight: 600; border-bottom-color: var(--accent);
}

/* --- the HUD panel ------------------------------------------------ */

.hud {
  position: relative; margin-top: 3.25rem;
  width: min(520px, 100%); padding: 2.75rem 3rem 2.25rem;
  text-align: center;
  background: rgba(8, 20, 26, 0.86);
  border: 1px solid rgba(90, 220, 212, 0.42); border-radius: 6px;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 0 60px rgba(63, 216, 196, 0.18),
              inset 0 0 70px rgba(63, 216, 196, 0.06);
}
.hud i {
  position: absolute; width: 46px; height: 46px;
  border: 0 solid var(--accent);
}
.hud i.tl { top: -1px; left: -1px;  border-top-width: 3px; border-left-width: 3px;  border-top-left-radius: 6px; }
.hud i.tr { top: -1px; right: -1px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.hud i.bl { bottom: -1px; left: -1px;  border-bottom-width: 3px; border-left-width: 3px;  border-bottom-left-radius: 6px; }
.hud i.br { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }
.hud b.bar {
  position: absolute; left: 50%; margin-left: -60px;
  width: 120px; height: 3px; background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.hud b.bar.top { top: -2px; }
.hud b.bar.bot { bottom: -2px; }

.hud-call {
  font-family: var(--display); font-size: clamp(3rem, 9vw, 5.125rem);
  font-weight: 700; line-height: 1; margin: 0;
  text-shadow: 0 0 34px rgba(63, 216, 196, 0.45);
}
.hud-freq {
  font-family: var(--mono); font-size: clamp(1.25rem, 4vw, 1.6875rem);
  font-weight: 600; color: var(--accent); margin-top: 0.7rem;
}
.hud-net {
  margin-top: 1.5rem; padding-top: 1.35rem;
  border-top: 1px solid rgba(90, 220, 212, 0.3);
}
.hud-net-name {
  font-family: var(--display); font-size: clamp(1.125rem, 3.5vw, 1.6875rem);
  font-weight: 700; letter-spacing: 0.05em;
}
.hud-net-tg {
  font-family: var(--mono); font-size: clamp(0.9375rem, 3vw, 1.3125rem);
  color: var(--accent); margin-top: 0.4rem; letter-spacing: 0.03em;
}

/* --- compact masthead on inner pages ------------------------------ */

.site-head { padding: 1.75rem 0 0; }
.site-call {
  font-family: var(--display); font-size: 2rem; font-weight: 700;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
  display: inline-block; line-height: 1;
}
.site-strap { margin: 0.35rem 0 1.25rem; color: var(--ink-soft); font-size: 0.9375rem; }

/* --- the readout band --------------------------------------------- */

.readout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--edge-firm); border-bottom: 1px solid var(--edge-firm);
  margin: 2.25rem 0 0;
}
.readout > div { padding: 1.4rem 1.1rem; border-right: 1px solid var(--edge); }
.readout > div:first-child { padding-left: 0; }
.readout > div:last-child { border-right: 0; }
.readout dt {
  font-size: 0.75rem; color: var(--ink-soft);
  letter-spacing: 0.05em; margin-bottom: 0.45rem;
}
.readout dd {
  margin: 0; font-family: var(--mono); font-size: 1.5rem; font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1.15;
  white-space: nowrap;
}
.readout dd.key { color: var(--accent); }
.readout dd small { font-size: 0.8125rem; font-weight: 400; color: var(--ink-soft); }

/* --- content ------------------------------------------------------ */

main { padding: 2.5rem 0 4rem; }
h1 {
  font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700; letter-spacing: -0.015em; margin: 0 0 1rem;
}
h2 {
  font-family: var(--display); font-size: 1.3125rem; font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}
h3 { font-size: 1rem; font-weight: 650; margin: 1.5rem 0 0.4rem; }
p { margin: 0 0 1rem; max-width: 66ch; color: var(--ink); }

.card {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 14px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 1.5rem 1.75rem; margin: 0 0 1.5rem;
}

/* --- tables ------------------------------------------------------- */

table {
  border-collapse: collapse; width: 100%; margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}
th, td {
  text-align: left; padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--edge); vertical-align: top;
}
thead th {
  font-weight: 600; font-size: 0.75rem; color: var(--ink-soft);
  letter-spacing: 0.04em; border-bottom-color: var(--edge-firm);
}
td.num, th.num, .mono {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
tbody tr:hover { background: rgba(63, 216, 196, 0.05); }
.table-scroll { overflow-x: auto; }

/* --- entries, lists, callouts ------------------------------------- */

.entry { padding: 1.1rem 0; border-bottom: 1px solid var(--edge); }
.entry-date {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-soft);
  display: block; margin-bottom: 0.3rem;
}
.entry p:last-child { margin-bottom: 0; }

.linklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.linklist li { padding: 0.6rem 0; border-bottom: 1px solid var(--edge); }
.linklist .note { color: var(--ink-soft); font-size: 0.875rem; }

.note-box {
  background: rgba(63, 216, 196, 0.07);
  border: 1px solid rgba(63, 216, 196, 0.28); border-radius: 12px;
  padding: 1.1rem 1.35rem; margin: 0 0 1.5rem; font-size: 0.9375rem;
}
.note-box p:last-child { margin-bottom: 0; }

.button {
  display: inline-block; margin-top: 0.5rem; padding: 0.85rem 1.6rem;
  border-radius: 8px; background: var(--accent); color: #052023;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}

/* --- local RF panel ------------------------------------------------ */

.rf-panel { margin: 2.5rem 0 0; }
.rf-title {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--edge-firm);
}
.rf-title h2 { margin: 0; font-size: 1.1875rem; }
.rf-title .rf-note { font-size: 0.8125rem; color: var(--ink-soft); }

.rf-head { padding: 1rem 0 0.2rem; }
.rf-lead-label { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.rf-lead { font-size: 1.1875rem; }
.rf-lead-call { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.rf-quiet { color: var(--ink-soft); font-size: 0.9375rem; }

.rf-list { list-style: none; margin: 0.7rem 0 0; padding: 0; }
.rf-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--edge);
}
.rf-call { font-family: var(--mono); font-weight: 600; min-width: 0; }
.rf-suffix { color: var(--ink-faint); font-weight: 400; }
.rf-when {
  text-align: right; font-size: 0.875rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rf-meta {
  grid-column: 1 / -1; font-size: 0.8125rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* --- footer -------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--edge); padding: 1.5rem 0 3rem;
  font-size: 0.8125rem; color: var(--ink-faint);
}
.site-foot a { color: var(--ink-soft); }

/* backdrop-filter is costly; drop the blur where it hurts most. */
@media (max-width: 640px) {
  .card, .site-nav, .hud {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--panel-solid);
  }
  .hero { min-height: 420px; }
  .readout > div { border-right: 0; border-bottom: 1px solid var(--edge); }
}

/* --- in memoriam ---------------------------------------------------- */

.memoriam {
  border: 1px solid var(--edge-firm); border-radius: 14px;
  padding: 1.5rem 1.75rem; margin: 0.5rem 0 2.5rem;
  background: rgba(17, 28, 34, 0.5);
}
.memoriam-label {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 0.4rem;
}
.memoriam h2 { margin: 0 0 0.9rem; font-size: 1.375rem; }
.memoriam .sk {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 400;
  color: var(--ink-soft); margin-left: 0.6rem; letter-spacing: 0.04em;
}
.memoriam-close { color: var(--ink-soft); margin-bottom: 0; }

/* --- gallery -------------------------------------------------------- */

.shot { margin: 0 0 2.5rem; }
.shot img {
  display: block; width: 100%; height: auto; max-width: 720px;
  border: 1px solid var(--edge); border-radius: 12px;
}
.shot figcaption {
  margin-top: 0.7rem; font-size: 0.875rem; color: var(--ink-soft);
  max-width: 62ch;
}
