:root {
  color-scheme: light dark;
  --page: #f7f4eb;
  --ink: #24392e;
  --muted-ink: #59685b;
  --paper: #eddfb9;
  --paper-ink: #3d4a31;
  --paper-faint: #d3c18e;
  --paper-line: #aa996d;
  --paper-water: #8da6a0;
  --surface: #fffcf5;
  --line: #d8d9c8;
  --pine: #244d3c;
  --pine-text: #fff8e9;
  --copper: #a24e28;
  --soft-copper: #f0e0cf;
  --blue-button: #416878;
  --focus: #925028;
  --shadow: 0 16px 50px #2636220d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #16271f;
    --ink: #ede7d5;
    --muted-ink: #b6c1ad;
    --paper: #354735;
    --paper-ink: #e0d9b8;
    --paper-faint: #425643;
    --paper-line: #7d8d69;
    --paper-water: #789b98;
    --surface: #1d3026;
    --line: #3d4d3d;
    --pine: #d9dec5;
    --pine-text: #203629;
    --copper: #dfab7c;
    --soft-copper: #3e3c2c;
    --blue-button: #9abec9;
    --focus: #f0bb8d;
    --shadow: 0 16px 50px #07150d26;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.page { width: min(1120px, 100% - 80px); margin: 0 auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-decoration: none; }
.wordmark-star { font-size: 26px; font-weight: 400; color: var(--copper); }
.text-link { font-size: 13px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-left: 7px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 42px 0 36px; }
.eyebrow { font-size: 10px; letter-spacing: .12em; font-weight: 700; display: block; }
.intro .eyebrow { margin: 0 0 16px; color: var(--muted-ink); }
h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(46px, 6.4vw, 77px); line-height: .99; letter-spacing: -.045em; margin: 0; }
h1 em { color: var(--copper); font-weight: 400; }
.intro-note { color: var(--muted-ink); font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 19px; line-height: 1.6; margin: 0 14px 4px 0; }
.adventure-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 32px; align-items: start; }
.map-sheet { margin: 0; color: var(--paper-ink); background: var(--paper); border-radius: 5px 28px 5px 5px; box-shadow: var(--shadow); overflow: hidden; }
.map-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 23px 24px 0; }
.map-edition { font-family: Georgia, 'Times New Roman', serif; font-size: 12px; font-style: italic; }
#camp-map { display: block; width: 100%; aspect-ratio: 1.23; }
.map-bottom { display: grid; grid-template-columns: 66px 1fr; gap: 8px 14px; align-items: center; margin: 0 22px 20px; padding-top: 13px; border-top: 1px solid var(--paper-line); }
.pocket-compass { width: 66px; }
.pocket-compass svg { width: 100%; display: block; }
.compass-case { fill: var(--paper-faint); stroke: var(--paper-line); stroke-width: 1.5; }
.compass-ring { fill: var(--paper); stroke: var(--paper-line); stroke-width: 1; }
.compass-ticks { fill: none; stroke: var(--paper-ink); stroke-width: 1; }
#compass-needle { transform-origin: 44px 44px; }
.needle-north { fill: var(--copper); }
.needle-south { fill: var(--paper-ink); opacity: .45; }
.compass-pin { fill: var(--paper-ink); }
figcaption strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 21px; line-height: 1.2; margin-top: 5px; }
#map-caption { display: block; font-size: 12px; margin-top: 5px; }
.quiet-button { background: none; border: 1px solid var(--paper-line); border-radius: 16px; padding: 7px 12px; font-size: 12px; min-height: 36px; grid-column: 2; justify-self: start; }
.quiet-button:disabled { opacity: .75; }
.story-panel { padding: 20px 4px 0; }
.scene-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted-ink); }
#ending-mark { color: var(--copper); font-size: 23px; }
h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(25px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.025em; margin: 14px 0 18px; }
#scene-title:focus { outline: none; }
.scene-text p { margin: 0 0 12px; }
.scene-aside { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 14px; color: var(--muted-ink); margin: 17px 0 21px; }
.choices { display: flex; flex-direction: column; gap: 9px; }
.choice { display: flex; align-items: center; gap: 13px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 12px 15px; font-size: 14px; line-height: 1.4; min-height: 48px; transition: background 140ms ease, transform 140ms ease; }
.choice:hover { background: var(--soft-copper); transform: translateX(3px); }
.choice-primary { background: var(--pine); color: var(--pine-text); border-color: var(--pine); }
.choice-primary:hover { background: var(--pine); opacity: .92; }
.choice-symbol { flex-shrink: 0; opacity: .8; }
.pockets { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 16px; }
.pockets .eyebrow { color: var(--muted-ink); }
#inventory { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; margin: 10px 0 0; }
#inventory li { border-radius: 3px; background: var(--soft-copper); padding: 5px 9px; font-size: 12px; }
.trail-controls { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
.text-button { border: 0; background: none; padding: 7px 0; min-height: 36px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { opacity: .45; text-decoration: none; }
.notebooks { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 35px; }
details { border-top: 1px solid var(--line); padding: 16px 0; min-width: 0; }
summary { cursor: pointer; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; }
summary span { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 11px; color: var(--muted-ink); margin-left: 9px; white-space: nowrap; }
.notebook-intro { color: var(--muted-ink); font-size: 13px; }
#trail-list { padding-left: 24px; font-size: 13px; }
#trail-list li { margin: 8px 0; }
#ending-list { list-style: none; padding: 0; font-size: 13px; }
#ending-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 9px; }
.ending-unfound { color: var(--muted-ink); font-style: italic; }
.save-note { color: var(--muted-ink); font-size: 12px; margin: 8px 0 38px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 25px; border-top: 1px solid var(--line); padding: 20px 0 34px; color: var(--muted-ink); font-size: 12px; }
footer p { margin: 0; }
footer strong { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 10px 14px; background: var(--pine); color: var(--pine-text); z-index: 5; }
.skip-link:focus { top: 16px; }
.no-script { padding: 16px; background: var(--soft-copper); }
.reading { max-width: 660px; margin: 52px auto 62px; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.75; }
.reading h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.08; margin: 14px 0 20px; }
.reading .byline { font-size: 14px; font-style: italic; margin-bottom: 35px; color: var(--muted-ink); }
.reading p { margin: 0 0 19px; }
.reading .return-link { margin-top: 34px; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 14px; }
@media (max-width: 820px) {
  .page { width: min(680px, 100% - 48px); }
  .intro { gap: 20px; padding-top: 32px; }
  .intro-note { font-size: 16px; }
  .adventure-grid { grid-template-columns: 1fr; gap: 22px; }
  .map-sheet { max-width: 620px; width: 100%; }
  #camp-map { aspect-ratio: 1.45; }
  .map-bottom { grid-template-columns: 60px 1fr auto; }
  .quiet-button { grid-column: 3; }
  .story-panel { padding: 0; }
  .notebooks { gap: 24px; }
}
@media (max-width: 480px) {
  .page { width: calc(100% - 32px); }
  .masthead { align-items: start; padding: 18px 0; gap: 14px; }
  .wordmark { font-size: 9px; letter-spacing: .08em; gap: 7px; }
  .wordmark-star { font-size: 22px; line-height: 1; }
  .text-link { font-size: 11px; max-width: 90px; text-align: right; }
  .intro { align-items: start; flex-direction: column; gap: 18px; padding: 27px 0 25px; }
  .intro-note { font-size: 15px; line-height: 1.45; }
  .map-heading { padding: 18px 16px 0; }
  .map-heading .eyebrow { font-size: 9px; }
  .map-edition { font-size: 11px; }
  #camp-map { aspect-ratio: 1.15; }
  .map-bottom { grid-template-columns: 52px 1fr; margin: 0 16px 17px; gap: 8px 10px; }
  .pocket-compass { width: 52px; }
  .quiet-button { grid-column: 2; min-height: 44px; }
  figcaption strong { font-size: 19px; }
  .scene-text { font-size: 15px; }
  .notebooks { grid-template-columns: 1fr; gap: 0; }
  .reading { font-size: 18px; margin-top: 34px; }
  footer { flex-direction: column; }
}
@media (pointer: coarse) { .text-button, .quiet-button { min-height: 44px; } summary { padding: 8px 0; } }
[data-motion="off"] .choice { transition: none; }
[data-motion="off"] .choice:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .masthead, .map-sheet, .choices, .trail-controls, .notebooks, .save-note, .skip-link { display: none; } .page { width: 100%; } .adventure-grid { display: block; } }
