:root {
  color-scheme: light dark;
  --ink: #14294a;
  --night: #102033;
  --paper: #f9f8f3;
  --white: #fffefa;
  --muted: #4a5b60;
  --line: #c7d1ca;
  --teal: #285b58;
  --teal-pale: #e8efea;
  --transcript-paper: #b6dfcf;
  --gold: #f0c56f;
  --sans: system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box }
.hf-transcript-copy p + p { margin-top: .65em; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.13rem/1.58 var(--serif) }
a { color: inherit; text-underline-offset: .22em }
:focus-visible { outline: 3px solid #ad7924; outline-offset: 4px }
.wrap { width: min(100% - clamp(36px, 8vw, 112px), 1080px); margin-inline: auto }
.mast { background: var(--night); color: var(--white) }
.mast-inner, .foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px }
.mast-inner { min-height: 78px }
.brand { display: flex; align-items: center; gap: 12px; font: 1.48rem/1 var(--serif) }
.brand img { object-fit: contain }
.brand small { display: block; margin-top: 6px; color: #ead2a0; font: 650 .65rem/1.2 var(--sans); letter-spacing: .17em; text-transform: uppercase }
.mast a, .foot { font: 600 .84rem/1.4 var(--sans) }
.mast a { display: inline-flex; align-items: center; min-height: 44px; color: #f1e7d3; text-decoration: none }
.mast a:hover, .foot a:hover { text-decoration: underline }
.opening { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(28px, 6vw, 85px); padding-block: clamp(44px, 7vw, 96px) }
.kicker, .folio, .dates dt, .result, .ahead strong { font: 720 .71rem/1.45 var(--sans); text-transform: uppercase; letter-spacing: .13em }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--teal); margin: 0 0 17px }
.kicker::before { content: ""; width: 27px; height: 1px; background: currentColor }
h1, h2, h3, h4, blockquote, p, dl, dd { margin: 0 }
h1, .section-title, .checkpoint h3, .parts-list dt, .branch h4 { font-family: var(--serif); font-weight: 400; text-wrap: balance }
h1 { font-size: clamp(3.2rem, 6.5vw, 5.85rem); letter-spacing: -.052em; line-height: .99; max-width: 9em }
.lead { margin-block: 23px; font-size: clamp(1.18rem, 1.7vw, 1.44rem); color: #374c54; max-width: 31em; line-height: 1.48 }
.case { background: #152a3d; color: #fffaf0; padding: clamp(24px, 3.5vw, 44px); border-top: 4px solid #bb9758; border-radius: 3px; box-shadow: 0 8px 24px #182b3610 }
.folio { color: #e1c38c; margin: 0 0 25px }
.case blockquote { font: italic clamp(1.75rem, 2.8vw, 2.65rem)/1.16 var(--serif); letter-spacing: -.025em }
.dates { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #52616b; margin-top: 30px; padding-top: 18px; gap: 16px }
.dates dt { color: #c7d6db; font-size: .62rem; letter-spacing: .09em }
.dates dd { margin-top: 4px; font-size: 1.5rem }
.dates > :last-child dd { color: #ebc77d }
.case-questions { display: grid; justify-items: start; margin-top: 18px; border-top: 1px solid #52616b; padding-top: 6px }
.case-questions a { display: inline-flex; align-items: center; min-height: 44px; font: 600 .88rem/1.4 var(--sans); color: #f2d59e }
.section-title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.05; letter-spacing: -.04em }
.chart-section { background: #eeefe8; border-block: 1px solid #d2d9cf; padding-block: clamp(42px, 5vw, 74px) }
.route { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: clamp(24px, 4vw, 54px); margin-top: 30px }
.checkpoint { position: relative; margin-left: 5px; padding: 0 0 29px clamp(23px, 3vw, 40px); border-left: 2px solid #bccdc4 }
.checkpoint::before { content: ""; position: absolute; top: .55em; left: -7px; width: 12px; height: 12px; border: 2px solid var(--teal); background: var(--white); border-radius: 50% }
.checkpoint.last { padding-bottom: 0; border-color: transparent }
.checkpoint.last::before { background: var(--teal) }
.checkpoint h3 { font-size: clamp(1.48rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -.025em }
.checkpoint > p, .parts-list dd, .beta-copy p { color: #344852 }
.checkpoint > p { max-width: 45em; margin-top: 8px }
.checkpoint blockquote { max-width: 38em; margin-top: 13px; padding-left: 15px; border-left: 2px solid #b89455; color: var(--teal); font-style: italic }
.outcome { max-width: 44em; margin-top: 16px; padding: 16px 20px; background: #eef3ee; border-left: 3px solid #547f6a }
.outcome h4 { color: var(--teal); font: 650 1.03rem/1.4 var(--sans) }
.outcome p { margin-top: 5px }
.approval > .captain-player { margin-top: 14px }
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px }
.branch { display: flex; flex-direction: column; padding: clamp(17px, 2.5vw, 27px); background: #eaf2eb; border-top: 3px solid #547f6a; border-radius: 2px }
.pending { background: #f8efdf; border-color: #b38a46 }
.branch h4, .parts-list dt { font-size: 1.52rem; line-height: 1.24 }
.branch p { margin-top: 10px }
.branch .result { margin-top: auto; padding-top: 14px; color: #315e4b; font-size: .68rem }
.pending .result { color: #76531a }
.section-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(28px, 6vw, 78px) }
.mechanics, .beta-section, .invitation { padding-block: clamp(42px, 5.8vw, 83px) }
.mechanics { background: var(--night); color: #fffaf0 }
.mechanics .kicker { color: #e3c691 }
.parts-list div + div { border-top: 1px solid #475666; margin-top: 21px; padding-top: 21px }
.parts-list dt { color: #f4d99e }
.parts-list dd { color: #e1e9e7; margin-top: 6px }
.mechanism-intro { max-width: 40ch; margin-top: 16px }
.foresight-example { grid-column: 1 / -1; margin-top: -8px; border-top: 1px solid #475666 }
.foresight-example summary { width: fit-content; padding-block: 12px; cursor: pointer; font: 650 1rem/1.4 var(--sans) }
.foresight-example p, .foresight-example blockquote { max-width: 58ch }
.foresight-example blockquote { margin-top: 12px; padding-inline-start: 15px; border-inline-start: 2px solid #b89455 }
.beta-copy p + p { margin-top: 16px }
.run-limits { margin-block: 16px }
.run-limits summary { width: fit-content; padding-block: 10px; color: var(--teal); font-weight: 650; cursor: pointer }
.run-limits[open] summary { margin-bottom: 4px }
.go-checkpoints { width: 100%; border-collapse: collapse; font: .95rem/1.45 var(--sans); text-align: start }
.go-checkpoints th, .go-checkpoints td { padding: .65rem .75rem; text-align: start; vertical-align: top }
.go-checkpoints thead { background: var(--teal-pale); color: var(--teal) }
.go-checkpoints tbody tr { border-bottom: 1px solid var(--line) }
.go-checkpoints th[scope="row"] { width: 34%; color: var(--teal); font-weight: 650 }
.ahead { padding: 14px 0 0; border-top: 1px solid var(--line) }
.ahead strong { color: var(--teal); display: block; margin-bottom: 5px }
.beta-section .captain-player { margin-top: 22px }
.invitation { text-align: center; background: #e7eee8; border-block: 1px solid var(--line) }
.invitation .section-title { max-width: 16em; margin-inline: auto }
.invitation button { margin-top: 24px; background: var(--ink); color: var(--white); border-radius: 24px; padding-inline: 22px }
.opening .captain-player:not([data-listened]) .captain-play, .invitation button[aria-expanded="false"]:not([data-visited]) { border: 1px solid #c48e32; box-shadow: 0 0 0 1px #f0c56f, 0 0 15px rgb(205 144 40 / .42) }
.foot { color: var(--muted); padding: 25px 0 max(56px, calc(25px + env(safe-area-inset-bottom))); }
.foot .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot .wrap > :last-child { justify-self: end; }
.foot .overview-return {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  text-decoration: none;
}
.foot .overview-return:hover { background: var(--teal-pale); text-decoration: none; }
@media screen and (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecf0;
    --night: #070909;
    --paper: #000;
    --white: #101212;
    --muted: #b5c5d0;
    --line: #39413f;
    --teal: #92c8c2;
    --teal-pale: #152823;
    --transcript-paper: #123e38;
  }
  .mast { color: #fffaf0; }
  .lead, .checkpoint > p, .beta-copy p { color: var(--muted); }
  .case { background: #12171a; }
  .chart-section { background: #090d0c; border-color: var(--line); }
  .checkpoint:not(.last) { border-color: #5b7e77; }
  .outcome, .branch, .invitation { background: var(--teal-pale); }
  .branch .result { color: #a7d2b9; }
  .pending { background: #3c3429; }
  .pending .result { color: #f0cd8e; }
  .invitation button { background: #1c4946; color: #fffaf0; }
}
@media (max-width: 700px) {
  .opening, .section-grid { grid-template-columns: 1fr; gap: 26px }
  .mast-inner { min-height: 68px }
  .brand { gap: 7px; font-size: 1.25rem }
  .brand img { width: 42px }
  .brand small { font-size: .55rem }
  .mast a { font-size: .76rem }
  .fork { grid-template-columns: 1fr }
  .route { padding-inline: 16px }
  .case blockquote { max-width: 17em }
  .case .folio { margin-bottom: 13px }
  .dates { margin-top: 19px; padding-top: 12px }
}
@media (max-width: 365px) {
  .mast-inner { gap: 8px }
}
@media print {
  .mast, .invitation, .foot { display: none }
  .wrap { width: 100% }
  .case, .mechanics, .parts-list dt, .parts-list dd, .mechanics .kicker { background: white; color: black }
  .opening, .mechanics, .beta-section, .chart-section { padding-block: 14px }
  .branch { break-inside: avoid }
}
