:root {
  color-scheme:dark;
  --ground:#111311;
  --panel:#191c19;
  --edge:#393c35;
  --paper:#f0ebdc;
  --quiet:#b0b3a5;
  --verm:#ec7259;
  --serif:"Iowan Old Style","Palatino Linotype","Book Antiqua",Georgia,serif;
  --sans:"Avenir Next","Segoe UI",Helvetica,sans-serif;
  --gutter:clamp(20px,4.9vw,84px);
}
*,*::before,*::after {box-sizing:border-box}
html {scroll-padding-top:18px}
body {margin:0;background:var(--ground);color:var(--paper);font:15px/1.5 var(--sans);overflow-wrap:break-word}
h1,h2,h3,h4,p,ul {margin:0}
a {color:inherit;text-decoration:none}
button,input,select {font:inherit;color:inherit}
button {cursor:pointer}
button:disabled {cursor:default}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible {outline:2px solid var(--verm);outline-offset:4px}
.sr,.skip:not(:focus) {position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}
.skip:focus {position:absolute;z-index:4;background:var(--paper);color:var(--ground);padding:8px}
.mast {border-bottom:1px solid #42433b;background:#111311}
.mast-inner,.hero-inner,.content,footer>div {width:100%;max-width:1620px;margin:auto;padding-inline:var(--gutter)}
.mast-inner {display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:68px}
.mast-brand {display:grid;justify-items:start;padding-block:4px}
.library-return {display:inline-flex;gap:5px;align-items:center;min-height:24px;color:#b9baae;font:600 12px/1.1 var(--sans)}
.library-return:hover {color:var(--paper);text-decoration:underline}
.brand {display:inline-flex;gap:13px;align-items:center;font:600 25px/1.1 var(--serif);letter-spacing:-1px;white-space:nowrap}
.seal {display:inline-flex;justify-content:center;align-items:center;gap:2px;width:30px;height:31px;background:#c95039;transform:skewY(-4deg);box-shadow:inset 0 0 0 2px #cd614b}
.seal i {width:3px;height:14px;display:block;background:#f8e9c8;transform:skew(-17deg);clip-path:polygon(100% 0,100% 82%,0 100%,0 18%)}
.seal i:first-child {height:10px;align-self:center;margin-top:7px}
.seal i:last-child {height:17px;margin-top:-5px}
nav {display:flex;align-items:center;gap:clamp(15px,2.7vw,44px);font-size:13px;font-weight:600;color:#b9baae;align-self:stretch}
nav a {display:inline-flex;align-items:center;gap:.3em;position:relative}
nav .nav-current {color:var(--paper)}
.nav-current:after {content:"";position:absolute;bottom:0;left:0;right:0;background:var(--verm);height:2px}
nav .download {border:1px solid #505247;padding:8px 14px;align-self:center;color:#e5e3d6}
.download-icon {font-size:18px;line-height:1;margin-right:2px}
nav a:hover,footer a:hover,.source-head a:hover {color:var(--verm)}
.hero {position:relative;isolation:isolate;overflow:hidden;background:#252a26 url("hero.webp") no-repeat 66% 46% /cover;border-bottom:1px solid #44463b}
.hero:before {content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(14,17,15,.90),rgba(14,17,15,.60) 27%,rgba(14,17,15,.08) 58%,transparent 76%),linear-gradient(0deg,rgba(13,16,13,.31),transparent 32%)}
.hero-inner {padding-top:clamp(38px,3.7vw,68px);padding-bottom:clamp(33px,3.2vw,60px)}
.eyebrow {text-transform:uppercase;letter-spacing:.15em;font-size:10px;line-height:1.4;font-weight:700;color:var(--quiet)}
.hero-label {color:#ede0c8;font-size:10px;letter-spacing:.21em;display:flex;align-items:center;gap:12px;margin-bottom:16px}
.hero-label i {width:31px;height:2px;display:block;background:var(--verm);transform:rotate(-2deg)}
h1 {font:500 clamp(68px,6.2vw,105px)/.85 var(--serif);letter-spacing:-.074em;color:#f4efdf;text-shadow:0 1px 20px rgba(0,0,0,.1)}
h1 em {font-weight:400;letter-spacing:-.078em}
.primary {display:inline-flex;align-items:center;gap:26px;border:0;background:#ed7c62;color:#20150f;padding:11px 16px;margin-top:26px;font-size:13px;font-weight:700;min-height:41px}
.primary span {font-size:21px;font-weight:400;line-height:1}
.primary:hover {background:#ff987d}
.overview {display:grid;grid-template-columns:1.07fr 1fr 1fr 1.62fr;background:#191c19;border:1px solid var(--edge);margin-top:25px}
.stat {min-width:0;position:relative;padding:18px clamp(16px,2vw,36px);display:flex;flex-direction:column;justify-content:center}
.stat+.stat {border-left:1px solid var(--edge)}
.stat-number {font:400 31px/1.12 var(--serif);margin-top:5px;white-space:nowrap}
.stat-number b {font-weight:500}
.stat-number span {color:#797e70;font-weight:400;font-size:23px}
.stat-number small {font-size:19px;color:#c7c8b9}
.stat-progress {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px}
.progress-ring {--percent:0%;position:relative;width:40px;height:40px;flex-shrink:0;border-radius:50%;background:conic-gradient(var(--verm) var(--percent),#494e43 0);display:grid;place-items:center}
.progress-ring:before {content:"";position:absolute;inset:3px;background:#191c19;border-radius:50%}
.progress-ring i,.needle {height:15px;width:5px;background:var(--verm);transform:rotate(34deg);clip-path:polygon(100% 0,100% 82%,0 100%,0 18%)}
.next {border:0;background:transparent;color:inherit;text-align:left;padding-right:44px}
.next:hover {background:#20241f}
.next .eyebrow {color:var(--verm);display:flex;align-items:center;gap:7px}
.needle {width:3px;height:10px}
.next strong {font:500 17px/1.35 var(--serif);margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.next-arrow {position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:19px;color:#cccdbd}
#journal {margin:38px 0 0;scroll-margin-top:16px}
.journal-head,.source-head {display:flex;justify-content:space-between;align-items:center;gap:20px}
h2 {font:400 clamp(33px,3.1vw,56px)/1.05 var(--serif);letter-spacing:-.055em}
h2 span {color:var(--verm)}
.search {display:flex;align-items:center;gap:10px;border:1px solid var(--edge);padding:9px 12px;background:#1a1c19;width:min(290px,42%);min-height:42px}
.search i {width:13px;height:13px;border:1.5px solid #a9ad9e;border-radius:100%;position:relative;flex-shrink:0}
.search i:after {content:"";position:absolute;height:1.5px;width:6px;background:#a9ad9e;right:-5px;bottom:-2px;transform:rotate(45deg)}
.search input {width:100%;min-width:0;border:0;background:none;font-size:13px;margin-left:3px;outline:0}
.search:focus-within {border-color:var(--verm)}
.search input::placeholder {color:var(--quiet)}
.journal-layout {display:grid;grid-template-columns:minmax(205px,25%) minmax(0,1fr);gap:clamp(20px,2.5vw,45px);align-items:start;margin-top:21px}
.stage-menu {border-top:1px solid #55594d;padding-top:18px}
.stage-menu h3 {margin:0 14px 13px}
#stage-nav {display:flex;flex-direction:column;gap:4px}
.stage-link {position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) 18px;gap:9px;align-items:center;border:0;background:none;color:#c3c5b9;width:100%;text-align:left;padding:11px 12px;min-height:45px;line-height:1.3;font-size:13px}
.stage-link:hover {background:#20231f}
.stage-link[aria-current="step"] {color:#f9edda;background:#30251f;box-shadow:inset 2px 0 0 var(--verm)}
.stage-index {font:12px/1.4 var(--serif);color:#a4a898;font-variant-numeric:tabular-nums}
.stage-link[aria-current="step"] .stage-index {color:#f28a72}
.stage-mark {height:9px;width:9px;display:block;border:1px solid #616657;transform:rotate(45deg);justify-self:center}
.stage-link[aria-current="step"] .stage-mark {background:var(--verm);border-color:var(--verm);height:7px;width:7px}
.stage-mark.done {border-color:#adc295;background:#adc295}
#stage-select {display:none;background:#20231f;border:1px solid var(--edge);padding:9px;width:100%}
.page {border:1px solid var(--edge);min-width:0;background:var(--panel)}
.page-head {padding:20px clamp(16px,2vw,29px);border-top:2px solid #a59d80;border-bottom:1px solid var(--edge);display:flex;justify-content:space-between;align-items:center;gap:18px}
.page-no {color:#d0ab86;font-size:9px}
.page-head h3 {font:400 clamp(23px,2vw,36px)/1.2 var(--serif);letter-spacing:-.035em;margin:4px 0 4px}
.count {font-size:12px;color:var(--quiet)}
.toggle {display:inline-flex;align-items:center;position:relative;gap:8px;cursor:pointer;color:#d1d4c8;font-size:12px;white-space:nowrap;min-height:34px}
.toggle input {opacity:0;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;cursor:pointer}
.switch {width:26px;height:15px;border-radius:10px;background:#272b25;border:1px solid #707568;pointer-events:none;display:flex;align-items:center;padding:2px}
.switch:after {content:"";height:9px;width:9px;border-radius:50%;background:#b4b8a8}
.toggle input:checked+.switch {background:#713d30;border-color:#c3745d}
.toggle input:checked+.switch:after {margin-left:auto;background:#ffbc9c}
.toggle input:focus-visible+.switch {outline:2px solid var(--verm);outline-offset:3px}
.group h4 {display:flex;align-items:center;gap:11px;padding:14px clamp(16px,2vw,29px);background:#21241f;color:#d0d1bd;font-size:11px;font-weight:600;letter-spacing:.075em;text-transform:uppercase;line-height:1.5}
.group h4::before {content:"";flex:0 0 auto;height:7px;width:7px;transform:rotate(45deg);border:1px solid #ac9c78}
.task {display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;padding:13px clamp(16px,2vw,29px);border-bottom:1px solid #33372e;align-items:start;scroll-margin-block:20px}
.task:last-child {border:0}
.task input {accent-color:#e47d60;cursor:pointer;width:17px;height:17px;margin:5px 0}
.task summary,.spoiler summary {cursor:pointer;color:var(--paper);list-style:none}
summary::-webkit-details-marker {display:none}
.task summary {display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:12px;min-height:28px}
.task summary:after,.spoiler summary:after {content:"";height:7px;width:7px;border:solid var(--quiet);border-width:0 1px 1px 0;transform:rotate(45deg);justify-self:center}
.task details[open]>summary:after,.spoiler[open]>summary:after {transform:rotate(225deg)}
.task-title {font-weight:600;font-size:14px;line-height:1.42}
.category {color:#c8b598;font-size:10px;font-weight:500;line-height:1.35;letter-spacing:.025em;padding:3px 7px;border:1px solid #49473b;max-width:225px}
.task.is-done .task-title {color:#a0a495;text-decoration:line-through}
.direction,.note,.spoiler p {color:#c9cbbb;font-size:14px;line-height:1.65;white-space:pre-line}
.direction {margin:7px 20px 4px 0}
.direction a,.note a,.warning a,.spoiler a {text-decoration:underline;text-underline-offset:3px;color:#edb991}
.warning,.note,.spoiler {margin:13px clamp(16px,2vw,29px)}
.note {padding:0}
.warning {background:#2c241c;color:#edcfab;border-left:2px solid #d79d57;padding:10px 14px;font-size:13px;line-height:1.55;white-space:pre-line}
.warning b {display:block;color:#f3b573}
.spoiler summary {display:flex;align-items:center;gap:12px;font-size:13px;color:#dec39f}
.spoiler p {padding-top:6px}
.empty {padding:30px 20px;color:var(--quiet);font-size:14px}
#sources {margin:52px 0;padding-top:25px;border-top:1px solid var(--edge)}
.source-head a {font-size:13px;color:#dbbf9c}
#source-list {padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:0 24px;margin-top:20px}
#source-list li {border-top:1px solid var(--edge);padding:10px 0;font-size:13px;color:var(--quiet)}
#source-list a:hover {color:var(--paper);text-decoration:underline}
#source-list a:after {content:" ↗";color:#e3b68b}
footer {background:#171a16;border-top:1px solid var(--edge)}
footer>div {display:flex;align-items:center;gap:20px;padding-top:20px;padding-bottom:20px;color:var(--quiet);font-size:12px}
.footer-brand {font:500 19px var(--serif);color:var(--paper)}
footer a {margin-left:auto}
.notice {padding:18px;border:1px solid var(--edge)}
@media(max-width:850px){
  .stat {padding:15px 13px}
  .stat-progress {gap:10px}.progress-ring {width:30px;height:30px}
  .next {padding-right:32px}.next-arrow {right:9px}
  .journal-layout {grid-template-columns:minmax(170px,25%) minmax(0,1fr);gap:18px}
  .category {max-width:150px}
}
@media(max-width:650px){
  :root {--gutter:18px}
  .mast-inner {min-height:55px}.brand {font-size:21px;gap:9px}.seal {width:26px;height:27px}
  nav {gap:13px;font-size:12px}nav .download {padding:5px 8px}nav .download>span:not(.download-icon){display:none}
  .hero {background-position:66% center}.hero-inner {padding-block:30px}.hero-label {font-size:9px;letter-spacing:.14em;gap:8px}.hero-label i {width:20px}
  h1 {font-size:clamp(57px,12.7vw,75px)}.primary {margin-top:22px;min-height:39px;padding:8px 12px;gap:20px}
  .overview {grid-template-columns:repeat(3,minmax(0,1fr));margin-top:15px}
  .stat {padding:11px 9px}.stat-progress {gap:0}.progress-ring {display:none}
  .eyebrow {font-size:8px;letter-spacing:.11em}
  .stat-number {font-size:26px}.stat-number small {font-size:15px}
  .stat.next {grid-column:1/-1;border:0;border-top:1px solid var(--edge);padding:10px 32px 10px 12px;align-items:flex-start}
  .next strong {font-size:16px}.next-arrow {right:14px}.next .eyebrow {font-size:9px}
  #journal {margin-top:26px}.journal-head {align-items:flex-start;gap:12px;flex-direction:column}.search {width:100%}
  .journal-layout {display:block;margin-top:14px}.stage-menu {border:0;padding:0;margin-bottom:12px;display:flex;align-items:center;gap:12px}
  .stage-menu h3 {margin:0;font-size:10px;white-space:nowrap}#stage-nav {display:none}#stage-select {display:block;min-width:0;font-size:13px}
  .page-head {padding:15px 14px;align-items:flex-start;gap:8px}.page-head h3 {font-size:23px}
  .toggle {font-size:10px;gap:6px}.group h4 {font-size:10px}
  .task {padding:10px 13px;gap:5px}.task summary {grid-template-columns:minmax(0,1fr) 10px;gap:3px 8px}.task summary:after {grid-column:2;grid-row:1}
  .category {grid-row:2;grid-column:1;justify-self:start;max-width:100%;padding:0;border:0;font-size:10px}
  .direction {margin-right:0;font-size:13px}
  footer>div {flex-wrap:wrap;gap:8px 12px}#save-state {font-size:11px}
}
@media(max-width:380px){nav {gap:10px}nav .route-link {display:none}}
[hidden] {display:none!important}
.next-arrow {width:12px;height:12px;border:solid #cfcebb;border-width:1.5px 1.5px 0 0}
.next-arrow:after {content:"";position:absolute;top:-.5px;right:0;height:1.5px;width:15px;background:#cfcebb;transform-origin:right center;transform:rotate(-45deg)}
.result-context {display:block;width:fit-content;margin:8px 0 2px;font-size:12px;text-decoration:underline;text-underline-offset:3px;color:#e6b99a}
#trophies {margin-top:38px;border-block:1px solid var(--edge)}
#trophies summary {display:flex;align-items:center;gap:15px;padding:20px 0;cursor:pointer;list-style:none}
#trophy-count {margin-left:auto;color:var(--quiet);font-size:12px}
.fold-icon {border:solid var(--verm);border-width:0 1.5px 1.5px 0;width:10px;height:10px;transform:rotate(45deg);margin:0 7px 4px}
#trophies[open] .fold-icon {transform:rotate(225deg);margin:4px 7px 0}
#ledger {padding:0 0 15px}
.trophy-row {display:grid;grid-template-columns:minmax(155px,23%) 66px minmax(0,1fr);gap:12px;align-items:baseline;border-top:1px solid var(--edge);padding:12px 2px}
.trophy-name {font:500 18px/1.35 var(--serif)}
.trophy-grade {color:#d2bb97;font-size:11px}
.trophy-condition {color:#c8cbbc;font-size:14px;line-height:1.6}
.trophy-condition a {text-decoration:underline;text-underline-offset:3px;color:#e3b792}
#trophies+#sources {margin-top:32px;border:0;padding:0}
@media(max-width:650px){.trophy-row {grid-template-columns:1fr auto;gap:5px 8px}.trophy-condition {grid-column:1/-1}nav {gap:12px}}
@media(max-width:490px){nav .route-link {display:none}}
@media(max-width:365px){.mast-inner {gap:8px}.brand {font-size:19px;gap:6px}nav {gap:8px}.download-icon {display:none}}


.briefing {border-bottom:1px solid var(--edge)}
.briefing summary {cursor:pointer;display:flex;align-items:center;gap:10px;padding:9px clamp(16px,2vw,29px);font-size:12px;color:#d7c8ac;list-style:none}
.briefing summary:before {content:"+";font-size:16px;line-height:1;color:#d89470}
.briefing[open] summary:before {content:"−"}
.briefing .note {margin-top:0}
.turn-page {display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--edge);padding:13px clamp(16px,2vw,29px);color:#e0b798;font-size:12px}
.turn-page a:only-child {margin-left:auto}
.turn-page a:hover {text-decoration:underline}
