:root {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-raise: #fffdf8;
  --ink: #1b2430;
  --muted: #5c6573;
  --line: #e3d9c8;
  --gold: #8a6232;
  --gold-soft: #f3e6d2;
  --blue: #1d4e89;
  --focus: #8a6232;
  --badge: #1b2430;
  --badge-ink: #f3efe6;
  --shadow: 0 1px 0 rgba(27, 36, 48, 0.04);
  --max: 40rem;
  --font: "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101820;
    --bg-raise: #18222d;
    --ink: #e7eef6;
    --muted: #a8b4c2;
    --line: #2c3a48;
    --gold: #e2c27a;
    --gold-soft: #2a2418;
    --blue: #9ec4ef;
    --focus: #e2c27a;
    --badge: #e7eef6;
    --badge-ink: #101820;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101820;
  --bg-raise: #18222d;
  --ink: #e7eef6;
  --muted: #a8b4c2;
  --line: #2c3a48;
  --gold: #e2c27a;
  --gold-soft: #2a2418;
  --blue: #9ec4ef;
  --focus: #e2c27a;
  --badge: #e7eef6;
  --badge-ink: #101820;
  --shadow: none;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--badge);
  color: var(--badge-ink);
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  z-index: 2;
}

.skip:focus { transform: none; }

a { color: var(--blue); }

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-left: auto;
}

.nav a {
  color: inherit;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.theme-toggle {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

main { padding: 1.75rem 0 3rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0.2rem 0 0.6rem; }

h2 { font-size: 1.45rem; margin: 2rem 0 0.5rem; }

h3 { font-size: 1.15rem; margin: 1.4rem 0 0.35rem; }

.lede { font-size: 1.15rem; }

.panel {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  margin: 1.25rem 0;
}

.panel strong { font-weight: 650; }

.draft {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  margin: 0 0 1.25rem;
}

.stations { list-style: none; padding: 0; margin: 0.5rem 0 0; }

.stations li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.35rem 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.stations li:first-child { border-top: 0; }

.freq {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-weight: 650;
}

.store-badge {
  display: inline-block;
  margin: 0.4rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  background: var(--badge);
  color: var(--badge-ink);
  font-weight: 650;
}

.store-badge small {
  display: block;
  font-weight: 450;
  opacity: 0.85;
}

dl { margin: 0; }

dt { font-weight: 650; margin-top: 1rem; }

dd { margin: 0.2rem 0 0; color: var(--ink); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}

th, td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { width: 40%; color: var(--muted); font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.4rem;
}

.site-footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
