/* The landing page, over viewer.css's colours: a column of sections, dark
   as the spectrograms on it. */

:root {
  --teal: #21918c;
  --green: #7ee787;
  --soft: #b9c0cc;
  --line: rgba(217, 221, 228, 0.1);
  --card: #171a20;
  --wide: 1120px;
  --gutter: max(16px, calc((100% - var(--wide)) / 2));
}

html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { display: block; height: auto; min-height: 100%; font-size: 15px; line-height: 1.55; }

a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

code {
  font: 0.86em/1 ui-monospace, "Cascadia Code", Consolas, monospace;
  background: rgba(217, 221, 228, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
}

/* --- the bar along the top ------------------------------------------------- */

header.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(17, 19, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.logo {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.logo rect { stroke: var(--frame); stroke-width: 1.4; }

.site-nav nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.site-nav nav a { color: var(--muted); text-decoration: none; }
.site-nav nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  header.site-nav { position: static; }
  .site-nav nav { margin-left: 0; width: 100%; }
}

/* --- the page --------------------------------------------------------------- */

.site { max-width: var(--wide); margin: 0 auto; padding: 0 16px 24px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 56px 0 44px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 55% 60% at 78% 45%, rgba(33, 145, 140, 0.16), transparent 70%);
}

@media (min-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 80px 0 64px; }
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow a { color: inherit; }

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 750;
  text-wrap: balance;
}

.lead { margin: 0; max-width: 34em; color: var(--soft); font-size: 17px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.button {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #16181d; }
.button.primary:hover { background: #ff9d45; }
.button.ghost { border: 1px solid var(--frame); color: var(--text); }
.button.ghost:hover { border-color: var(--text); }

.status {
  margin: 28px 0 0;
  max-width: 36em;
  padding: 10px 14px;
  border-left: 3px solid var(--teal);
  background: rgba(33, 145, 140, 0.08);
  border-radius: 0 6px 6px 0;
  color: var(--soft);
  font-size: 14px;
}

.status b { color: var(--text); }

/* --- the featured pass ------------------------------------------------------ */

.featured {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.featured .plot { position: relative; display: block; }

.spectrogram {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #1d2129, #14171c);
}

.featured .spectrogram { aspect-ratio: 16 / 10; }

.tick {
  position: absolute;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(17, 19, 23, 0.7);
  color: var(--text);
  font: 11px/1.3 ui-monospace, Consolas, monospace;
  pointer-events: none;
}

.tick.top { top: 8px; left: 8px; }
.tick.bottom { bottom: 8px; left: 8px; }
.tick.right { bottom: 8px; right: 8px; }

.featured figcaption { padding: 12px 16px 14px; color: var(--muted); font-size: 13.5px; }
.featured figcaption b { color: var(--text); }

.sky { display: block; width: 100%; aspect-ratio: 16 / 10; background: #14171c; }
.sky .grid { stroke: var(--grid); stroke-width: 0.6; }
.sky .curve { fill: none; stroke: #fde725; stroke-width: 2.5; stroke-linecap: round; }
.sky .curve.faint { stroke: var(--teal); stroke-width: 1.5; opacity: 0.8; }

/* --- the numbers ------------------------------------------------------------ */

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.number { padding: 18px 20px; background: var(--bg); }

.number b {
  display: block;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.number span { color: var(--muted); font-size: 13px; }

/* --- sections ---------------------------------------------------------------- */

.section { padding: 72px 0 0; }
.section h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.01em; }
.intro { margin: 0 0 28px; max-width: 44em; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 920px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.step {
  padding: 20px 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.step svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step svg .dot { fill: var(--accent); stroke: none; }
.step h3 { margin: 12px 0 6px; font-size: 16px; }
.step:not(.next) h3::before { counter-increment: step; content: counter(step) " · "; color: var(--muted); font-weight: 500; }
.step p { margin: 0; color: var(--soft); font-size: 14px; }
.step.next { background: transparent; border-style: dashed; border-color: var(--frame); }
.step.next svg { stroke: var(--teal); }
.step.next svg .dot { fill: var(--teal); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s;
}

.card:hover { transform: translateY(-2px); border-color: var(--frame); }
.card .thumb { aspect-ratio: 2 / 1; border-bottom: 1px solid var(--line); }
.card-body { padding: 14px 16px 16px; }
.card h3 { margin: 0; font-size: 17px; }
.card h3 span { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.when { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }

.chips li {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(217, 221, 228, 0.07);
  color: var(--soft);
  font-size: 12px;
}

.chips li.heard { color: var(--green); background: rgba(126, 231, 135, 0.08); }
.chips li.named { color: #ffd84d; background: rgba(255, 216, 77, 0.08); }

.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.stations { width: 100%; border-collapse: collapse; font-size: 14px; }
table.stations th, table.stations td { padding: 12px 16px; text-align: left; vertical-align: top; }
table.stations th { color: var(--muted); font-weight: 500; font-size: 13px; border-bottom: 1px solid var(--line); }
table.stations tr + tr td { border-top: 1px solid var(--line); }
table.stations .muted { display: block; color: var(--muted); font-size: 12.5px; }
table.stations td.name a { font-weight: 600; }

.heritage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 28px;
  margin-top: 72px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 140, 40, 0.08), rgba(33, 145, 140, 0.07));
  border: 1px solid var(--line);
  border-radius: 14px;
}

.heritage .mark {
  align-self: start;
  color: var(--accent);
  font: 700 30px/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
}

.heritage h2 { margin: 0 0 10px; font-size: 24px; }
.heritage p { margin: 0 0 10px; max-width: 52em; color: var(--soft); }
.heritage p:last-child { margin: 0; }

@media (min-width: 720px) {
  .heritage { grid-template-columns: auto minmax(0, 1fr); padding: 32px 36px; }
}

/* --- the foot ---------------------------------------------------------------- */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 72px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-foot .brand { font-weight: 500; letter-spacing: 0; }
.site-foot .logo { width: 20px; height: 20px; }
