:root {
  --paper: #fff8e8;
  --ink: #173c32;
  --muted: #4f6056;
  --accent: #9e4219;
  --line: #d6ccaf;
  --panel: #f4e9cd;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid #aa4e22; outline-offset: 4px; }
.masthead { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding: .9rem clamp(1rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.masthead p { margin: 0; font-weight: 700; }
.deck { width: min(89%, 76rem); margin-inline: auto; }
.slide { padding-block: clamp(2.25rem, 7vh, 6rem); border-bottom: 1px solid var(--line); }
.presentation { padding-bottom: 8.3rem; }
.presentation .slide { border-bottom: 0; }
.cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.eyebrow { margin: 0 0 .6rem; color: var(--accent); font-weight: 750; }
h1, h2, h3 { margin: 0; line-height: 1.22; }
h1, h2 { font-family: "Songti SC", "Noto Serif CJK SC", serif; letter-spacing: -.045em; }
.cover h2 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.3rem, 6vw, 5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
.lead { font-weight: 650; font-size: clamp(1.1rem, 2.4vw, 1.65rem); margin-block: 1.1rem .85rem; max-width: 31em; }
figure { margin: 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 1rem; background: var(--panel); }
figcaption { margin-top: .45rem; color: var(--muted); font-size: .86rem; text-align: end; }
.cards, .route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1.65rem 0; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards article, .route li { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); }
.cards p, .route p { margin: .6rem 0 0; }
.strategy-cards article { border-top: .28rem solid var(--accent); }
.strategy-cards .eyebrow { margin: 0 0 .35rem; }
.route { padding-inline-start: 1.6rem; }
.route li::marker { color: var(--accent); font-weight: 750; }
.callout { margin-top: 1.5rem; max-width: 52rem; border-left: 5px solid var(--accent); padding: .8rem 1.2rem; background: var(--panel); }
.callout p { margin: 0; font-size: clamp(1.15rem, 2.7vw, 1.65rem); }
.afterword { max-width: 54rem; font-size: clamp(1rem, 2.4vw, 1.28rem); margin-top: 1.3rem; }
.spotlight h2 { color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: .6rem; margin: 1.5rem 0; }
.choices li { background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: .35rem; font-weight: 700; }
.closing { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.closing p { font-size: .94rem; color: var(--muted); }
.controls { position: fixed; inset: auto 0 0; padding: .65rem 1rem max(.65rem, env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); }
.control-bar { margin: 0 auto; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; }
.control-bar button { min-height: 44px; padding: .3rem .65rem; border: 1px solid #f4e9cda0; border-radius: .35rem; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.control-bar button:disabled { opacity: .58; cursor: default; }
.control-bar button:focus-visible { outline-color: #ffd38c; }
#position { margin: 0; min-width: 4rem; text-align: center; font-variant-numeric: tabular-nums; }
progress { display: block; accent-color: #ffc87e; width: min(100%, 21rem); height: .5rem; margin: .55rem auto 0; }
.key-hint { text-align: center; margin: .35rem 0 0; font-size: .84rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 44rem) {
  .cover, .cards, .cards.two, .route { grid-template-columns: 1fr; }
  .key-hint { display: none; }
  .presentation { padding-bottom: 7rem; }
}
@media print {
  header, .controls, .staging-notice { display: none !important; }
  .presentation { padding: 0; }
  .slide[hidden] { display: block !important; }
  .slide { break-after: page; }
  .slide:last-child { break-after: auto; }
}

.task-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .85rem;
  border-radius: .35rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.task-sheet { max-width: 52rem; padding-block: clamp(2rem, 6vw, 4rem); }
.task-sheet h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.task-sheet h2 { font-size: clamp(1.45rem, 4vw, 2.35rem); }
.task-sheet section + section { margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.build-map { width: 100%; border-collapse: collapse; text-align: center; }
.build-map caption { padding: .5rem 0; font-weight: 700; text-align: left; }
.build-map th, .build-map td { border: 1px solid var(--line); padding: .45rem .2rem; }
.build-map th { background: var(--ink); color: var(--paper); }
.build-map td { background: var(--panel); }
.build-steps li + li { margin-top: .8rem; }
