/* Threads of Time — the Zeitfäden paper identity, same palette and type.
   Two deliberate differences from the German copy of this file:
     * .brand img is wider, because the „threads of time" wordmark has an
       aspect ratio of 7.56 against „zeitfäden"'s 4.54 — capping it at the
       German 330px would render it 44px tall against the German 73px.
     * the .upcoming-* / --upcoming rules below have no German counterpart;
       they style the pre-launch state, which zeitfaeden.net never had. */

:root{
  --bg:#f4efe5;
  --paper:#faf6ee;
  --text:#2b2620;
  --muted:#6d6357;
  --faint:#736a5f;   /* 4.63:1 on --bg (was #8d8478 = 3.21:1) */
  /* warm accent sampled from the hearth-light in the episode artwork,
     replacing the periwinkle that fought the paper palette */
  --accent:#9c4f2a;
  --accent-soft:#a44e18;  /* 4.98:1 on --bg, 5.7:1 under white (was 3.46:1) */
  --border:rgba(43,38,32,.14);
  --border-soft:rgba(43,38,32,.08);

  --max:1040px;
  --measure:68ch;
  --radius:12px;

  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  /* Brand mark + labels: the channel's real typeface. Headlines: an old-style
     serif that pairs with it and stays readable at length. */
  --brand:'Cascadia Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --serif:'EB Garamond',ui-serif,Georgia,"Iowan Old Style",serif;
}

*{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background-color:var(--bg);
  background-image:url("/assets/img/tile.webp");
  background-repeat:repeat;
  background-size:560px auto;
  line-height:1.65;
  font-size:17px;
}

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

a{color:var(--accent);text-decoration-thickness:1.5px;text-underline-offset:3px}
a:hover{color:var(--accent-soft)}

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

/* ─── Hero ─────────────────────────────────────────────── */

.hero{
  padding:76px 0 40px;
  text-align:center;
}

 /* Wordmark ships as an SVG traced from Cascadia Mono SemiLight, so it renders
    identically everywhere — no dependency on the font being installed or loaded.
    The <img> alt carries the text, so the h1 stays a real heading for search. */
.brand{
  margin:0;
  line-height:0;
}
.brand img{
  width:clamp(250px,44vw,470px);
  height:auto;
  margin:0 auto;
  color:var(--text);
}

.hero-tagline{
  font-family:var(--brand);
  margin:20px auto 0;
  color:var(--muted);
  font-size:clamp(13px,1.7vw,15.5px);
  font-weight:400;
  letter-spacing:.01em;
}

.hero-rule{
  width:64px;
  height:1px;
  background:var(--border);
  border:0;
  margin:34px auto 0;
}

/* ─── Section furniture ────────────────────────────────── */

 /* Most sections also carry .wrap, and `.wrap{padding:0 24px}` (a class) beats
    `section{...}` (an element) on specificity — which silently removed all
    vertical padding and left the headings sitting almost on top of whatever
    preceded them. Match .wrap's specificity so the rhythm actually applies. */
section{padding:72px 0 52px}
section.wrap{padding:72px 24px 52px}
section.intro{padding-top:20px}

.kicker{
  font-family:var(--sans);
  font-size:13px;
  letter-spacing:.05em;
  color:var(--faint);
  margin:0 0 14px;
  font-weight:500;
}

 /* Section titles need real size contrast to read as headings at all — at
    23px they were just bold body text. Kept in the sans so they stay clearly
    distinct from the Garamond that carries episode and series titles. */
.section-title{
  font-family:var(--sans);
  font-size:clamp(26px,2.6vw,32px);
  font-weight:600;
  color:var(--text);
  margin:0 0 30px;
  line-height:1.2;
  letter-spacing:-.005em;
}

/* ─── Latest episode ───────────────────────────────────── */

.latest{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:34px;
  align-items:center;
  background:var(--paper);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  padding:22px;
}

.latest-figure{
  margin:0;
  border-radius:8px;
  overflow:hidden;
  background:#211c17;
}

.latest-figure img{width:100%}

.latest h2{
  font-family:var(--serif);
  font-size:36px;
  line-height:1.2;
  margin:0 0 8px;
  font-weight:500;
}

.latest-series{
  color:var(--muted);
  font-size:15px;
  margin:0 0 14px;
}

.latest p.excerpt{
  margin:0 0 20px;
  color:var(--text);
  max-width:46ch;
}

/* ─── Buttons ──────────────────────────────────────────── */

.btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:var(--accent);
  color:#fff;
  padding:11px 20px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  font-size:15.5px;
  transition:background .15s ease;
}
.btn:hover{background:var(--accent-soft);color:#fff}

.btn-ghost{
  display:inline-block;
  color:var(--accent);
  font-weight:600;
  text-decoration:none;
  border-bottom:1.5px solid rgba(156,79,42,.35);
  padding-bottom:1px;
}
.btn-ghost:hover{border-bottom-color:var(--accent-soft)}

/* ─── Series cards ─────────────────────────────────────── */

/* 2×2 at desktop: four series divide evenly, no orphaned last card. */
.series-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(390px,1fr));
  gap:22px;
}

.series-card{
  display:flex;
  flex-direction:column;
  background:var(--paper);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  overflow:hidden;
}

.series-cover{
  aspect-ratio:3/2;
  background:#211c17;
  overflow:hidden;
}
.series-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.series-card > div{padding:18px 20px 20px}

.series-cover a{display:block;height:100%}
.series-cover img{transition:transform .35s ease}
.series-card:hover .series-cover img{transform:scale(1.03)}
.series-card h3 a{
  color:inherit;
  text-decoration:none;
}
.series-card h3 a:hover{color:var(--accent)}

.series-card.upcoming .series-cover{
  background:rgba(43,38,32,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--faint);
  font-size:13.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.series-card h3{
  font-family:var(--serif);
  font-size:22px;
  margin:0 0 5px;
  font-weight:500;
  line-height:1.25;
}

.series-meta{
  font-size:13.5px;
  color:var(--faint);
  margin:0 0 10px;
}

.count{
  display:inline-block;
  font-family:var(--brand);
  background:rgba(156,79,42,.09);
  color:var(--accent);
  border-radius:999px;
  padding:2px 9px;
  font-weight:500;
  font-size:11.5px;
  margin-left:6px;
  vertical-align:middle;
}

.series-card p{
  margin:0 0 12px;
  font-size:15.5px;
  color:var(--muted);
  line-height:1.6;
}

.series-card.upcoming{opacity:.62}

/* ─── Recent episode list ──────────────────────────────── */

.episodes{list-style:none;margin:0;padding:0}

.episodes li{
  display:grid;
  grid-template-columns:104px 1fr auto;
  gap:16px;
  align-items:baseline;
  padding:13px 4px;
  border-bottom:1px solid var(--border-soft);
}
.episodes li:first-child{border-top:1px solid var(--border-soft)}

.ep-date{font-family:var(--brand);color:var(--faint);font-size:13px}
.ep-title{font-size:16px}
.ep-title a{text-decoration:none;color:var(--text)}
.ep-title a:hover{color:var(--accent)}
.ep-num{font-family:var(--brand);color:var(--faint);font-size:12.5px}
.ep-series{display:block;color:var(--faint);font-size:13.5px;margin-top:2px}

/* ─── Prose block ──────────────────────────────────────── */

.prose{max-width:var(--measure)}
.prose p{margin:0 0 15px;color:var(--muted)}
.prose strong{color:var(--text)}

/* ─── Footer ───────────────────────────────────────────── */

.site-footer{
  margin-top:30px;
  border-top:1px solid var(--border);
  padding:34px 0 56px;
  font-size:14.5px;
  color:var(--faint);
}

.footer-cta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
  margin-bottom:26px;
}

.kicker--tight{margin-bottom:6px}
.footer-headline{color:var(--text);font-size:17px}

.footer-links{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  align-items:center;
}
.footer-links a{color:var(--muted);text-decoration:none}
.footer-links a:hover{color:var(--accent)}

/* ─── Series detail page ───────────────────────────────── */

.top-nav{padding:22px 0 0;font-size:14.5px}
.top-nav a{color:var(--muted);text-decoration:none}
.top-nav a:hover{color:var(--accent)}

.series-hero{
  display:grid;
  grid-template-columns:1fr .8fr;
  gap:34px;
  align-items:start;
  padding:26px 0 8px;
}

.series-hero h1{
  font-family:var(--serif);
  font-size:clamp(34px,5vw,48px);
  margin:0 0 8px;
  font-weight:500;
  line-height:1.15;
}

.series-hero .series-meta{font-size:15px;margin-bottom:16px}

.series-hero figure{margin:0;border-radius:10px;overflow:hidden;background:#211c17}

.pills{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 0;padding:0;list-style:none}
.pills li{
  border:1px solid var(--border-soft);
  background:rgba(255,255,255,.4);
  border-radius:999px;
  padding:4px 11px;
  font-size:13.5px;
  color:var(--muted);
}

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width:820px){
  .latest,.series-hero{grid-template-columns:1fr}
  .latest-figure{order:-1}
  .episodes li{grid-template-columns:1fr;gap:3px}
  .ep-date{order:2;font-size:13px}
  .hero{padding:52px 0 30px}
  section{padding:38px 0}
}

/* Series context inside the featured-episode block */
.series-context{
  margin:0 0 20px;
  font-size:15px;
  color:var(--muted);
  line-height:1.6;
  max-width:46ch;
}
.series-context strong{color:var(--text)}

/* The intro sits directly under the hero — no double top padding */


/* ─── Legal pages ──────────────────────────────────────── */
.legal{padding:14px 0 40px}
.legal-title{
  font-family:var(--serif);
  font-size:clamp(32px,4.6vw,44px);
  font-weight:500;
  margin:14px 0 26px;
}
.legal .prose h2{
  font-family:var(--brand);
  font-size:13px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--faint);
  font-weight:500;
  margin:32px 0 10px;
}
.legal .prose ul{margin:0 0 15px;padding-left:20px;color:var(--muted)}
.legal .prose li{margin-bottom:4px}
.legal-date{font-family:var(--brand);font-size:12.5px;color:var(--faint);margin-top:34px}

/* Series CTA row — playlist first, "start here" beside it */
.series-cta{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  margin-top:22px;
}

/* ─── Featured band ────────────────────────────────────────
   Every episode image is firelit and dark. On cream they sit flat; on a
   dark warm ground they read as lit from inside — which is the whole
   mood of the channel. Full-bleed so it breaks the single-column rhythm. */
.featured-band{
  padding:0;
  margin:14px 0 8px;
}
.featured-band > .wrap{
  background:#241d17;
  background-image:
    radial-gradient(ellipse at 22% 45%, rgba(200,100,30,.16), transparent 58%);
  border-radius:var(--radius);
  padding:34px 34px 38px;
  color:#efe6d8;
}
.featured-band .kicker{color:#a8998a}
.featured-band .latest{
  background:transparent;
  border:0;
  padding:0;
  gap:38px;
}
.featured-band .latest h2{color:#fdfaf4}
.featured-band .latest-series{color:#b6a795}
.featured-band .latest p.excerpt{color:#e2d7c6}
.featured-band .series-context{color:#b6a795}
.featured-band .series-context strong{color:#efe6d8}
.featured-band .latest-figure{
  border-radius:10px;
  box-shadow:0 18px 44px rgba(0,0,0,.42);
}
.featured-band .btn{background:#c8641e}   /* on the dark band, not --bg */
.featured-band .btn:hover{background:#dd7526}

/* ─── Episode page ─────────────────────────────────────── */
.episode{padding:10px 0 44px;max-width:760px}
.episode h1{
  font-family:var(--serif);
  font-size:clamp(32px,4.8vw,46px);
  font-weight:500;
  line-height:1.15;
  margin:6px 0 22px;
}
.ep-hero{
  margin:0 0 26px;
  border-radius:10px;
  overflow:hidden;
  background:#211c17;
}
.ep-hero img{width:100%}
.ep-cta{margin:28px 0 26px}
.episode .pills{margin:0 0 30px}
.ep-nav{
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--border-soft);
  padding-top:18px;
  margin-top:8px;
  font-size:15px;
}
.ep-nav a{text-decoration:none;font-weight:600}
.ep-back{margin-top:16px;font-size:15px}
.top-nav .sep{color:var(--faint);margin:0 4px}

/* Phase headings on long series */
.phase-head{
  display:flex;
  align-items:baseline;
  gap:12px;
  font-family:var(--brand);
  font-size:12px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--faint);
  margin:34px 0 8px;
}
.phase-head:first-of-type{margin-top:6px}
.phase-range{
  font-size:11.5px;
  letter-spacing:.06em;
  text-transform:none;
  color:var(--faint);
  opacity:.8;
}

.notfound{padding:10px 0 60px}
.notfound-list{list-style:none;margin:14px 0 0;padding:0}
.notfound-list li{margin-bottom:7px}

/* ─── Site header bar ──────────────────────────────────── */
.site-nav{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:22px;
  padding:16px 0 0;
  font-size:14.5px;
}
.site-nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:500;
}
.site-nav a:hover{color:var(--accent)}
.site-nav .yt{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--accent);
  font-weight:600;
}
.site-nav .yt::before{
  content:"";
  width:0;height:0;
  border-style:solid;
  border-width:5px 0 5px 8px;
  border-color:transparent transparent transparent var(--accent);
}

/* Hero: price and primary action visible without scrolling */
.hero-cta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  margin:26px 0 0;
}
.ep-back .sep{color:var(--faint);margin:0 6px}

/* Legal pages: intro line, English block, rule */
.legal-intro{
  font-size:15px;
  color:var(--faint);
  border-left:2px solid var(--border);
  padding-left:14px;
  margin-bottom:26px;
}
.legal-en{color:var(--muted)}
.sep-rule{
  border:0;
  border-top:1px solid var(--border-soft);
  margin:38px 0 8px;
}


/* ─── Pre-launch state ─────────────────────────────────────
   Shown while no episode is public yet. The generator renders this instead of
   an empty hero, and replaces it with the real „latest episode" block the
   moment a video goes live — no hand edit needed. */

.latest--upcoming{
  grid-template-columns:1fr;
  text-align:left;
}
.latest--upcoming h2{margin-top:0}

.upcoming-note{
  color:var(--muted);
  max-width:var(--measure);
  margin:0 0 18px;
}

.upcoming-list{
  list-style:none;
  margin:0 0 22px;
  padding:0;
}
/* No `color` here on purpose. This list renders inside .featured-band, which
   sets a light foreground on a near-black ground — declaring var(--text)
   (#2b2620) made both scheduled dates near-invisible: dark text on a dark
   band. Inherit, and set the dark-band values explicitly below. */
.upcoming-list li{
  font-family:var(--brand);
  font-size:15px;
  padding:10px 0;
  border-bottom:1px solid var(--border-soft);
}
.upcoming-list li:last-child{border-bottom:0}

.featured-band .upcoming-list li{
  color:#e2d7c6;                              /* 10.9:1 on #241d17 */
  border-bottom-color:rgba(239,230,216,.16);  /* --border-soft is dark-on-light */
}

/* The two-column measure is too tight once the figure is gone. */
.latest--upcoming p.excerpt{max-width:58ch}

/* An upcoming episode is not a link — there is nothing to link to yet. Keep
   the row rhythm of .episodes but drop the affordance. */
.episodes--upcoming li{color:var(--muted)}
.episodes--upcoming .ep-title{font-family:var(--serif);font-size:1.05rem}
