/* Tab Twelve · site styles
   Dark, cinematic take on the brand: charcoal, off-white type, greys, one red accent.
   The recurring motif is the browser tab from the logo. */

:root {
  --bg: #0d0d0d;
  --bg-2: #121212;
  --surface: #181818;
  --surface-2: #202020;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f3f2ee;
  --ink-2: #b7b6b1;
  --ink-3: #7f7e7a;
  --accent: #ef2f33;
  --accent-hover: #ff4a4d;
  --accent-glow: rgba(239, 47, 51, 0.38);
  --tab: #1c1c1c;
  --tab-2: #2a2a2a;
  --radius: 16px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .notes a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(243,242,238,.3); text-underline-offset: 3px; }
p a:hover, .prose a:hover, .notes a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- motifs ---------- */
/* the three-bar E from the wordmark */
.mark {
  display: inline-block; width: 16px; height: 13px; vertical-align: -1px; margin-right: 12px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 3px, transparent 3px 5px);
}
/* pulsing dot */
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 10px rgba(239,47,51,0); } 100% { box-shadow: 0 0 0 0 rgba(239,47,51,0); } }

.eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow--accent { color: var(--accent); }
.muted { color: var(--ink-2); }
.link-arrow { font-weight: 700; color: var(--ink); }
.link-arrow::after { content: " \2192"; transition: transform .2s ease; display: inline-block; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 12px;
  font-weight: 800; font-size: 15px; line-height: 1.1; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -8px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 12px 34px -6px var(--accent-glow); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.04); }
.btn--yt { background: var(--accent); color: #fff; padding: 10px 15px; }
.btn--yt:hover { background: var(--accent-hover); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,13,.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark { width: 44px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.brand__word { width: 176px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links > a:not(.btn) { font-weight: 700; font-size: 15px; color: var(--ink-2); position: relative; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); transition: right .2s ease; }
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn):hover::after { right: 0; }
@media (max-width: 600px) {
  .brand__word { display: none; }
  .nav__links { gap: 14px; }
}

/* ---------- browser-window frame ---------- */
.frame {
  display: block; position: relative;
  background: var(--tab); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.frame:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 50px 90px -30px rgba(0,0,0,.95), 0 0 60px -20px var(--accent-glow); }
.frame__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 0; height: 46px; background: var(--tab); color: var(--ink-2);
}
.dots { display: inline-flex; gap: 6px; flex: none; padding-bottom: 10px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #5d5d5b; display: block; }
.dots i:first-child { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.frame__tab {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 72%;
  padding: 8px 14px; background: var(--tab-2); color: #f0efeb;
  font-size: 13px; font-weight: 700; border-radius: 10px 10px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: flex-end;
}
.frame__tab img { width: 18px; height: auto; flex: none; }
.frame__media { display: block; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.frame__media .thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.frame:hover .thumb { transform: scale(1.035); }
.frame__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 40%); pointer-events: none; }
.frame__media--dark { display: grid; place-items: center; background: radial-gradient(90% 90% at 50% 45%, #262626 0%, #0c0c0c 70%); }
.frame__media--dark img { width: 140px; opacity: .95; filter: drop-shadow(0 20px 40px rgba(0,0,0,.8)); }
.frame__media--dark::after { display: none; }
.loading { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.loading::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); animation: load 2.4s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes load { to { left: 100%; } }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 0 0 var(--accent-glow);
  transition: transform .2s ease, background-color .2s ease;
  animation: pulse 2.6s ease-out infinite;
}
.play svg { margin-left: 4px; width: 32px; height: 32px; }
a.frame:hover .play { transform: translate(-50%, -50%) scale(1.1); background: var(--accent-hover); }
.frame--sm .frame__bar { height: 32px; padding: 0 12px; }
.frame--sm .dots { padding-bottom: 0; }
.frame--sm .dots i { width: 7px; height: 7px; }
.frame--sm .play { width: 56px; height: 56px; animation: none; }
.frame--sm .play svg { width: 24px; height: 24px; }
.frame--soon { pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 30% 40%, rgba(239,47,51,.16), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(255,255,255,.05), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
/* stacked tabs behind the hero frame, like the banner */
.stack { position: relative; }
.stack::before, .stack::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: -1;
  border: 1px solid var(--line); background: #141414;
  transform: translate(-14px, -14px); opacity: .9;
}
.stack::after { transform: translate(-28px, -28px); opacity: .55; background: #111; }
.stack > .frame { position: relative; z-index: 1; }
@media (max-width: 900px) { .stack::before { transform: translate(-8px, -8px); } .stack::after { transform: translate(-16px, -16px); } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 52px; align-items: center; }
.hero__media, .hero__text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > *:nth-child(2) { animation-delay: .08s; }
.hero__text > *:nth-child(3) { animation-delay: .14s; }
.hero__text > *:nth-child(4) { animation-delay: .2s; }
.hero__text > *:nth-child(5) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__title {
  margin: 6px 0 12px;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__meta { margin: 0 0 16px; color: var(--ink-3); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hero__summary { margin: 0 0 26px; color: var(--ink-2); font-size: 17.5px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .hero { padding: 34px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--first { padding-top: 48px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section__title { margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.section__sub { margin: 0; color: var(--ink-2); }
.section__more { font-weight: 700; color: var(--ink-2); }
.section__more:hover { color: var(--accent); }
.section--about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty { text-align: center; padding: 40px 0; }
.empty p { margin: 0 0 18px; color: var(--ink-2); }

/* ---------- episode cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px 28px; }
.card { position: relative; }
.card__body { padding: 16px 4px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
.card__num { grid-row: 1 / span 3; font-size: 2.4rem; line-height: .9; font-weight: 800; letter-spacing: -.04em; color: var(--accent); padding-top: 2px; }
.card .eyebrow { margin-bottom: 4px; letter-spacing: .1em; font-size: 12px; }
.card__title { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.card__title a:hover { color: var(--accent); }
.card__notes { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.card__notes::after { content: " \2192"; }
.card__notes:hover { color: var(--accent); }

/* ---------- about strip ---------- */
.about-strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-strip__title { margin: 0 0 14px; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.about-strip__title em { font-style: normal; color: var(--accent); }
.about-strip__text { margin: 0 0 18px; color: var(--ink-2); font-size: 17.5px; }
.about-strip__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-strip__list li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); position: relative; padding-left: 30px; }
.about-strip__list li::before { content: ""; position: absolute; left: 14px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.about-strip__list strong { color: var(--ink); }
@media (max-width: 760px) { .about-strip { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- newsletter ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.news__title { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.news__blurb { margin: 0; color: var(--ink-2); }
.news__form { display: flex; gap: 10px; }
.news__form input {
  flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.news__form input::placeholder { color: var(--ink-3); }
.news__form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.news__note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } }

/* ---------- prose pages ---------- */
.prose { max-width: 720px; }
.prose h1 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.prose h2 { margin: 36px 0 10px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--ink-2); }
.prose .lead { font-size: 1.25rem; color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.socials a { font-weight: 700; color: var(--ink); text-decoration: none; }
.socials a:hover { color: var(--accent); }
.empty.prose { margin: 0 auto; }

/* ---------- episode page ---------- */
.episode { padding: 40px 0 72px; position: relative; }
.episode__wrap { max-width: 920px; }
.crumbs { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.episode__title { margin: 0 0 10px; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.episode__meta { margin: 0 0 26px; color: var(--ink-3); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.episode__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.episode__body { max-width: 720px; margin-top: 30px; }
.episode__summary { font-size: 1.2rem; color: var(--ink); margin: 0 0 8px; }
.episode__body h2 { margin: 38px 0 12px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.episode__body h3 { margin: 26px 0 8px; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.episode__body p, .episode__body li { color: var(--ink-2); }
.chapters { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.chapters li + li { border-top: 1px solid var(--line); }
.chapters a { display: flex; gap: 16px; align-items: baseline; padding: 12px 16px; color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .15s ease; }
.chapters a:hover { background: var(--surface-2); }
.chapters__time { font-family: var(--mono); font-size: 13px; color: var(--accent); min-width: 46px; }
.notes ul, .notes ol { padding-left: 20px; }
.notes li + li { margin-top: 8px; }
.notes--plain p { word-break: break-word; }

/* ---------- footer ---------- */
.footer { position: relative; background: #090909; color: var(--ink-2); margin-top: 24px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__ghost { position: absolute; right: -40px; bottom: -60px; width: 340px; opacity: .07; pointer-events: none; }
.footer__inner { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer__brand img { width: 176px; }
.footer__tag { margin: 12px 0 0; color: var(--ink-3); font-size: 14.5px; }
.footer__h { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.footer__col a { display: block; color: var(--ink); padding: 4px 0; font-size: 15.5px; font-weight: 600; }
.footer__col a:hover { color: var(--accent); }
.footer__small { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); }
.footer__legal { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

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