:root {
  color-scheme: light;
  --ink: #10232c;
  --ink-2: #253a43;
  --muted: #65747a;
  --line: #d9e0dc;
  --paper: #f5f7f2;
  --paper-bright: #fbfcf8;
  --lime: #d6fb59;
  --orange: #e56c4d;
  --blue: #8bd5df;
  --mono: 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.72; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #209aaa; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.topbar { min-height: 78px; display: flex; align-items: center; gap: 36px; padding: 0 max(28px, calc((100vw - 1340px) / 2)); border-bottom: 1px solid rgba(16,35,44,.12); background: rgba(245,247,242,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(15px); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 210px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: var(--lime); background: var(--ink); font-family: Georgia, serif; font-size: 28px; line-height: 1; font-style: italic; }
.brand strong { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.brand small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--muted); line-height: 1.2; }
.main-nav { display: flex; gap: clamp(16px, 3vw, 38px); margin-left: auto; color: #465860; font-size: 14px; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .top-link:hover, .text-link:hover { color: #087c81; }
.top-link { color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.top-link span { margin-left: 4px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(370px, .8fr); align-items: center; gap: clamp(48px, 8vw, 112px); min-height: 590px; padding-block: 74px 88px; }
.eyebrow, .mini-label, .card-overline, .lab-number, .book-index, .risk-index, .chart-kicker { margin: 0; color: #587078; font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #e16f4e; box-shadow: 0 0 0 4px rgba(225,111,78,.12); }
.eyebrow-number { display: inline-flex; justify-content: center; width: 27px; height: 27px; align-items: center; margin-right: 3px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--mono); font-size: 10px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.045em; }
.hero h1 { margin: 23px 0 21px; font-size: clamp(56px, 7.1vw, 91px); line-height: 1.13; }
.hero h1 em, .section-heading h2 em, .no-hacking-copy h3 em, .closing h2 em { color: #64851c; font-style: normal; }
.hero-deck { max-width: 495px; color: #42575e; font-size: 18px; line-height: 1.82; }
.hero-deck strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 47px; padding: 0 18px; border: 0; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: 700; transition: transform .15s ease, background .15s ease, color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover:not(:disabled) { background: #23414b; }
.button-lime { color: var(--ink); background: var(--lime); }
.button-lime:hover:not(:disabled) { background: #c8ef3d; }
.button-quiet { color: #40555c; background: transparent; border: 1px solid rgba(16,35,44,.2); }
.button-quiet:hover:not(:disabled) { background: rgba(16,35,44,.055); }
.text-link { color: #263e47; font-size: 13px; font-weight: 700; }
.hero-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 45px; color: #475b62; font-family: var(--serif); font-size: 15px; line-height: 1.6; }
.hero-note p { margin: 0; }
.hero-note small { color: #77858a; font-family: var(--sans); font-size: 12px; }
.note-rule { width: 25px; height: 1px; margin-top: 12px; flex: 0 0 auto; background: #d57658; }
.toss-card { padding: 26px 28px 23px; background: var(--paper-bright); border: 1px solid #d7dfd7; box-shadow: 0 18px 58px rgba(23,47,52,.08); }
.card-overline { display: flex; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: 10px; }
.card-overline span:last-child { color: #859197; }
.toss-title-row { display: flex; justify-content: space-between; align-items: center; padding-block: 23px 11px; }
.mini-label { font-size: 10px; color: #77858a; }
.toss-card h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.odds-mark { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #536a26; background: #edf6c7; }
.odds-mark strong { color: #43591e; font-family: var(--mono); font-size: 23px; font-weight: 400; }
.odds-mark span { color: #677747; font-size: 9px; line-height: 1.3; }
.toss-counts { display: flex; align-items: end; gap: 19px; min-height: 104px; padding: 5px 0 15px; }
.toss-counts div:not(.count-divider) { display: grid; gap: 2px; }
.toss-counts strong { font-family: var(--mono); font-size: 43px; font-weight: 400; line-height: 1; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.toss-counts span { color: #6e7b7e; font-size: 12px; }
.count-divider { padding-bottom: 17px; color: #bdc7c2; font-size: 23px; }
.frequency-track { display: flex; overflow: hidden; width: 100%; height: 9px; border-radius: 8px; background: #edf0e9; }
.frequency-track span { display: block; height: 100%; transition: width .25s ease; }
.frequency-heads { background: #9fbe38; }
.frequency-tails { background: #375d64; }
.toss-caption { min-height: 45px; margin: 12px 0 15px; color: #637278; font-size: 13px; line-height: 1.6; }
.toss-actions { display: flex; gap: 10px; }
.toss-actions .button { min-height: 42px; font-size: 13px; }
.card-footnote { margin: 15px 0 0; color: #849096; font-size: 11px; }
.principle-ribbon { color: #e8eee7; background: #1d343d; }
.ribbon-inner { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3.8vw, 55px); font-size: 12px; letter-spacing: .035em; }
.ribbon-inner b { color: #82969a; font-weight: 400; }
.ribbon-mark { margin-left: auto; color: var(--lime); font-family: var(--mono); font-size: 14px; }
.section-pad { padding-block: 103px 112px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 38px; margin-bottom: 45px; }
.section-heading h2 { margin: 15px 0 0; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.26; }
.section-aside { max-width: 350px; margin: 0 0 7px; color: #66757a; font-size: 15px; line-height: 1.8; }
.course-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.course-group { padding: 23px 25px 12px; border: 1px solid #dbe1dc; background: rgba(251,252,248,.72); }
.course-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 14px; margin-bottom: 3px; border-bottom: 1px solid #dce3de; }
.course-group-title h3 { margin: 0; color: #62757a; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .09em; }
.course-group-title span { color: #9ba5a2; font-family: var(--mono); font-size: 10px; }
.chapter { border-bottom: 1px solid #e3e8e3; }
.chapter:last-child { border-bottom: 0; }
.chapter-toggle { display: grid; width: 100%; grid-template-columns: 36px 1fr 24px; align-items: center; gap: 9px; min-height: 57px; padding: 8px 0; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.chapter-no { color: #879497; font-family: var(--mono); font-size: 11px; }
.chapter-title { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.chapter-chevron { color: #839197; font-size: 17px; text-align: right; transition: transform .2s ease; }
.chapter-toggle[aria-expanded="true"] .chapter-chevron { transform: rotate(45deg); }
.chapter-detail { padding: 0 10px 18px 45px; color: #607077; font-size: 13px; line-height: 1.75; }
.chapter-detail[hidden] { display: none; }
.chapter-detail p { margin: 0 0 9px; }
.chapter-detail p:last-child { margin-bottom: 0; }
.chapter-detail strong { color: #263f47; }
.walk-section { color: #eff4ec; background: var(--ink); }
.walk-section .eyebrow, .walk-section .section-aside { color: #a8b8b8; }
.walk-section .eyebrow-number { color: var(--lime); }
.section-heading-invert h2 { color: #f1f4ee; }
.section-heading-invert h2 em { color: var(--lime); }
.walk-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(265px, .72fr); gap: 20px; align-items: stretch; }
.walk-chart-panel { min-width: 0; padding: 21px 22px 20px; color: #eaf1e8; background: #18313a; border: 1px solid rgba(233,245,227,.15); }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.chart-heading > div { display: grid; gap: 3px; }
.chart-kicker { color: #9db4b4; font-size: 9px; }
.chart-heading strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.chart-live { color: #9db4b4; font-family: var(--mono); font-size: 10px; }
.chart-live i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--lime); }
#walk-chart { display: block; width: 100%; height: 280px; margin-block: 10px 6px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 17px; padding-block: 9px 17px; color: #9cafae; font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 2px; display: inline-block; background: var(--lime); }
.chart-legend .legend-start { width: 7px; height: 7px; border-radius: 50%; background: #e7eee7; }
.chart-legend .legend-goal { background: #84cfd4; }
.chart-legend .legend-ruin { background: #e57457; }
.chart-controls { padding-top: 17px; border-top: 1px solid rgba(233,245,227,.15); }
.range-label { display: flex; justify-content: space-between; color: #c8d4cf; font-size: 12px; }
.range-label strong { color: var(--lime); font-family: var(--mono); font-size: 13px; font-weight: 400; }
input[type="range"] { width: 100%; height: 5px; margin: 12px 0 19px; accent-color: var(--lime); cursor: pointer; }
.walk-buttons { display: flex; gap: 9px; }
.walk-buttons .button { min-height: 40px; font-size: 12px; }
.walk-buttons .button-quiet { color: #d5e0d9; border-color: rgba(233,245,227,.22); }
.batch-button { width: 100%; padding: 15px 0 1px; border: 0; color: #bdd1d0; background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.batch-button:hover { color: var(--lime); }
.walk-aside { padding: 26px 25px; color: #c4d1cf; background: #d6fb59; color: #263b32; }
.walk-aside .mini-label { color: #63762e; }
.walk-aside h3 { margin: 9px 0 14px; color: #182d30; font-size: 29px; line-height: 1.35; }
.walk-aside > p:not(.mini-label):not(.math-note):not(.taleb-lens) { margin-bottom: 18px; color: #485e55; font-size: 13px; line-height: 1.75; }
.ruin-result { padding: 14px 0 15px; border-block: 1px solid rgba(23,48,43,.2); }
.ruin-result span { display: block; color: #556b5d; font-size: 11px; }
.ruin-result strong { display: block; margin: 3px 0; color: #16353a; font-family: var(--mono); font-size: 37px; font-weight: 400; letter-spacing: -.07em; line-height: 1.25; }
.ruin-result small { display: block; color: #657769; font-size: 10px; line-height: 1.5; }
.math-note { margin: 17px 0 19px; color: #4e6055; font-size: 11px; line-height: 1.7; }
.math-note strong { color: #213b36; font-family: var(--mono); font-weight: 500; }
.taleb-lens { margin: 0; padding-top: 12px; border-top: 1px solid rgba(23,48,43,.2); color: #233e38; font-family: var(--serif); font-size: 14px; line-height: 1.6; }
.taleb-lens span { display: block; margin-bottom: 4px; color: #64776b; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.almost-section { padding-block: 103px 112px; background: #e9eee8; }
.almost-section .section-heading { margin-bottom: 39px; }
.almost-intro-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 20px; align-items: stretch; }
.almost-definition { padding: 29px 30px; color: #eaf0e9; background: #142d36; }
.almost-kicker { color: #82999a; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.almost-definition > p:not(.almost-kicker) { margin: 15px 0 0; color: #dae3dc; font-size: 15px; line-height: 1.85; }
.almost-definition strong { color: var(--lime); font-weight: 600; }
.almost-definition sup { font-size: 10px; }
.almost-definition .almost-finite-note { padding-top: 15px; border-top: 1px solid rgba(232,240,231,.2); color: #afc1bc; font-size: 12px; }
.almost-figure { margin: 0; padding: 13px; background: #f9faf6; border: 1px solid #d5ddd7; }
.almost-figure img { display: block; width: 100%; height: auto; }
.almost-figure figcaption { padding: 10px 5px 1px; color: #75817e; font-size: 10px; line-height: 1.65; }
.almost-explorer { margin-top: 20px; padding: 27px 29px 23px; background: #f9faf6; border: 1px solid #d5ddd7; }
.explorer-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.explorer-heading h3 { margin: 4px 0 0; font-size: 25px; }
.explorer-mark { color: #607626; font-family: var(--mono); font-size: 14px; }
.example-switch { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 19px; }
.example-switch button { min-height: 36px; padding: 0 12px; border: 1px solid #d4ddd7; border-radius: 2px; color: #5e6e6e; background: transparent; font-size: 11px; cursor: pointer; transition: color .15s ease, background .15s ease, border .15s ease; }
.example-switch button:hover { border-color: #829b4a; color: #314848; }
.example-switch button[aria-pressed="true"] { border-color: #203a42; color: #eff3ec; background: #203a42; }
.almost-example-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: center; padding: 15px 19px; background: #eef2eb; }
.almost-visual { display: grid; min-height: 190px; align-items: center; }
.almost-graphic { display: block; width: 100%; height: auto; overflow: visible; }
.almost-graphic[hidden] { display: none; }
.almost-graphic text { fill: #71807d; font-family: var(--sans); font-size: 12px; }
.almost-graphic text.graphic-caption { fill: #536a6d; font-size: 11px; }
.graphic-line { stroke: #aab9af; stroke-width: 4; stroke-linecap: round; }
.graphic-span { stroke: #88a53b; stroke-width: 9; stroke-linecap: round; opacity: .52; }
.graphic-tick { stroke: #203a42; stroke-width: 2; }
.graphic-point { fill: #d86b4c; stroke: #fff; stroke-width: 3; }
.rational-dots circle { fill: #d86b4c; }
.coin-sequence text { fill: #203a42; font-family: var(--mono); font-size: 19px; font-weight: 600; }
.graphic-square { fill: #dfe8d9; stroke: #8fa29b; stroke-width: 1.5; }
.graphic-diagonal { stroke: #d86b4c; stroke-width: 3; }
.almost-example-copy { padding-block: 8px; }
.example-label { color: #768752; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.almost-example-copy h4 { margin: 5px 0 10px; color: #203840; font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.almost-example-copy p { margin: 0; color: #627277; font-size: 12px; line-height: 1.8; }
.example-equation { margin-top: 13px; padding-top: 11px; border-top: 1px solid #d7dfd8; color: #496219; font-family: var(--mono); font-size: 11px; }
.almost-footnote { margin: 15px 0 0; color: #7e8a86; font-size: 10px; line-height: 1.7; }
.theology-block { margin-top: 38px; padding: 31px; color: #eaf0e9; background: #203942; }
.theology-heading .eyebrow { color: #adbfbc; }
.theology-heading .eyebrow-number { color: var(--lime); }
.theology-heading h3 { margin: 13px 0 24px; color: #f0f4ed; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.35; }
.theology-answer { display: grid; grid-template-columns: 92px 1fr; gap: 17px; align-items: start; padding: 19px 21px; color: #213a40; background: var(--lime); }
.theology-answer > span { padding-top: 2px; color: #5a7132; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; }
.theology-answer p { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.8; }
.theology-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: rgba(226,239,231,.15); border: 1px solid rgba(226,239,231,.15); }
.theology-grid article { min-height: 185px; padding: 21px 22px; background: #203942; }
.theology-grid article > span { color: #a4b8b4; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.theology-grid h4 { margin: 10px 0 7px; color: #e9f0e8; font-family: var(--serif); font-size: 18px; }
.theology-grid p { margin: 0; color: #b9c9c4; font-size: 12px; line-height: 1.75; }
.theology-caveat { margin: 17px 0 12px; color: #c0ceca; font-size: 11px; line-height: 1.75; }
.theology-sources { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; color: #9fb3ae; font-family: var(--mono); font-size: 9px; }
.theology-sources a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(214,251,89,.45); text-underline-offset: 3px; }
.theology-sources a:hover { color: #fff; }
.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lab-card { padding: 25px 26px 23px; border: 1px solid #d9e0db; background: var(--paper-bright); }
.lab-card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.lab-number { color: #859292; font-size: 9px; }
.lab-card h3 { margin: 4px 0 0; font-size: 27px; }
.lab-tag { padding: 3px 8px; border: 1px solid #d4ddd8; border-radius: 20px; color: #68787c; font-size: 10px; white-space: nowrap; }
.lab-intro { min-height: 66px; margin: 15px 0 18px; color: #627176; font-size: 13px; line-height: 1.75; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.door { min-height: 73px; border: 1px solid #d6dfda; border-bottom: 4px solid #b5c3bd; color: #355059; background: #f0f4ee; font-family: var(--mono); font-size: 18px; cursor: pointer; transition: background .2s ease, transform .2s ease, border .2s ease; }
.door:not(:disabled):hover { transform: translateY(-3px); border-bottom-color: #647b80; }
.door:disabled { cursor: default; }
.door.is-selected { color: #112c36; border-color: #b4cb5b; border-bottom-color: #829e25; background: #eff7cf; }
.door.is-open { color: #778582; border-color: #d7dfdb; border-bottom-color: #d7dfdb; background: #e6ebe7; }
.door.is-winner { color: #122c34; border-color: #73c7ca; border-bottom-color: #278e94; background: #cbeef0; }
.monty-message { min-height: 43px; margin: 13px 0 10px; color: #586c70; font-size: 12px; }
.monty-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button-small { min-height: 35px; padding-inline: 12px; font-size: 11px; }
.lab-insight { margin: 17px 0 15px; padding: 11px 13px; background: #f0f4e9; }
.lab-insight span { display: block; margin-bottom: 2px; color: #788944; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.lab-insight p { margin: 0; color: #52635f; font-size: 11px; line-height: 1.6; }
.text-button { padding: 0; border: 0; color: #347b7d; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button:hover { color: #154e55; }
.monty-results { min-height: 24px; margin-top: 8px; color: #778589; font-size: 11px; }
.bayes-controls { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; }
.bayes-controls label { display: contents; }
.bayes-controls label span { color: #586c70; font-size: 12px; }
.bayes-controls label strong { justify-self: end; color: #547523; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.bayes-controls input[type="range"] { grid-column: 1 / -1; height: 4px; margin: 5px 0 13px; accent-color: #86a92e; }
.bayes-answer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; margin: 0 0 12px; color: #e9efe5; background: #203a41; }
.bayes-answer span { font-size: 11px; }
.bayes-answer strong { color: var(--lime); font-family: var(--mono); font-size: 25px; font-weight: 400; letter-spacing: -.05em; }
.people-counts { min-height: 58px; padding: 11px 13px; margin-bottom: 12px; border: 1px solid #e0e5df; color: #637278; font-size: 11px; line-height: 1.7; }
.people-counts strong { color: #233d45; font-family: var(--mono); font-weight: 500; }
.model-note { margin: 17px 0 0; color: #86918f; font-size: 11px; }
.risk-strip { color: #eff4ec; background: #34505a; }
.risk-inner { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 28px; min-height: 156px; }
.risk-index { color: #a9bfc0; font-size: 10px; }
.risk-inner p { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.5vw, 28px); line-height: 1.55; }
.risk-inner p strong { color: var(--lime); font-weight: 600; }
.risk-inner a { color: #d6e4dd; font-size: 12px; white-space: nowrap; }
.risk-inner a:hover { color: var(--lime); }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.book-card { position: relative; min-height: 300px; display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 23px; padding: 38px 27px 29px; border: 1px solid #d9e0da; background: var(--paper-bright); }
.book-index { position: absolute; top: 17px; left: 20px; color: #8b9898; font-size: 9px; }
.book-cover-mark { display: grid; align-items: center; justify-content: center; width: 130px; height: 188px; color: #d9f060; background: #1d363c; font-family: Georgia, serif; font-size: 94px; font-style: italic; box-shadow: 7px 8px 0 #d6e0d6; }
.book-copy .mini-label { letter-spacing: .08em; }
.book-copy h3 { margin: 8px 0 11px; font-size: 21px; line-height: 1.35; letter-spacing: -.03em; }
.book-copy p:not(.mini-label) { margin: 0; color: #65747a; font-size: 12px; line-height: 1.75; }
.book-rule { display: block; margin-top: 13px; color: #71823b; font-size: 10px; }
.feller-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; }
.feller-rating strong { color: #bd8433; font-size: 12px; letter-spacing: .08em; }
.feller-rating small { color: #8b9692; font-family: var(--mono); font-size: 8px; }
.book-taleb { color: #eff4ed; border-color: #28424b; background: #203942; }
.book-taleb .book-index, .book-taleb .mini-label { color: #b2c1bd; }
.book-taleb .book-copy h3 { color: #eff4ed; font-size: 24px; }
.book-taleb .book-copy p:not(.mini-label) { color: #bdccc6; }
.book-taleb .book-rule { color: var(--lime); }
.book-glyph { width: 130px; height: 188px; display: grid; place-items: center; color: #daf464; background: #152a31; border: 1px solid rgba(218,244,100,.32); font-family: var(--serif); font-size: 89px; }
.no-hacking-card { display: grid; grid-template-columns: minmax(220px, .63fr) 1fr; gap: 30px; align-items: center; margin: 27px 0 0; padding: 30px; background: #ebeee8; border: 1px solid #d8dfd9; }
.no-hacking-copy { padding: 7px 0; }
.no-hacking-copy h3 { margin: 18px 0 14px; font-size: 35px; line-height: 1.28; }
.no-hacking-copy h3 em { color: #ba563e; }
.no-hacking-copy > p:not(.eyebrow) { max-width: 370px; color: #637176; font-size: 13px; line-height: 1.8; }
.source-note { color: #83908f; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.no-hacking-card img { display: block; width: 100%; height: auto; border: 1px solid #d0d8d4; }
.no-hacking-reading { margin-top: 16px; padding: 29px 31px 24px; background: var(--paper-bright); border: 1px solid #d9e0da; }
.no-hacking-reading-head { max-width: 850px; }
.no-hacking-reading-head h3 { margin: 12px 0 9px; font-size: clamp(25px, 3vw, 34px); }
.no-hacking-reading-head > p:last-child { margin: 0; color: #627176; font-size: 13px; line-height: 1.85; }
.no-hacking-reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 20px; }
.no-hacking-reading-grid section { padding: 19px 20px 17px; background: #edf1ea; }
.no-hacking-reading-grid section > span { color: #718342; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.no-hacking-reading-grid h4 { margin: 7px 0 6px; color: #263f46; font-family: var(--serif); font-size: 19px; }
.no-hacking-reading-grid p { margin: 0; color: #66757a; font-size: 12px; line-height: 1.8; }
.no-hacking-reading-caveat { margin: 15px 0 10px; color: #75817f; font-size: 11px; line-height: 1.8; }
.no-hacking-reading-sources { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; color: #88938f; font-family: var(--mono); font-size: 9px; }
.no-hacking-reading-sources a { color: #58752e; text-decoration: underline; text-decoration-color: #bacb98; text-underline-offset: 3px; }
.no-hacking-reading-sources a:hover { color: #263f46; }
.shelf-section { margin-top: 47px; padding-top: 35px; border-top: 1px solid #d8dfda; }
.shelf-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(270px, .8fr); gap: 35px; align-items: end; }
.shelf-heading h3 { margin: 12px 0 0; color: #203a42; font-size: clamp(30px, 4vw, 43px); line-height: 1.28; }
.shelf-heading h3 em { color: #68821e; font-style: normal; }
.shelf-heading > p { margin: 0 0 5px; color: #67767a; font-size: 13px; line-height: 1.85; }
.shelf-boundary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 17px; margin-top: 22px; padding: 13px 16px; color: #64746f; background: #edf1e9; font-size: 11px; line-height: 1.7; }
.shelf-boundary strong { color: #374b48; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; white-space: nowrap; }
.shelf-boundary span { flex: 1 1 440px; }
.shelf-boundary a { color: #577228; text-decoration: underline; text-decoration-color: #bacb98; text-underline-offset: 3px; white-space: nowrap; }
.book-paths { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.book-paths article { display: flex; flex-direction: column; min-height: 220px; padding: 17px 15px 14px; background: #f9faf6; border: 1px solid #dce3dc; }
.book-paths article > span { color: #71834a; font-family: var(--mono); font-size: 9px; line-height: 1.6; }
.book-paths h4 { margin: 9px 0 8px; color: #263e45; font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.book-paths p { margin: 0 0 12px; color: #6c7a7d; font-size: 10px; line-height: 1.7; }
.book-paths button { align-self: flex-start; margin-top: auto; padding: 0; border: 0; color: #57752d; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; text-align: left; }
.book-paths button:hover { color: #243f47; text-decoration: underline; text-underline-offset: 3px; }
.path-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: -2px 0 7px; }
.path-rating span { color: #b98234; font-size: 11px; letter-spacing: .04em; }
.path-rating small { color: #87918c; font-family: var(--mono); font-size: 8px; }
.book-paths .path-taleb { background: #203942; border-color: #203942; }
.book-paths .path-taleb > span { color: #d0e471; }
.book-paths .path-taleb h4 { color: #f0f4ed; }
.book-paths .path-taleb p { color: #c3d0ca; }
.book-paths .path-taleb button { color: var(--lime); }
.path-note { margin: 10px 0 0; color: #87918e; font-size: 10px; line-height: 1.7; }
.shelf-browser { margin-top: 25px; padding: 23px 24px 20px; background: #e9eee8; border: 1px solid #d6dfd8; }
.shelf-browser-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.shelf-browser-heading h4 { margin: 3px 0 0; color: #203a42; font-family: var(--serif); font-size: 23px; }
.shelf-count { color: #74827d; font-family: var(--mono); font-size: 10px; }
.shelf-search-label { display: block; margin: 16px 0 5px; color: #6d7a78; font-size: 10px; }
.shelf-search { display: block; width: 100%; min-height: 41px; padding: 8px 12px; border: 1px solid #cdd8d0; border-radius: 2px; color: #203a42; background: #fbfcf8; font-size: 12px; }
.shelf-search::placeholder { color: #a0aaa4; }
.shelf-filters { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 12px 16px; }
.shelf-filters button { min-height: 32px; padding: 0 10px; border: 1px solid #d0dad3; border-radius: 2px; color: #687875; background: transparent; font-size: 10px; cursor: pointer; }
.shelf-filters button:hover { border-color: #819b4b; color: #314849; }
.shelf-filters button[aria-pressed="true"] { border-color: #203a42; color: #f0f4ed; background: #203a42; }
.shelf-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shelf-book { position: relative; min-height: 172px; padding: 13px 14px 12px; background: #fbfcf8; border: 1px solid #dce3dc; scroll-margin: 90px; }
.shelf-book:focus { outline: 2px solid #829b4a; outline-offset: 2px; }
.shelf-book-category { display: block; color: #829084; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }
.shelf-book h5 { margin: 6px 0 4px; color: #2b4146; font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.5; }
.shelf-book-authors { margin: 0; color: #75817f; font-size: 9px; line-height: 1.55; }
.shelf-book-intro { margin: 8px 0 0 !important; color: #647477 !important; font-size: 10px !important; line-height: 1.7 !important; }
.shelf-book-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin-top: 9px; }
.shelf-book-stars { color: #bd8433; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.shelf-book-score { color: #6e7b77; font-family: var(--mono); font-size: 8px; }
.shelf-book-badge { display: inline-block; margin-top: 8px; padding: 2px 6px; color: #43591e; background: #edf6c7; font-family: var(--mono); font-size: 8px; }
.shelf-book-source { display: inline-block; margin-top: 7px; color: #607b36; font-size: 9px; text-decoration: underline; text-decoration-color: #c2d09f; text-underline-offset: 3px; }
.shelf-book-source:hover { color: #243f47; }
.shelf-empty { grid-column: 1 / -1; margin: 0; padding: 18px; color: #71807b; background: #fbfcf8; font-size: 12px; text-align: center; }
.shelf-note { margin: 13px 0 0; color: #828e89; font-size: 9px; line-height: 1.7; }
.closing { padding-block: 30px 92px; text-align: center; }
.closing .eyebrow { justify-content: center; }
.closing h2 { margin: 18px 0 26px; font-size: clamp(32px, 4vw, 47px); line-height: 1.45; }
.closing .button { min-height: 43px; font-size: 12px; }
.footer { border-top: 1px solid #dce1dc; color: #7d8988; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; font-size: 11px; }
.footer-inner span:first-child { color: #354c52; font-family: var(--serif); font-weight: 600; }
.footer-inner a { color: #526970; }

@media (min-width: 1500px) {
  .hero { min-height: 650px; }
}
@media (max-width: 900px) {
  .topbar { gap: 20px; padding-inline: 24px; }
  .brand { min-width: auto; }
  .main-nav { gap: 15px; font-size: 12px; }
  .top-link { display: none; }
  .hero { grid-template-columns: 1fr .88fr; gap: 34px; min-height: 540px; }
  .hero h1 { font-size: clamp(54px, 8vw, 76px); }
  .hero-deck { font-size: 16px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 14px; }
  .section-aside { max-width: 310px; }
  .walk-layout { grid-template-columns: 1fr; }
  .almost-intro-grid { grid-template-columns: 1fr 1.15fr; }
  .almost-definition { padding: 23px; }
  .almost-example-layout { gap: 17px; padding-inline: 14px; }
  .theology-block { padding: 25px; }
  .walk-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .walk-aside .mini-label, .walk-aside h3, .walk-aside > p:first-of-type { grid-column: 1 / -1; }
  .walk-aside h3 br { display: none; }
  .ruin-result { align-self: start; }
  .math-note { margin-top: 0; }
  .taleb-lens { grid-column: 1 / -1; }
  .book-card { grid-template-columns: 95px 1fr; gap: 18px; padding-inline: 20px; }
  .book-cover-mark, .book-glyph { width: 94px; height: 155px; }
  .book-cover-mark { font-size: 76px; }
  .shelf-heading { grid-template-columns: 1fr; gap: 14px; }
  .book-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book-paths article { min-height: 205px; }
  .shelf-book { min-height: 185px; }
  .shelf-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 65px; }
  .wrap { width: min(100% - 36px, 540px); }
  .topbar { min-height: 64px; padding: 0 18px; }
  .brand-mark { width: 34px; height: 34px; font-size: 25px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 8px; }
  .main-nav { gap: 14px; margin-left: auto; max-width: calc(100vw - 176px); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 11px; }
  .main-nav a:nth-child(3) { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 35px; min-height: 0; padding-block: 57px 55px; }
  .hero h1 { margin-block: 19px 17px; font-size: clamp(53px, 15vw, 76px); }
  .hero-deck { max-width: 100%; font-size: 16px; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 13px 19px; margin-top: 20px; }
  .hero-actions .button { min-height: 43px; font-size: 12px; }
  .text-link { font-size: 11px; }
  .hero-note { margin-top: 27px; font-size: 13px; }
  .hero-note small { font-size: 11px; }
  .toss-card { padding: 19px 18px; }
  .toss-counts { min-height: 89px; }
  .toss-counts strong { font-size: 37px; }
  .ribbon-inner { justify-content: start; gap: 12px; min-height: 51px; overflow: hidden; white-space: nowrap; font-size: 10px; }
  .ribbon-mark { display: none; }
  .section-pad { padding-block: 70px 75px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2 { margin-top: 13px; font-size: clamp(37px, 11vw, 51px); }
  .section-aside { max-width: none; margin: 15px 0 0; font-size: 13px; }
  .course-groups { grid-template-columns: 1fr; gap: 12px; }
  .course-group { padding: 19px 18px 8px; }
  .chapter-toggle { grid-template-columns: 32px 1fr 20px; min-height: 53px; }
  .chapter-title { font-size: 15px; }
  .chapter-detail { padding-left: 40px; font-size: 12px; }
  .walk-section .section-pad { padding-block: 70px 74px; }
  .almost-section { padding-block: 70px 74px; }
  .almost-intro-grid, .almost-example-layout { grid-template-columns: 1fr; }
  .almost-definition { padding: 21px 19px; }
  .almost-definition > p:not(.almost-kicker) { font-size: 13px; }
  .almost-figure { padding: 8px; }
  .almost-figure figcaption { font-size: 9px; }
  .almost-explorer { padding: 20px 17px; }
  .explorer-heading h3 { font-size: 21px; }
  .explorer-mark { font-size: 11px; }
  .example-switch { gap: 6px; padding-block: 15px; }
  .example-switch button { min-height: 33px; padding-inline: 9px; font-size: 10px; }
  .almost-example-layout { gap: 8px; padding: 10px 12px 17px; }
  .almost-visual { min-height: 145px; }
  .almost-example-copy h4 { font-size: 18px; }
  .almost-example-copy p { font-size: 11px; }
  .theology-block { margin-top: 25px; padding: 21px 17px; }
  .theology-heading h3 { font-size: 28px; }
  .theology-answer { grid-template-columns: 1fr; gap: 5px; padding: 15px; }
  .theology-answer p { font-size: 13px; }
  .theology-grid { grid-template-columns: 1fr; }
  .theology-grid article { min-height: 0; padding: 17px 15px; }
  .walk-chart-panel { padding: 17px 15px; }
  #walk-chart { height: 228px; }
  .chart-legend { column-gap: 11px; row-gap: 7px; font-size: 9px; }
  .walk-aside { display: block; padding: 21px 19px; }
  .walk-aside h3 { font-size: 27px; }
  .walk-aside > p:not(.mini-label):not(.math-note):not(.taleb-lens) { font-size: 12px; }
  .ruin-result strong { font-size: 33px; }
  .lab-grid { grid-template-columns: 1fr; gap: 13px; }
  .lab-card { padding: 20px 18px; }
  .lab-intro { min-height: 0; font-size: 12px; }
  .doors { gap: 7px; }
  .door { min-height: 65px; }
  .risk-inner { grid-template-columns: 1fr; gap: 9px; padding-block: 25px; }
  .risk-index { font-size: 9px; }
  .risk-inner p { font-size: 20px; }
  .risk-inner a { justify-self: start; margin-top: 4px; }
  .reading-grid { grid-template-columns: 1fr; gap: 13px; }
  .book-card { min-height: 0; grid-template-columns: 82px 1fr; gap: 16px; padding: 45px 16px 19px; }
  .book-cover-mark, .book-glyph { width: 82px; height: 137px; }
  .book-cover-mark { font-size: 68px; }
  .book-glyph { font-size: 67px; }
  .book-copy h3, .book-taleb .book-copy h3 { font-size: 16px; }
  .book-copy p:not(.mini-label) { font-size: 11px; }
  .book-rule { font-size: 9px; }
  .book-index { top: 14px; left: 17px; }
  .no-hacking-card { grid-template-columns: 1fr; gap: 15px; padding: 21px 17px; }
  .no-hacking-copy h3 { margin: 13px 0 9px; font-size: 29px; }
  .no-hacking-copy > p:not(.eyebrow) { margin-bottom: 9px; font-size: 12px; }
  .no-hacking-card img { width: 100%; }
  .no-hacking-reading { padding: 21px 17px 18px; }
  .no-hacking-reading-head h3 { font-size: 24px; }
  .no-hacking-reading-head > p:last-child { font-size: 12px; }
  .no-hacking-reading-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 15px; }
  .no-hacking-reading-grid section { padding: 16px 14px; }
  .no-hacking-reading-grid h4 { font-size: 17px; }
  .no-hacking-reading-grid p { font-size: 11px; }
  .no-hacking-reading-caveat { font-size: 10px; }
  .no-hacking-reading-sources { font-size: 8px; }
  .shelf-section { margin-top: 32px; padding-top: 25px; }
  .shelf-heading { gap: 10px; }
  .shelf-heading h3 { font-size: 29px; }
  .shelf-heading > p { font-size: 11px; }
  .shelf-boundary { display: grid; gap: 6px; padding: 12px; font-size: 10px; }
  .shelf-boundary span { flex-basis: auto; }
  .shelf-boundary a { justify-self: start; }
  .book-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .book-paths article { min-height: 190px; padding: 13px 11px 11px; }
  .book-paths h4 { font-size: 14px; }
  .book-paths p { font-size: 9px; }
  .shelf-browser { padding: 18px 13px 15px; }
  .shelf-browser-heading h4 { font-size: 20px; }
  .shelf-count { font-size: 8px; }
  .shelf-filters { gap: 5px; }
  .shelf-filters button { min-height: 30px; padding-inline: 7px; font-size: 9px; }
  .shelf-books { grid-template-columns: 1fr; }
  .shelf-book { min-height: 0; }
  .shelf-book-intro { font-size: 10px !important; }
  .shelf-book h5 { font-size: 13px; }
  .closing { padding-block: 5px 66px; }
  .closing h2 { font-size: 30px; }
  .footer-inner { min-height: 61px; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding-block: 12px; font-size: 10px; }
  .footer-inner span:nth-child(2) { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Full-book table of contents replaces the former duplicate lesson summaries. */
.book-outline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.book-outline-part { display: flex; flex-direction: column; padding: 19px 18px 13px; border: 1px solid #dbe1dc; background: rgba(251,252,248,.78); }
.book-outline-part > span { min-height: 35px; padding-bottom: 10px; margin-bottom: 3px; border-bottom: 1px solid #dce3de; color: #78877f; font-family: var(--mono); font-size: 9px; line-height: 1.6; letter-spacing: .04em; }
.book-outline-part a { display: grid; grid-template-columns: 24px 1fr; gap: 7px; padding: 8px 0; border-bottom: 1px solid #e7ebe7; color: #30494f; font-family: var(--serif); font-size: 12px; line-height: 1.55; }
.book-outline-part a:last-child { border-bottom: 0; }
.book-outline-part a:hover { color: #57752d; }
.book-outline-part b { color: #94a393; font-family: var(--mono); font-size: 9px; font-weight: 400; }
.book-outline-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 18px; color: #84908c; font-size: 11px; }
.book-outline-footer .button { min-height: 42px; font-size: 12px; }
.full-book-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 31px 34px; border: 1px solid #d7dfd7; background: #eef2e7; }
.full-book-card .book-index { position: static; color: #687d35; }
.full-book-copy { max-width: 670px; }
.full-book-copy h3 { margin: 12px 0 10px; color: #182f36; font-size: clamp(27px, 3.2vw, 37px); line-height: 1.35; }
.full-book-copy h3 em { color: #64851c; font-style: normal; }
.full-book-copy > p:not(.mini-label) { margin: 0 0 17px; color: #5e6f6d; font-size: 13px; line-height: 1.8; }
.full-book-copy .button { min-height: 42px; font-size: 12px; }
.full-book-stat { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 9px; padding-left: 26px; border-left: 1px solid #cbd5c8; color: #708236; }
.full-book-stat strong { font-family: var(--mono); font-size: 31px; font-weight: 400; line-height: 1.35; }
.full-book-stat span { color: #839180; font-size: 10px; }
.screenshot-source-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .45fr); align-items: center; gap: 24px; margin: 18px 0 28px; padding: 18px; border: 1px solid #dbe1dc; background: #f0f2ed; }
.screenshot-source-card img { display: block; width: 100%; height: auto; border: 1px solid #d0d8d4; }
.screenshot-source-card figcaption { display: grid; gap: 10px; color: #637176; font-size: 12px; line-height: 1.75; }
.screenshot-source-card figcaption strong { color: #2c454b; font-family: var(--serif); font-size: 17px; }
.screenshot-source-card figcaption a, .book-crosslink a, .model-note a, .card-footnote a { color: #58732e; text-decoration: underline; text-decoration-color: #baca94; text-underline-offset: 3px; }
.book-crosslink { margin-top: 22px; font-size: 12px; }
.card-footnote a { display: inline-block; margin-top: 4px; }
@media (max-width: 900px) {
  .book-outline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .book-outline { grid-template-columns: 1fr; gap: 9px; }
  .book-outline-part { padding: 15px 16px 9px; }
  .book-outline-part > span { min-height: auto; }
  .book-outline-footer { align-items: flex-start; flex-direction: column; }
  .full-book-card { grid-template-columns: 1fr; gap: 20px; padding: 23px 18px; }
  .full-book-stat { grid-template-columns: auto auto auto auto; justify-content: start; gap: 0 8px; padding: 13px 0 0; border-left: 0; border-top: 1px solid #cbd5c8; }
  .screenshot-source-card { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .screenshot-source-card figcaption { padding: 2px 4px 6px; }
}
