/* Longwave Talks — site styles */
:root {
  --bg: #0e0e10;
  --bg-2: #16161a;
  --bg-3: #1f1f25;
  --line: #2a2a31;
  --text: #f2f0eb;
  --muted: #9a98a0;
  --accent: #ff5b2e;
  --accent-ink: #120a07;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 16, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.02em; text-decoration: none; text-transform: uppercase; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }
.nav { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font: 600 14px var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; }

/* Type */
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 900; letter-spacing: -.045em; }
h2 { font-size: clamp(32px, 4.5vw, 54px); }
h3 { font-size: 24px; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lede { font-size: clamp(19px, 2vw, 23px); color: var(--muted); max-width: 46ch; line-height: 1.5; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--text); color: var(--text); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Sections */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; color: var(--muted); }
.section-head a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero-wave { position: absolute; inset: auto 0 0 0; height: 120px; opacity: .25; pointer-events: none; }

.page-hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(44px, 7vw, 88px); }

/* Featured */
.feature-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-card .cover { aspect-ratio: 1 / 1; background: var(--bg-3); }
.feature-card .body { padding: 24px; }
.feature-card .body h3 { margin-bottom: 8px; }

/* Episode meta */
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.meta .num { color: var(--accent); }

/* Episode grid (home) */
.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ep-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.ep-card:hover { border-color: #3d3d46; transform: translateY(-2px); }
.ep-card .cover { aspect-ratio: 16 / 10; background: var(--bg-3); }
.ep-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.ep-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.ep-card h3 { font-size: 22px; }
.ep-card h3 a { text-decoration: none; }
.ep-card p { color: var(--muted); font-size: 15.5px; }
.ep-card .more { margin-top: auto; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--accent); }

/* Episode list (episodes page) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font: 600 14px var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.ep-list { display: grid; gap: 24px; }
.episode { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 32px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 96px; }
.episode .cover { border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-3); }
.episode h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.episode .guest { font-weight: 700; margin-bottom: 14px; }
.episode .guest span { color: var(--muted); font-weight: 500; }
.episode .desc { color: #c9c7cf; max-width: 68ch; }
.episode details { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.episode summary { cursor: pointer; font-weight: 700; color: var(--text); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.episode summary:hover { color: var(--accent); }
.episode ol { margin: 0; padding-left: 0; list-style: none; }
.episode ol li { display: grid; grid-template-columns: 64px 1fr; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.episode ol li b { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.episode[hidden] { display: none; }

/* Player */
.player { display: flex; align-items: center; gap: 14px; margin: 20px 0 8px; padding: 12px 16px 12px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; max-width: 620px; }
.player audio { display: none; }
.player .play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.player .play:hover { filter: brightness(1.1); }
.player .play svg { width: 18px; height: 18px; }
.player .play .i-pause { display: none; }
.player.is-playing .play .i-play { display: none; }
.player.is-playing .play .i-pause { display: block; }
.player .bar { flex: 1; height: 6px; background: var(--bg-3); border-radius: 999px; position: relative; cursor: pointer; }
.player .bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: inherit; }
.player .time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 92px; text-align: right; }
.player .note { font-size: 12px; }
/* Fallback when JS is unavailable: show native controls */
.no-js .player { border: 0; padding: 0; background: none; }
.no-js .player audio { display: block; width: 100%; }
.no-js .player .play, .no-js .player .bar, .no-js .player .time { display: none; }

/* Quote */
.pull { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; max-width: 22ch; margin: 0; }
.pull::before { content: "“"; color: var(--accent); }
.pull::after { content: "”"; color: var(--accent); }
.pull-cite { margin-top: 24px; color: var(--muted); font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 32px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stats span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Two column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.split.narrow-left { grid-template-columns: .8fr 1.2fr; }
.prose p { color: #cfcdd4; }
.prose p:first-child::first-letter { font-size: 1.0em; }
.prose h3 { margin-top: 1.6em; }

/* Hosts */
.hosts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.host { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.host .portrait { aspect-ratio: 4 / 3; background: var(--bg-3); }
.host .portrait img { width: 100%; height: 100%; object-fit: cover; }
.host .body { padding: 28px; }
.host .role { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.host p { color: #cfcdd4; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 32px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline b { display: block; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.timeline p { color: #cfcdd4; margin: 0; }

/* Guests */
.guest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.guest-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.guest-card .avatar { aspect-ratio: 1 / 1; background: var(--bg-3); }
.guest-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.guest-card h3 { font-size: 20px; margin-bottom: 4px; }
.guest-card .field { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.guest-card p { color: var(--muted); font-size: 15px; }
.guest-card a.ep-link { margin-top: auto; font-size: 14px; font-weight: 700; text-decoration: none; }
.guest-card a.ep-link:hover { color: var(--accent); }

.name-cloud { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: #55535c; }
.name-cloud span:nth-child(3n+1) { color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 20px; }
.contact-card p { color: var(--muted); font-size: 15.5px; }
.contact-card a.mail { font-weight: 700; color: var(--accent); text-decoration: none; word-break: break-word; }
.contact-card a.mail:hover { text-decoration: underline; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 700; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 14px 0 0; max-width: 70ch; }

/* Subscribe band */
.band { background: var(--accent); color: var(--accent-ink); padding: 72px 0; }
.band h2 { color: var(--accent-ink); margin-bottom: 12px; }
.band p { max-width: 52ch; font-size: 18px; }
.band .platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.band .platforms a { padding: 10px 18px; border-radius: 999px; background: var(--accent-ink); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; }
.band .platforms a:hover { color: var(--accent); }
section.band + section, section + section.band { border-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* 404 */
.notfound { min-height: 64vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(96px, 20vw, 220px); color: var(--accent); margin-bottom: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .ep-grid { grid-template-columns: repeat(2, 1fr); }
  .guest-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .split, .split.narrow-left { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .ep-grid, .hosts, .contact-grid { grid-template-columns: 1fr; }
  .guest-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .episode { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .episode .cover { max-width: 160px; }
  .player { border-radius: 18px; flex-wrap: wrap; }
  .player .bar { flex-basis: calc(100% - 60px); }
  .player .time { min-width: 0; text-align: left; margin-left: 58px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep-card { transition: none; }
}

/* Let grid/flex children shrink below their content width */
.episode > *, .split > *, .hero-grid > *, .ep-list > *, .footer-grid > * { min-width: 0; }
.player .bar { min-width: 0; }
