:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #211f1b;
  --subtle: #615b50;
  --accent: #a83f1a;
  --rust: #bf532f;
  --line: #cec7b7;
  --pale: #ede7da;
  --header-height: 68px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Songti TC", "Noto Serif CJK TC", "Noto Serif TC", "PMingLiU", "Songti SC", Georgia, serif;
  --mono: "SFMono-Regular", "Menlo", "Courier Prime", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; min-height: 100svh; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
button, select, input { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
button, select, summary { cursor: pointer; }
button { background: none; }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: pretty; }
h1:focus, main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #f5c6a5; color: #231c18; }
.wrap { width: min(1240px, calc(100% - clamp(40px, 9.5vw, 152px))); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 8px; left: 10px; padding: 6px 12px; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: calc(var(--header-height) - 1px); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wordmark, .tools, .tool, .cover-meta, .byline, .start-button, .section-head, .page-meta, .directory-top { display: flex; align-items: center; }
.wordmark { gap: 8px; font-family: Georgia, var(--serif); font-size: 25px; line-height: 1; letter-spacing: -.06em; font-weight: 650; }
.wordmark img { width: 27px; height: 28px; object-fit: contain; }
.wordmark-series { margin-left: 5px; color: var(--accent); font-style: italic; font-weight: 500; }
.tools { gap: 24px; }
.tool { min-height: 38px; gap: 8px; padding: 0; border: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tool:hover, .text-link:hover, .cover-figure a:hover, .chapter-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.tool.screen-tool { border: 1px solid #b7ae9f; padding: 0 12px; min-height: 34px; }
.list-icon { height: 11px; width: 14px; border-block: 1.5px solid; position: relative; }
.list-icon::after { content: ''; position: absolute; top: 3px; left: 0; width: 10px; border-top: 1.5px solid; }
.screen-icon { display: inline-block; width: 14px; height: 13px; background:
  linear-gradient(currentColor,currentColor) left top / 5px 1.5px, linear-gradient(currentColor,currentColor) left top / 1.5px 5px,
  linear-gradient(currentColor,currentColor) right top / 5px 1.5px, linear-gradient(currentColor,currentColor) right top / 1.5px 5px,
  linear-gradient(currentColor,currentColor) left bottom / 5px 1.5px, linear-gradient(currentColor,currentColor) left bottom / 1.5px 5px,
  linear-gradient(currentColor,currentColor) right bottom / 5px 1.5px, linear-gradient(currentColor,currentColor) right bottom / 1.5px 5px;
  background-repeat: no-repeat; }
.cover-hero { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: clamp(30px, 5vw, 84px); align-items: center; padding: clamp(28px, 4.5vw, 62px) 0 clamp(30px, 4vw, 55px); }
.cover-copy { min-width: 0; }
.cover-meta { gap: 12px; color: var(--subtle); font-size: 14px; font-weight: 600; letter-spacing: .035em; }
.accent-line { width: 25px; height: 2px; background: var(--accent); }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #918577; }
.cover-heading { margin: 21px 0 20px; font-family: var(--serif); font-size: clamp(61px, 6.1vw, 94px); font-weight: 700; line-height: 1.04; letter-spacing: -.055em; }
.cover-heading > span { display: block; }
.cover-heading em { color: var(--accent); font-style: normal; }
.cover-subtitle { max-width: 24em; text-wrap: balance; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.65; }
.byline { margin-top: 15px; gap: 12px; font-size: 17px; font-weight: 650; }
.byline span { font-size: 12px; font-weight: 500; color: var(--subtle); }
.start-button { display: inline-flex; gap: 26px; margin-top: 24px; padding: 11px 19px 11px 22px; background: var(--accent); color: #fffaf1; font-size: 16px; font-weight: 650; }
.start-button:hover { background: #803116; }
.start-button span, .page-step span { font-size: 1.2em; line-height: 1; }
.cover-figure { min-width: 0; }
.cover-figure img { width: 100%; height: auto; display: block; background: #272019; }
.cover-figure figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0; font-size: 13px; color: var(--subtle); }
.cover-figure a { flex: none; color: var(--accent); font-weight: 600; }
.cover-index { border-top: 2px solid var(--ink); padding: 16px 0 28px; }
.section-head { justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-family: var(--serif); font-size: 25px; line-height: 1.3; }
.section-head > span { font-size: 13px; font-weight: 600; color: var(--subtle); }
.section-head b { margin-inline: 4px; font-weight: 400; color: #908978; }
#chapter-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.chapter-link { padding: 4px 13px 5px; border-left: 1px solid var(--line); }
.chapter-link:first-child { padding-left: 0; border-left: 0; }
.chapter-link:hover strong, .page-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.chapter-range, .folio, .page-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .035em; }
.chapter-range { color: var(--accent); }
.chapter-link strong { display: block; font-size: clamp(15px, 1.25vw, 19px); font-weight: 650; margin-top: 4px; }
#reader { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-height)); }
.page { flex: 1; padding-block: clamp(18px, 2.4vw, 34px) 22px; }
.page-meta { justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 11px; margin-bottom: clamp(17px, 2vw, 29px); }
.chapter-name { font-size: 14px; font-weight: 650; }
.folio { color: var(--subtle); }
.eyebrow, .block-label, .takeaway-label { color: var(--accent); font-size: clamp(13px, 1.05vw, 16px); font-weight: 650; letter-spacing: .025em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.eyebrow::before { content: ''; width: 20px; height: 2px; flex: none; background: currentColor; }
.slide-title, .directory h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 3.55vw, 56px); line-height: 1.26; letter-spacing: -.035em; }
.intro, .statement-copy { font-size: clamp(18px, 1.65vw, 25px); line-height: 1.65; margin-top: 13px; text-wrap: pretty; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(20px, 2.1vw, 32px) 0 0; border-block: 1px solid var(--line); }
.columns[data-columns="1"] { grid-template-columns: 1fr; }
.columns[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.column { min-width: 0; padding: clamp(14px, 1.6vw, 25px) clamp(16px, 2vw, 33px); display: flex; flex-direction: column; justify-content: center; gap: 18px; border-left: 1px solid var(--line); }
.column:first-child { padding-left: 0; border-left: 0; }
.column:last-child { padding-right: 0; }
.block-label { margin-bottom: 5px; }
.block-heading { font-family: var(--serif); font-size: clamp(22px, 2vw, 31px); line-height: 1.4; letter-spacing: -.025em; }
.prose-lines { display: grid; gap: 4px; margin-top: 5px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.62; }
.stat-value { color: var(--accent); font-size: clamp(30px, 3.75vw, 62px); font-family: Georgia, var(--serif); letter-spacing: -.045em; line-height: 1.2; font-weight: 600; }
.stat-caption { color: var(--subtle); line-height: 1.55; font-size: clamp(15px, 1.2vw, 18px); margin-top: 5px; }
.stats { display: flex; flex-wrap: wrap; gap: 15px 28px; }
.stats > .stat { flex: 1 1 120px; }
.stats .stat-value { font-size: clamp(23px, 2.2vw, 35px); }
.feature { display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); margin-top: 18px; }
.feature .stat-value { flex-shrink: 0; }
.feature .stat-caption { max-width: 36em; margin: 0; }
.chart-title { margin-bottom: 12px; font-size: clamp(16px, 1.35vw, 21px); font-weight: 650; }
.chart-row + .chart-row { margin-top: 8px; }
.chart-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: clamp(15px, 1.22vw, 19px); }
.chart-name span { min-width: 0; }
.chart-name strong { color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.chart-track { position: relative; height: 5px; margin-top: 3px; background: #e4ddcf; }
.chart-fill { display: block; height: 100%; background: var(--rust); }
.paired .chart-row:nth-of-type(2n + 1) .chart-fill { background: #716b61; }
.paired .chart-row:nth-of-type(3) { margin-top: 15px; }
.chart-axis { display: flex; justify-content: space-between; color: var(--subtle); font-size: 13px; }
.diverging .chart-track { height: 8px; }
.diverging .chart-track::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px solid var(--ink); }
.diverging .chart-fill { position: absolute; }
.chart-fill.range { background: linear-gradient(to right, var(--rust) var(--range-start), #dba284 var(--range-start)); }
.data-figure img { display: block; width: min(100%, 370px); height: auto; margin: 12px 0; }
.data-figure figcaption, .aside { color: var(--subtle); font-size: clamp(15px, 1.16vw, 18px); }
.aside { margin-top: 11px; }
.timeline, .pyramid, .chain, .page-list { list-style: none; padding: 0; }
.timeline li { border-left: 1px solid #bb937d; padding: 0 0 12px 20px; position: relative; font-size: clamp(16px, 1.4vw, 21px); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { position: absolute; top: .47em; left: -4px; content: ''; border-radius: 50%; width: 7px; height: 7px; background: var(--accent); }
.pyramid li { width: 100%; padding: 7px 6px; margin: 3px auto; text-align: center; background: #d6c9b6; font-weight: 650; }
.pyramid li:first-child { width: 52%; background: #714634; color: white; }
.pyramid li:nth-child(2) { width: 76%; background: #b47857; color: #181511; }
.chain li { display: grid; grid-template-columns: 1fr 1.5fr 0.5fr; gap: 12px; align-items: baseline; padding: 10px 5px; font-size: clamp(16px, 1.45vw, 22px); }
.chain li + li, .receipt-row + .receipt-row { border-top: 1px solid var(--line); }
.chain b { text-align: right; color: var(--accent); }
.receipt { padding: 6px 17px; background: #f0e9dd; border-block: 2px solid var(--ink); }
.receipt-row { display: grid; grid-template-columns: 1fr minmax(0, 1.4fr); gap: 12px; align-items: center; padding: 6px 0; }
.receipt-row:last-child { font-weight: 700; }
.receipt-row dd { text-align: right; }
.receipt input { width: 100%; min-width: 0; text-align: right; border: 0; border-bottom: 1px dashed #a2927e; background: transparent; padding: 3px 2px; color: var(--accent); }
.receipt input::placeholder { color: #766656; opacity: 1; }
.summary-table { width: 100%; border-collapse: collapse; font-size: clamp(15px, 1.25vw, 20px); }
.summary-table th, .summary-table td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.summary-table thead { color: var(--subtle); font-size: .88em; }
.summary-table tbody tr { border-top: 1px solid var(--line); }
.summary-table td:nth-child(2) { color: var(--accent); font-weight: 650; }
.mobile-label { display: none; }
.takeaway { display: flex; gap: 16px; align-items: baseline; background: var(--pale); border-left: 3px solid var(--accent); padding: 11px 17px; margin-top: 17px; }
.takeaway-label { flex-shrink: 0; }
.takeaway p { font-size: clamp(17px, 1.45vw, 23px); font-weight: 550; }
.source { margin-top: 15px; font-size: clamp(13px, 1.03vw, 16px); line-height: 1.55; color: var(--subtle); }
.page-nav { border-top: 1px solid var(--line); }
.page-nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 65px; gap: 12px; }
.page-step { display: inline-flex; align-items: center; gap: 12px; justify-self: start; font-weight: 650; font-size: 15px; padding: 9px 0; }
.page-step.next { justify-self: end; color: var(--accent); }
.page-step:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-select { display: inline-flex; align-items: center; gap: 7px; color: var(--subtle); font-size: 13px; }
.page-select select { width: 55px; padding: 5px 4px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 14px; }
.total { font-family: var(--mono); }
#reader:has(.statement) { background: #24211d; color: #f7f1e4; }
.statement { display: flex; flex-direction: column; justify-content: center; padding-block: 28px 54px; }
.statement .page-meta { color: #f0dfc8; }
.statement .folio { color: #d8cdbc; }
.statement .eyebrow { margin-top: clamp(15px, 4vw, 65px); color: #f29870; }
.statement .slide-title { max-width: 15em; font-size: clamp(42px, 5.2vw, 83px); }
.statement-copy { color: #e3d7c6; max-width: 34em; }
#reader:has(.statement) .page-nav { border-color: #706a5d; }
#reader:has(.statement) .page-step.next, #reader:has(.statement) .page-select { color: #edc1a9; }
.value .slide-title { font-size: clamp(48px, 5vw, 78px); }
.value .feature { margin-block: clamp(20px, 3vw, 46px); border-block: 1px solid var(--line); padding-block: 18px; }
.value .stat-value { font-size: clamp(48px, 5.5vw, 84px); }
.references { padding-left: 1.8em; margin-block: 22px; columns: 2; column-gap: 65px; font-size: 16px; }
.references li { break-inside: avoid; padding: 5px 4px; }
.references li::marker { font-family: var(--mono); color: var(--accent); font-size: .83em; }
.exchange { border-top: 1px solid var(--line); padding-top: 13px; color: var(--subtle); }
.directory { padding-block: 33px 45px; }
.directory-top { justify-content: space-between; gap: 15px; margin-bottom: 26px; }
.directory h1 { font-size: clamp(37px, 4.2vw, 62px); }
.text-link { color: var(--accent); font-weight: 650; font-size: 15px; }
#directory-list { border-top: 2px solid var(--ink); }
.chapter-group { border-bottom: 1px solid var(--line); }
.chapter-group summary { display: grid; grid-template-columns: 94px 1fr auto; gap: 12px; align-items: center; padding-block: 14px; list-style: none; }
.chapter-group summary::-webkit-details-marker { display: none; }
.chapter-group summary::after { content: '+'; font: 22px var(--mono); color: var(--accent); }
.chapter-group[open] summary::after { content: '−'; }
.chapter-group summary strong { font: 700 23px var(--serif); }
.page-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 22px; padding: 0 5px 14px; }
.page-list a { display: flex; gap: 10px; padding-block: 6px; }
.page-num { color: var(--accent); padding-top: 3px; }
@media (min-width: 901px) and (max-height: 770px) {
  :root { --header-height: 54px; }
  .page { padding-block: 15px; }
  .page-meta { margin-bottom: 11px; padding-bottom: 7px; }
  .columns { margin-top: 15px; }
  .column { padding-block: 12px; gap: 11px; }
  .page-nav-inner { min-height: 49px; }
  .cover-hero { padding-block: 24px; }
  .cover-figure { width: min(100%, 528px); justify-self: end; }
  .takeaway { margin-top: 12px; }
}
@media (max-width: 900px) {
  :root { --header-height: 59px; }
  .wrap { width: calc(100% - 48px); }
  .cover-hero { gap: 25px; }
  .cover-heading { font-size: clamp(49px, 7.2vw, 68px); }
  .cover-meta { gap: 7px; font-size: 12px; }
  .cover-subtitle { font-size: 17px; }
  .chapter-link { padding-inline: 9px; }
  #chapter-strip { grid-template-columns: repeat(4, minmax(0,1fr)); row-gap: 12px; }
  .chapter-link:nth-child(5) { border: 0; padding-left: 0; }
  .feature { gap: 17px; }
  .columns[data-columns="3"] .column { padding-inline: 13px; }
  .columns[data-columns="3"] .column:first-child { padding-left: 0; }
  .columns[data-columns="3"] .column:last-child { padding-right: 0; }
  .references { column-gap: 33px; }
}
@media (max-width: 650px) {
  :root { --header-height: 55px; }
  .wrap { width: calc(100% - 36px); }
  .tools { gap: 13px; }
  .tool { gap: 5px; font-size: 13px; }
  .sources-link { display: none; }
  .tool.screen-tool { padding-inline: 7px; min-height: 31px; }
  .wordmark { font-size: 21px; gap: 4px; }
  .wordmark img { width: 22px; height: 24px; }
  .cover-hero { grid-template-columns: 1fr; gap: 23px; padding-block: 24px; }
  .cover-heading { margin-block: 13px; font-size: clamp(49px, 13.7vw, 70px); line-height: 1.04; }
  .cover-subtitle { max-width: 23em; font-size: 17px; line-height: 1.55; }
  .byline { margin-top: 10px; font-size: 15px; }
  .start-button { margin-top: 15px; padding: 9px 15px; gap: 18px; font-size: 15px; }
  .cover-figure figcaption { font-size: 11px; }
  .section-head h2 { font-size: 24px; }
  #chapter-strip { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 13px; }
  .chapter-link { padding: 0 13px; }
  .chapter-link:nth-child(odd) { padding-left: 0; border-left: 0; }
  .page { padding-block: 15px 24px; }
  .page-meta { margin-bottom: 14px; padding-bottom: 8px; }
  .slide-title { font-size: clamp(30px, 7.9vw, 44px); }
  .intro, .statement-copy { margin-top: 9px; font-size: 17px; }
  .columns, .columns[data-columns="3"] { grid-template-columns: 1fr; margin-top: 17px; }
  .column, .columns[data-columns="3"] .column { padding: 14px 0; border-left: 0; gap: 10px; }
  .column + .column { border-top: 1px solid var(--line); }
  .block-heading { font-size: 22px; }
  .feature { display: block; }
  .feature .stat-caption { margin-top: 5px; }
  .takeaway { display: block; padding: 9px 13px; }
  .takeaway-label { display: block; margin-bottom: 2px; }
  .chart-title { margin-bottom: 8px; }
  .chain li { grid-template-columns: 1fr auto; gap: 1px 8px; }
  .chain li > span { grid-column: 1; grid-row: auto; }
  .chain li > b { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .summary-table, .summary-table tbody { display: block; }
  .summary-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
  .summary-table tbody tr { display: grid; gap: 3px; padding-block: 10px; }
  .summary-table tbody tr:first-child { border: 0; padding-top: 0; }
  .summary-table tbody tr:last-child { padding-bottom: 0; }
  .summary-table td { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 0; }
  .mobile-label { display: inline; font-size: 13px; font-weight: 500; color: var(--subtle); }
  .statement .slide-title { font-size: clamp(36px, 9.3vw, 54px); }
  .page-nav-inner { min-height: 57px; }
  .page-select { gap: 4px; }
  .page-step { gap: 6px; font-size: 14px; }
  .references { columns: 1; }
  .page-list { grid-template-columns: 1fr; }
  .chapter-group summary { grid-template-columns: 70px 1fr auto; }
  .chapter-group summary strong { font-size: 20px; }
  .directory { padding-top: 23px; }
}
