@font-face {
  font-family: "Roboto Slab";
  src: url("/assets/roboto-slab.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --sea: #153b50;
  --deep: #0c202c;
  --cream: #f5e9cb;
  --paper: #eadbb8;
  --ink: #302b23;
  --gold: #ba9148;
  --muted: #c4cbd0;
  font-family: "Roboto Slab", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: radial-gradient(ellipse at top, #23475a, transparent 70rem), var(--deep); color: var(--cream); font-size: 1rem; line-height: 1.75; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: #ffe2a5; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ffe2a5; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.7rem); font-weight: 600; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p + p { margin-top: .9rem; }
.skip-link { position: absolute; z-index: 5; top: .5rem; left: 1rem; padding: .5rem 1rem; background: var(--cream); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.masthead { width: min(1320px, calc(100% - 3rem)); margin: 1.4rem auto; display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; }
.brand { display: flex; gap: .7rem; align-items: center; text-decoration: none; font-size: 1.9rem; line-height: 1; font-weight: 650; letter-spacing: .035em; }
.brand small { display: block; margin-top: .5rem; color: #dbc08b; font-size: .58rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; }
.compass { width: 48px; height: 48px; }
main:focus { outline: none; }
nav ul { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
nav a, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: .7rem 1.65rem; background: url("/assets/menu-normal.webp") center / 100% 100% no-repeat; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .85rem; text-align: center; }
nav a:hover, .button:hover { color: #1c2930; background-image: url("/assets/menu-hover.webp"); }
nav a:active, .button:active { background-image: url("/assets/menu-pressed.webp"); }
nav a[aria-current="page"] { background-image: url("/assets/menu-pressed.webp"); text-decoration: underline; text-decoration-thickness: 2px; }
.button { min-height: 58px; font-size: .95rem; padding-inline: 2.3rem; }
.text-link { font-size: .95rem; }
main { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.hero { position: relative; min-height: 660px; display: flex; align-items: center; padding: 3rem; isolation: isolate; border: 1px solid var(--gold); box-shadow: 0 15px 50px #0005; }
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #071924ed, #07192477 53%, #07192405); }
.hero-copy { width: min(100%, 610px); }
.hero h1 { margin: 1.1rem 0; }
.hero-copy > p:not(.eyebrow) { max-width: 510px; color: #e1e6e5; font-size: 1.1rem; }
.hero-caption { position: absolute; right: 1rem; bottom: .75rem; font-size: .68rem; color: #fff; background: #071924c9; padding: .25rem .65rem; }
.eyebrow { margin-bottom: .7rem; color: #e8c785; font-size: .73rem; letter-spacing: .17em; font-weight: 650; text-transform: uppercase; }
.status { display: inline-block; border: 1px solid #a38550; background: #112e3ee6; color: #f1d59c; padding: .25rem .65rem; font-size: .75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.6rem; }
.section { padding-block: 4rem; }
.section + .section { border-top: 1px solid #ba914848; }
.section-head { max-width: 730px; margin-bottom: 2rem; }
.section-head > p:last-child { margin-top: 1rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.paper {
  position: relative;
  color-scheme: light;
  color: var(--ink);
  border-style: solid;
  border-color: transparent;
  border-width: 60px 32px 38px;
  border-image: url("/assets/panel-frame.webp") 140 95 105 95 fill / 60px 32px 38px 32px / 0 stretch;
  background: var(--paper);
  background-clip: padding-box;
  padding: 1.1rem .8rem 1.3rem;
}
.paper::before { content: ""; position: absolute; top: -57px; left: calc(50% - 32px); width: 64px; height: 64px; background: url("/assets/compass.webp") center / contain no-repeat; pointer-events: none; }
.paper h2, .paper h3 { color: #173e51; }
.paper p { color: #443d32; margin-top: .8rem; }
.paper a:hover { color: #704b17; }
.paper .eyebrow { color: #715020; }
.paper .button:hover { color: #1c2930; }
.badge { width: 62px; height: 62px; margin-bottom: 1rem; }
.card-number { display: block; color: #765422; letter-spacing: .16em; font-size: .75rem; margin-bottom: .8rem; }
.paper h3 + p { font-size: .95rem; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.4rem; align-items: center; }
.split > div > p { margin-top: 1rem; color: var(--muted); }
.artwork { border: 1px solid #aa8747; background: #0d2837; }
.artwork img { width: 100%; }
figcaption { padding: .75rem 1rem; color: #c5ced0; font-size: .76rem; line-height: 1.6; }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin: 1.7rem 0 0; padding: 0; list-style: none; counter-reset: journey; }
.journey li { counter-increment: journey; border-top: 1px solid var(--gold); padding-top: 1rem; }
.journey li::before { content: "0" counter(journey); display: block; color: #d8b774; font-size: .8rem; letter-spacing: .16em; margin-bottom: .5rem; }
.journey p { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.page-intro { padding: 3.5rem 0 2.7rem; max-width: 900px; }
.page-intro > p:not(.eyebrow) { max-width: 750px; margin-top: 1.3rem; color: var(--muted); font-size: 1.08rem; }
.page-intro .status { margin-top: 1.2rem; }
.page-intro h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); }
.wide-art { margin-bottom: 2rem; }
.wide-art img { max-height: 520px; object-fit: cover; }
.notes { display: grid; gap: .8rem; margin-top: 1.7rem; }
details { color-scheme: light; background: var(--paper); color: var(--ink); border: 1px solid #a1844f; }
summary { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.3rem; min-height: 58px; list-style: none; font-weight: 600; cursor: pointer; background: url("/assets/control-normal.webp") center / 100% 100% no-repeat; }
summary::-webkit-details-marker { display: none; }
summary:hover { background-image: url("/assets/control-hover.webp"); }
summary::after { content: "+"; margin-left: auto; font-size: 1.45rem; color: #684b1a; flex: none; }
details[open] > summary::after { content: "\2212"; }
.note-body { padding: .9rem 1.4rem 1.5rem; }
.note-body p { max-width: 850px; }
.note-body a:hover { color: #704b17; }
.note-body figure { margin-top: 1rem; }
.chain { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.2rem; font-weight: 600; font-size: .92rem; }
.chain span:not(.arrow) { padding: .4rem .7rem; border: 1px solid #a1844f; background: #fff1cf; }
.character-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.character { position: relative; }
.character .role { display: block; color: #765422; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin: .7rem 0; }
.character .badge { float: right; margin: 0 0 1rem .8rem; }
.character .effect { border-top: 1px solid #9c83545c; padding-top: .75rem; font-size: .85rem; }
.art-note { max-width: 730px; margin-top: 1.5rem; color: var(--muted); font-size: .85rem; }
.guide { display: grid; gap: 1.5rem; }
.guide-chapter { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; }
.guide-chapter .chapter { color: #795b2d; font-size: 2.3rem; line-height: 1; padding-top: .4rem; }
.guide-chapter ol { padding-left: 1.4rem; margin: 1.1rem 0 0; }
.guide-chapter li { margin-top: .7rem; padding-left: .25rem; }
.guide-chapter strong { color: #173e51; }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 1rem 0 0; }
.controls > div { display: grid; grid-template-columns: 120px 1fr; padding: .65rem 0; border-bottom: 1px solid #9c83545c; align-items: baseline; gap: .7rem; }
.controls dd { margin: 0; }
kbd { display: inline-block; border: 1px solid #a48c60; border-bottom-width: 2px; padding: .05rem .35rem; border-radius: 3px; background: #fbefd4; color: #302b23; font: .85em "Roboto Slab", serif; }
pre { padding: 1rem; background: #122d3c; color: #f5e9cb; overflow: auto; font-size: .85rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.timeline li { border-left: 2px solid var(--gold); padding: .25rem 0 .25rem 1.8rem; }
.timeline h3 { margin-top: .5rem; }
.timeline p { max-width: 780px; color: var(--muted); margin-top: .7rem; }
.timeline .stamp { color: #e8c785; font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.timeline .deferred { border-left-color: #89939c; }
.art-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.closing { margin: 1rem 0 3rem; text-align: center; }
.closing > p { max-width: 640px; margin-inline: auto; }
.closing .actions { justify-content: center; }
.site-footer { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 2rem 0; border-top: 1px solid #ba914860; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; font-size: .82rem; }
.footer-brand { font-size: 1.5rem; text-decoration: none; }
.site-footer p { color: var(--muted); }
.site-footer p + p { margin-top: 0; }
.copyright { margin-left: auto; }
@media (max-width: 1100px) {
  .masthead { flex-direction: column; gap: 1rem; }
  .cards { gap: .8rem; }
  .hero { min-height: 620px; }
}
@media (max-width: 760px) {
  main, .masthead, .site-footer { width: calc(100% - 2rem); }
  nav a { padding-inline: 1.1rem; min-height: 48px; font-size: .8rem; }
  .hero { min-height: 600px; padding: 2rem 1.3rem; }
  .hero-art { object-position: 68% center; }
  .hero::after { background: linear-gradient(90deg, #071924dd, #07192499); }
  .hero-caption { left: 1rem; right: auto; font-size: .6rem; }
  .cards, .split, .character-grid, .art-pair { grid-template-columns: 1fr; }
  .section { padding-block: 2.5rem; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-chapter { grid-template-columns: 1fr; gap: .7rem; }
  .controls { grid-template-columns: 1fr; }
  .page-intro { padding-top: 2rem; }
  .copyright { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
