/* Six to Bacon — brand tokens
   Aesthetic: A24 editorial × Wondery documentary
   Type: Didone display serif + grotesk UI
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── color: paper-and-ink editorial palette ───────────────────── */
  --ink:        #14110F;   /* near-black, warm */
  --ink-2:      #2A2622;   /* secondary text */
  --ink-3:      #5A524C;   /* tertiary text / labels */
  --rule:       #1F1B18;   /* hairlines on dark */

  --paper:      #F4EDE0;   /* primary background — warm cream */
  --paper-2:    #EBE2D2;   /* hover / inset */
  --paper-3:    #DCD2BE;   /* deep paper, dividers on light */

  --bacon:      #B4391F;   /* the accent — burnt sienna, signals "bacon" */
  --bacon-deep: #8A2A14;
  --bacon-soft: #E08868;   /* tints / hovers */

  --bone:       #FAF6EC;   /* lightest paper, hero */
  --shadow:     #0A0808;   /* deepest, headers/cinema */

  /* ── type ──────────────────────────────────────────────────────── */
  --serif: 'DM Serif Display', 'Times New Roman', 'Times', serif;
  --sans:  'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'Menlo', monospace;

  /* type scale */
  --t-display: clamp(56px, 9vw, 168px);   /* hero */
  --t-h1: clamp(40px, 5vw, 72px);
  --t-h2: clamp(28px, 3.2vw, 44px);
  --t-h3: clamp(20px, 2vw, 26px);
  --t-body: 17px;
  --t-small: 14px;
  --t-eyebrow: 12px;

  /* ── geometry ──────────────────────────────────────────────────── */
  --rad-sm: 4px;
  --rad-md: 8px;
  --rad-lg: 14px;
  --rad-pill: 999px;

  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* ── motion ────────────────────────────────────────────────────── */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* dark mode flip for hero / cinema sections */
.cinema {
  --paper: #14110F;
  --paper-2: #1B1815;
  --paper-3: #2A2622;
  --ink: #F4EDE0;
  --ink-2: #C9C0AE;
  --ink-3: #877E72;
  background: var(--paper);
  color: var(--ink);
}

/* ── reset / base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ── shared utility classes ──────────────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.sans  { font-family: var(--sans); }
.mono  { font-family: var(--mono); font-feature-settings: 'tnum'; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

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

.rule {
  height: 1px;
  background: currentColor;
  opacity: 0.18;
  border: 0;
  margin: 0;
}

/* ── header / nav (shared across pages) ──────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 12%, transparent);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.site-header nav a {
  color: var(--ink-2);
  position: relative;
  padding: 8px 0;
  transition: color .2s var(--ease);
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.active { color: var(--ink); }
.site-header nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--bacon);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark .six-circle {
  width: 30px; height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
}
.brand-mark .word { line-height: 1; }
.brand-mark .word em { font-style: italic; color: var(--bacon); font-weight: 400; }

/* ── footer ──────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 120px;
  padding: 60px 0 40px;
  border-top: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  color: var(--ink-2);
  font-size: 14px;
}
.site-footer .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--bacon); }
.site-footer .fine {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.05em;
}

/* ── buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: var(--rad-pill);
  transition: all .2s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--bacon); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ink) 40%, transparent);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
  background: color-mix(in oklch, var(--ink) 5%, transparent);
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ── tag chip ────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--rad-pill);
  background: color-mix(in oklch, var(--ink) 8%, transparent);
  color: var(--ink-2);
}
.chip.bacon {
  background: var(--bacon);
  color: var(--bone);
}
.chip.dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.chip.live::before { background: #2EB872; }

/* ── episode card (used in index + home) ────────────────────────── */
.ep-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  transition: background .2s var(--ease);
}
.ep-card:hover { background: color-mix(in oklch, var(--ink) 3%, transparent); }
.ep-card .num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--ink-3);
}
.ep-card .num em { color: var(--bacon); font-style: italic; }
.ep-card .poster {
  width: 200px; height: 200px;
  background: var(--paper-3);
  border-radius: var(--rad-md);
  position: relative;
  overflow: hidden;
}
.ep-card .body h3 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  margin: 8px 0 10px;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.ep-card .body p {
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
  line-height: 1.55;
}
.ep-card .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; gap: 14px; align-items: center;
}
.ep-card .listen {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--ink);
  border-radius: var(--rad-pill);
  padding: 10px 18px;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.ep-card .listen:hover { background: var(--ink); color: var(--paper); }
.ep-card.locked { opacity: 0.5; }
.ep-card.locked .listen { pointer-events: none; }
