/* Digital Ascent: site styles ("Summit at night" direction, chosen 2026-11-14).
   Mauve paper and a twilight sky up top; the episode list, hosts, next-live bar and footer on indigo.
   Type: Space Grotesk (headlines), Inter (body), JetBrains Mono (numbers, dates, labels). */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --paper: #D3C3C1; --paper-2: #C8B6B4; --card: #E6DAD7; --card-hover: #F1E8E5;
  --ink: #120F26; --ink-2: #332F4E; --muted: #5A5472;
  --line: #BCA7A4; --line-2: #A68E8B;
  --indigo: #34309A; --violet: #6B3FD6; --lav: #B79CF0; --peach: #F7C6A3;
  --night: #1E1B5C; --night-2: #16143F;

  --wrap: 1180px; --gutter: clamp(16px, 5vw, 64px); --section: clamp(64px, 9vw, 120px);
  color-scheme: light;
}

/* the dark bands redefine the tokens, so anything inside them just works */
.dark { --ink: #F1EEFF; --ink-2: #C9C3EE; --muted: #9E98CC; --line: #2E2A72; --line-2: #4A44A0; --card: #2A2670; --card-hover: #332E80; --violet: #B79CF0; --indigo: #C9B8FF;
  color: var(--ink); }
.dark .label { color: var(--peach); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { left: 0; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(42px, 6.6vw, 88px); max-width: 14ch; }
h2 { font-size: clamp(30px, 4vw, 50px); max-width: 20ch; }
.label { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--violet); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.label a { color: inherit; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 22px 0 0; }
.muted { color: var(--muted); }
.fig { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.when-live { display: none; } .da-live .when-live { display: inline; } .da-live .when-off { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--indigo); color: #fff; }
.btn--plain { background: none; border-color: var(--ink); color: var(--ink); }
.btn--plain:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(211, 195, 193, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--indigo); }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.hdr__toggle { display: none; }

/* home hero: copy in the sky, the artwork below */
.hero { background: linear-gradient(#D6C2C3, #D4A7A3 70%, #D99E92); padding-top: clamp(48px, 8vw, 104px); }
.hero__art { margin-top: clamp(-40px, -3vw, -10px); }
.hero__art img { -webkit-mask-image: linear-gradient(transparent, #000 38%); mask-image: linear-gradient(transparent, #000 38%); width: 100%; height: clamp(220px, 32vw, 460px); object-fit: cover; object-position: 50% 70%; filter: saturate(1.1) brightness(.86); }

/* inner-page hero: the same sky, no artwork */
.page-hero { background: linear-gradient(#D6C2C3, #D3B0AC); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 18ch; }

/* next-live bar */
.nextbar { background: var(--night); color: #fff; }
.nextbar__in { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.nextbar .label { color: var(--lav); margin: 0 0 4px; }
.nb-item b { display: block; font: 600 20px/1.2 var(--display); }
.nb-item b.fig { font-family: var(--mono); font-weight: 500; }
.nb-item small { display: block; color: #C9C3EE; font-size: 13px; }
.nb-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.nextbar .btn--ink { background: var(--peach); color: var(--ink); }
.nextbar .btn--ink:hover { background: #fff; }
.nextbar .btn--plain { border-color: rgba(255, 255, 255, .5); color: #fff; }
.nextbar .btn--plain:hover { background: #fff; color: var(--ink); }
.subscribe { position: relative; }
.subscribe summary { list-style: none; }
.subscribe summary::-webkit-details-marker { display: none; }
.subscribe[open] summary { background: #fff; color: var(--ink); }
.subscribe__menu { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 30; min-width: 250px; padding: 6px 18px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); display: flex; flex-direction: column; }
.hero + .nextbar .subscribe__menu { bottom: auto; top: calc(100% + 10px); }
.subscribe__menu a { color: #120F26; text-decoration: none; font-weight: 500; padding: 12px 0; border-bottom: 1px solid #E6DAD7; }
.subscribe__menu a:last-child { border-bottom: 0; }
.subscribe__menu a:hover { color: #34309A; }

/* latest episode */
.feature { padding: var(--section) 0; }
.feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pin { background: var(--ink); color: #fff; padding: 4px 9px; border-radius: 999px; letter-spacing: .1em; }
.feature h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 24ch; }
.feature__excerpt { color: var(--ink-2); margin: 20px 0 0; }
.segs { margin: 26px 0; padding: 0; list-style: none; counter-reset: s; }
.segs li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.segs li::before { content: counter(s, decimal-leading-zero); font: 500 13px/1.9 var(--mono); color: var(--violet); }
.link { font-weight: 600; }
.player { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--night-2); border: 0; width: 100%; box-shadow: 0 30px 60px -28px rgba(30, 27, 92, .7); }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player__btn { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #fff; color: #120F26; font-weight: 600; font-size: 15px; transition: background-color .15s, color .15s; }
.player:hover .player__btn { background: #34309A; color: #fff; }

/* episode list: a dotted timeline, newest at the top */
.log { background: var(--night); padding: var(--section) 0; }
.log__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.log__head { position: sticky; top: 100px; }
.log__head h2 { color: #fff; }
.log__head .muted { margin: 18px 0 24px; }
.log--full .log__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.log--full .log__grid > * { max-width: 860px; }
.search input { width: 100%; max-width: 420px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font: 400 16px var(--body); color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--violet); }
.dark .search input { background: #15134A; }
.dark .search input:focus { border-color: var(--peach); }
.search-count { font: 400 13px var(--mono); color: var(--muted); margin: 12px 0 0; min-height: 1.4em; }
.trail { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.trail::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; border-left: 2px dashed var(--line-2); }
.trail li { position: relative; }
.trail li::before { content: ""; position: absolute; left: -28px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); border: 2px solid var(--lav); }
.trail li:first-child::before { background: var(--peach); border-color: var(--peach); box-shadow: 0 0 0 5px rgba(247, 198, 163, .22); }
.trail a { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 2px 16px; padding: 18px; margin-bottom: 8px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background-color .15s; }
.trail a:hover { background: var(--card); }
.alt { font: 500 15px/1.6 var(--mono); color: var(--lav); grid-row: span 2; }
.t { font-weight: 600; line-height: 1.4; }
.d { font: 400 13px var(--mono); color: var(--muted); }
.trail__base::before { border-style: dashed !important; }
.trail__base .t { color: var(--ink-2); font-weight: 500; font-style: italic; }
.log__more { margin: 24px 0 0 28px; }
.empty { color: var(--muted); margin: 8px 0 0 28px; }

/* hosts */
.party { background: var(--night-2); padding: var(--section) 0; }
.party h2, .party h3 { color: #fff; }
.party__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 44px; }
.host img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 22px; margin-bottom: 20px; box-shadow: 0 0 0 1px rgba(183, 156, 240, .25); }
.host h3 { font-size: 26px; }
.role { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--violet); margin: 8px 0 12px; }
.host p:last-child { color: var(--ink-2); font-size: 16px; margin: 0; }
.party__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-top: 40px; }
.party__foot p { margin: 0; }
.party--page { padding-top: clamp(48px, 6vw, 80px); }
.party--page .host p:last-child { font-size: 17px; }

/* where to watch and listen */
.listen { padding: var(--section) 0; }
.th__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.th { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, background-color .15s, transform .15s; }
.th:hover { border-color: var(--violet); background: var(--card-hover); transform: translateY(-2px); }
.th__k { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--violet); }
.th b { font: 700 24px/1.1 var(--display); margin-top: 18px; }
.th span:last-child { color: var(--ink-2); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .th:hover { transform: none; } }

/* episode page */
.ep-hero h1 { font-size: clamp(32px, 4.4vw, 56px); max-width: 26ch; line-height: 1.08; }
.ep-main { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.ep-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ep-grid .player { margin-bottom: 40px; }
.ep-side { position: sticky; top: 100px; display: grid; gap: 28px; }
.ep-side .label { margin-bottom: 4px; }
.ep-side .segs { margin: 0; }
.ep-side ul.links { list-style: none; margin: 0; padding: 0; }
.ep-side ul.links a { display: block; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 500; text-decoration: none; }
.ep-side ul.links a:hover { text-decoration: underline; }
.ep-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.ep-pager a { display: block; padding: 18px 20px; border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.ep-pager a:hover { border-color: var(--violet); background: var(--card-hover); }
.ep-pager .label { margin: 0 0 6px; }
.ep-pager .next { text-align: right; }
.ep-pager .next .label { justify-content: flex-end; }
.copy-btn[data-copied] { background: var(--ink); color: #fff; }

/* show-notes text */
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h3 { font-size: 24px; margin: 44px 0 14px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--violet); }
.prose strong { color: var(--ink); }
.prose a { overflow-wrap: anywhere; }

/* footer */
.ftr { background: var(--night-2); color: #D6D2F2; padding: 48px 0 28px; }
.ftr__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ftr .brand img { height: 36px; }
.ftr nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.ftr nav a { color: #D6D2F2; text-decoration: none; font-size: 15px; }
.ftr nav a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 32px 0 0; font: 400 13px var(--mono); color: #9C97C8; }

@media (max-width: 900px) {
  .feature__grid, .log__grid, .ep-grid { grid-template-columns: 1fr; }
  .log__head, .ep-side { position: static; }
  .party__grid { grid-template-columns: 1fr; }
  .host { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; }
  .host img { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; grid-row: span 2; margin: 0; }
  .host p:last-child { grid-column: 1 / -1; margin-top: 12px; }
  .th__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand img { height: 30px; }
  .hdr__toggle { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: none; color: var(--ink); font: 600 14px var(--body); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current] { text-decoration: none; }
  .nb-actions { margin-left: 0; width: 100%; }
  .nb-actions .btn, .nb-actions .subscribe { flex: 1 1 auto; }
  .subscribe summary { width: 100%; }
  .subscribe__menu { left: 0; right: 0; min-width: 0; }
  .trail a { grid-template-columns: 1fr; padding: 14px 12px; }
  .alt { grid-row: auto; font-size: 13px; }
  .trail li::before { top: 20px; }
  .th__grid { grid-template-columns: 1fr; }
  .th b { margin-top: 8px; }
  .ep-pager { grid-template-columns: 1fr; }
  .ep-pager .next { text-align: left; }
  .ep-pager .next .label { justify-content: flex-start; }
}
