:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fffefb;
  --ink: #162923;
  --body: #384a43;
  --muted: #53645a;
  --green: #1c483c;
  --dark: #17382f;
  --pale: #eaf0e8;
  --line: #d7dfd5;
  --rust: #7d412c;
  --warm: #f0e3d3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
button, textarea { font: inherit; }
a { color: inherit; }
p, h1, h2, h3, h4, figure { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #a74725; outline-offset: 4px; }

.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { top: .75rem; left: 1rem; z-index: 10; width: auto; height: auto; padding: .5rem 1rem; clip-path: none; color: white; background: var(--dark); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.wordmark { display: inline-flex; align-items: center; gap: .62rem; flex-shrink: 0; font: bold 1.44rem/1 var(--serif); letter-spacing: -.045em; text-decoration: none; }
.mark { display: inline-flex; align-items: center; justify-content: center; gap: .16rem; width: 1.95rem; height: 1.95rem; background: var(--green); color: white; border-radius: 50%; }
.mark span { width: .14rem; height: .5rem; background: currentColor; border-radius: .15rem; }
.mark span:nth-child(2) { height: .88rem; }
.mark span:nth-child(3) { height: .66rem; }
nav { display: flex; gap: clamp(1rem, 3.35vw, 2.75rem); align-items: center; }
nav a { color: var(--body); font-weight: 600; font-size: .96rem; text-decoration: none; }
nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .23em; }

.button { min-height: 2.8rem; padding: .64rem 1.12rem; display: inline-flex; justify-content: center; align-items: center; gap: .6rem; border: 1px solid transparent; border-radius: .42rem; font-size: .94rem; line-height: 1.35; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--dark); }
.button-outline { color: var(--green); background: transparent; border-color: #9daea3; }
.button-outline:hover { background: var(--pale); }
.button[aria-disabled="true"], .button:disabled { opacity: .5; cursor: default; }
.text-link, .story-link { color: var(--green); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.text-link:hover, .story-link:hover { color: var(--rust); }
.play { width: 0; height: 0; border-top: .32rem solid transparent; border-bottom: .32rem solid transparent; border-left: .5rem solid currentColor; }

.hero { display: grid; grid-template-columns: .97fr 1.03fr; gap: clamp(2.25rem, 6vw, 5.7rem); align-items: center; padding-block: 5rem 5.35rem; }
.hero-content { padding-bottom: .7rem; }
.eyebrow { color: var(--green); font-size: .81rem; font-weight: 800; letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; }
.episode-label { display: flex; gap: .63rem; align-items: center; flex-wrap: wrap; }
.episode-label > span:first-child { width: .45rem; height: .45rem; background: var(--rust); border-radius: 50%; }
.label-divider { width: .9rem; height: 1px; background: #7b8980; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { max-width: 10ch; margin-top: 1.25rem; font-size: clamp(3.5rem, 6.2vw, 5.65rem); line-height: .995; letter-spacing: -.072em; }
.hero-summary { max-width: 29rem; margin-top: 1.48rem; color: var(--body); font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.58; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.35rem; margin-top: 1.65rem; }
.hero-actions .button { min-height: 3.15rem; padding-inline: 1.2rem; }
.hero-actions .text-link { font-size: .95rem; }
.hero-visual { overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: #fff; box-shadow: 0 12px 28px #1b2a2514; }
.hero-visual img { width: 100%; height: auto; }
.hero-visual figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .75rem; padding: .75rem 1rem; border-top: 1px solid var(--line); color: #333; font-size: .84rem; }
.hero-visual figcaption span:first-child { font-size: .76rem; letter-spacing: .14em; font-weight: 750; }

.section-pad { padding-block: 4.75rem; }
.section-intro { margin-bottom: 1.95rem; max-width: 43rem; }
.section-intro h2, .ask-intro h2 { margin-block: .48rem .62rem; font-size: clamp(2.55rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -.062em; }
.section-intro > p:last-child { color: var(--body); font-size: 1.05rem; }
.episode-section { background: var(--pale); border-block: 1px solid var(--line); }
.storyboard { overflow: hidden; background: var(--white); border: 1px solid #cddacf; border-radius: .8rem; }
.story-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding-inline: 1.35rem; background: #f3f6f1; border-bottom: 1px solid var(--line); }
.story-tabs a { position: relative; padding: 1rem .5rem; color: var(--muted); font-size: .97rem; font-weight: 700; text-align: center; text-decoration: none; }
.story-tabs a:hover { color: var(--green); background: #e7eee4; }
.story-tabs a[aria-selected="true"] { color: var(--green); }
.story-tabs a[aria-selected="true"]::after { position: absolute; inset: auto .65rem -1px; height: 3px; content: ""; background: var(--green); border-radius: 3px 3px 0 0; }
.story-content { padding: 2.1rem clamp(1.25rem, 4.5vw, 3.15rem) 1.55rem; }
.scene h3, .source-card h3, .case-feature h3 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); line-height: 1.16; letter-spacing: -.045em; }
.scene { scroll-margin-top: 2rem; }
.scene + .scene:not([hidden]) { margin-top: 1.8rem; }
.storyboard:has(.story-tabs[role="tablist"]) .scene { margin-top: 0; }
.line { display: grid; grid-template-columns: 6.5rem 1fr; gap: clamp(.6rem, 2.5vw, 1.7rem); align-items: start; padding-block: .92rem; border-bottom: 1px solid #e4e9e2; }
.line:first-of-type { margin-top: .6rem; }
.line > p:last-child { color: var(--body); max-width: 50rem; font-size: 1.09rem; }
.speaker { width: fit-content; padding: .2rem .6rem; margin-top: .12rem; border-radius: .28rem; font-size: .86rem; font-weight: 750; }
.host { color: #703e2c; background: #f3e3d7; }
.doctor { color: #214f40; background: #e4eee4; }
.story-link { display: inline-block; margin-top: 1rem; }
.story-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .65rem; margin-top: 1.45rem; }
.story-controls .button:first-child { justify-self: start; }
.story-controls .button:last-child { justify-self: end; }
.scene-count { color: var(--muted); font-size: .9rem; }

.sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.source-card, .case-feature { background: var(--white); border: 1px solid var(--line); border-radius: .7rem; padding: clamp(1.25rem, 3.1vw, 2.05rem); }
.source-card { display: flex; flex-direction: column; align-items: flex-start; }
.card-meta { color: var(--rust); font-size: .87rem; font-weight: 750; }
.source-card h3, .case-feature h3 { margin-block: .55rem .66rem; }
.source-card h3 + p, .case-feature h3 + p, .case-note p { color: var(--body); }
.source-card .text-link { margin-top: auto; padding-top: 1rem; }
.uncertainty { display: flex; align-items: flex-start; gap: .85rem; border-radius: .6rem; padding: 1.18rem 1.4rem; margin-top: 1rem; background: var(--warm); }
.uncertainty-icon { display: grid; place-items: center; width: 1.65rem; aspect-ratio: 1; flex-shrink: 0; border: 1px solid #9d684f; color: var(--rust); border-radius: 50%; font-size: .95rem; font-weight: 750; }
.uncertainty h3, .case-note h4 { font: 750 1.01rem/1.4 var(--sans); margin-bottom: .25rem; }
.uncertainty p { color: #503b32; }

.ask-section { color: #fff; background: var(--dark); }
.ask-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 5.2rem); align-items: center; padding-block: 4.15rem; }
.ask-intro .eyebrow { color: #d1e5d3; }
.ask-intro > p:last-of-type { color: #e3ebe2; }
.follow-up { margin-top: 1.5rem; padding-left: .95rem; border-left: 2px solid #bdd5b6; }
.follow-up-label { color: #d9ebd9; font-size: .88rem; font-weight: 700; }
#preview-question { font: 1.18rem/1.5 var(--serif); overflow-wrap: anywhere; margin-top: .35rem; }
.question-form { padding: clamp(1.15rem, 2.7vw, 1.75rem); border-radius: .66rem; background: var(--white); color: var(--ink); }
.question-form label { font-weight: 750; }
.question-form p { color: var(--body); font-size: .92rem; }
textarea { display: block; width: 100%; min-height: 7rem; resize: vertical; margin-block: .75rem; padding: .75rem; border: 1px solid #aab9af; border-radius: .4rem; background: #fbfcf8; color: var(--ink); line-height: 1.45; }
textarea::placeholder { color: var(--muted); }
.form-status:empty { display: none; }
.form-status { margin-top: .55rem; font-weight: 650; }

.case-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; margin-bottom: 1rem; }
.case-feature .text-link { display: inline-block; margin-top: 1rem; }
.case-note { padding: 1.2rem; border-radius: .45rem; background: var(--warm); }
.site-footer { background: #edf0e8; border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.5rem; }
.footer-inner p, .footer-inner .text-link { color: var(--body); font-size: .9rem; }

@media (max-width: 66rem) {
  .shell { width: min(100% - 4rem, 73rem); }
  .hero { gap: 2rem; }
}
@media (max-width: 48rem) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: 1fr; padding-block: 3.25rem 3rem; gap: 1.5rem; }
  .hero-content { padding-bottom: 0; }
  h1 { max-width: 11ch; margin-top: .88rem; }
  .hero-summary { margin-top: 1.05rem; }
  .hero-actions { margin-top: 1.25rem; }
  .section-pad { padding-block: 3rem; }
  .ask-inner { gap: 1.5rem; padding-block: 3rem; }
  .header-inner { min-height: 4.5rem; gap: .85rem; }
  .header-action { display: none; }
}
@media (max-width: 37rem) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; padding-block: .7rem; }
  nav { gap: 1rem; }
  nav a { font-size: .9rem; }
  .sources, .ask-inner, .case-feature { grid-template-columns: 1fr; }
  .story-tabs { grid-template-columns: repeat(2, 1fr); padding-inline: .5rem; }
  .story-tabs a { padding-block: .72rem; }
  .line { grid-template-columns: 1fr; gap: .38rem; }
  .line > p:last-child { font-size: 1rem; }
  .story-content { padding-top: 1.4rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 1rem; }
  .footer-inner p { order: 1; width: 100%; }
}
@media (max-width: 26rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { justify-content: flex-start; }
  h1 { font-size: clamp(3rem, 15vw, 3.7rem); }
  .story-controls .button { padding-inline: .6rem; }
}
