:root {
  color-scheme: dark;
  --ink: #f8f6ff;
  --muted: #d6cee8;
  --night: #100b1b;
  --plum: #29153f;
  --violet: #7f5bc7;
  --gold: #f1ca73;
  --gold-dark: #2b1a00;
  --line: #6f5a91;
  --surface: #1b122a;
  --surface-raised: #26173b;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--gold); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .16em; }
a:focus-visible, button:focus-visible, input:focus-visible, audio:focus-visible {
  outline: .2rem solid #fff;
  outline-offset: .2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: #fff;
  color: #100b1b;
}
.skip-link:focus { top: 1rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
nav a { color: var(--ink); }

.hero,
.section {
  max-width: 78rem;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 44rem;
}

.hero h1 {
  margin: .25rem 0 1rem;
  font-size: clamp(3.5rem, 10vw, 7.75rem);
  line-height: .92;
  letter-spacing: -.05em;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-family: system-ui, sans-serif;
  font-size: .85rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lede { max-width: 44rem; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.frequency { color: var(--muted); }

figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: .75rem; color: var(--muted); font-size: .95rem; }

.show-art img {
  border: 1px solid var(--gold);
  box-shadow: 1.1rem 1.1rem 0 var(--plum);
}

.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0; }
.button {
  display: inline-block;
  min-height: 3rem;
  padding: .75rem 1.05rem;
  border: 2px solid var(--gold);
  font-family: system-ui, sans-serif;
  font-weight: 750;
  text-decoration: none;
}
.button-primary { background: var(--gold); color: var(--gold-dark); }
.button-secondary { color: var(--gold); background: transparent; }
.button:hover { background: #fff; border-color: #fff; color: var(--night); }

.section { border-top: 1px solid var(--line); }
.section h2 { margin: .35rem 0 1.5rem; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.06; }

.about, .recommendation { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); }
.about-copy p:first-child { margin-top: 0; }
.recommendation-card { padding: 2rem; border-left: .35rem solid var(--gold); background: var(--surface); }
.recommendation-card h3 { margin: .2rem 0 .8rem; font-size: 2rem; }
.recommendation-label { margin: 0; color: var(--gold); font: 750 .85rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; }

.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.feed-status { max-width: 27rem; color: var(--muted); font-family: system-ui, sans-serif; font-size: .9rem; }
.episode-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.episode-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-top: .35rem solid var(--gold);
  background: var(--surface);
}
.episode-card h3 { margin: .85rem 0; font-size: 1.35rem; line-height: 1.25; }
.episode-card p { color: var(--muted); }
.episode-card audio { width: 100%; margin-top: auto; }
.episode-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: var(--gold); font-family: system-ui, sans-serif; font-size: .82rem; font-weight: 700; }
.all-episodes { margin-top: 2rem; font-weight: 700; }

.tcast { background: var(--surface-raised); }
.tcast-copy { max-width: 54rem; }
.tcast ol { padding-left: 1.35rem; }
.tcast li { margin-bottom: .65rem; }
.feed-tools { margin-top: 2rem; }
.feed-tools label { display: block; margin-bottom: .4rem; font-family: system-ui, sans-serif; font-weight: 750; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input {
  min-width: 0;
  flex: 1;
  padding: .8rem;
  border: 2px solid var(--line);
  background: var(--night);
  color: var(--ink);
  font-size: 1rem;
}
.copy-row button {
  padding: .7rem 1rem;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--gold-dark);
  font: 750 1rem system-ui, sans-serif;
  cursor: pointer;
}
#copy-status { min-height: 1.6em; color: var(--muted); }

.sources ul { padding-left: 1.25rem; }
.sources li { margin-bottom: .7rem; }
.technical-details { margin-top: 2rem; border: 1px solid var(--line); background: var(--surface); }
.technical-details summary { padding: 1rem 1.25rem; color: var(--gold); font: 750 1rem system-ui, sans-serif; cursor: pointer; }
.technical-details summary:hover { background: var(--surface-raised); }
.technical-details-content { padding: 0 1.25rem 1.25rem; }
.technical-details code { overflow-wrap: anywhere; color: #fff; }
.community { background: var(--surface); }
.community > p, #mastodon-profile { max-width: 54rem; }
.mastodon-posts { display: grid; gap: 1rem; margin-top: 1.5rem; }
.mastodon-post { padding: 1.25rem; border: 1px solid var(--line); background: var(--night); }
.mastodon-post time { color: var(--gold); font: 700 .85rem system-ui, sans-serif; }

footer { max-width: 78rem; margin: 0 auto; padding: 2rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 54rem) {
  .hero, .about, .recommendation { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 3rem; }
  .show-art { max-width: 32rem; }
  .episode-list { grid-template-columns: 1fr; }
  .section-heading { display: block; }
}

@media (max-width: 38rem) {
  .site-header { display: block; padding: 1rem; }
  nav { margin-top: .8rem; gap: .6rem 1rem; }
  .hero, .section { padding: 3.5rem 1rem; }
  .hero h1 { font-size: clamp(3.2rem, 21vw, 5rem); }
  .copy-row { display: block; }
  .copy-row button { width: 100%; margin-top: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
