.page-shell { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0 1.05rem; border-bottom: 1px solid var(--rule); }
.masthead-home { display: inline-flex; align-items: center; gap: .8rem; min-height: 48px; color: var(--sapphire); text-decoration: none; }
.masthead-mark { flex: 0 0 auto; width: 30px; height: 38px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.masthead-name { font-size: 20px; letter-spacing: -.025em; line-height: 1.3; }
.masthead-note { color: var(--muted); font-size: 16px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 3.2rem; padding: 3.4rem 0 3.8rem; }
.hero-copy .eyebrow { margin-bottom: 1.2rem; }
.hero-copy h1 { color: var(--sapphire); }
.scenario { font-size: 20px; line-height: 1.65; margin-top: 1.4rem; max-width: 52ch; }
.hero-copy .button-link { margin-top: 1.5rem; }
.hero-art { margin-inline: -1.2rem; }
.hero-art img { width: 100%; mix-blend-mode: multiply; }
.reading-section { border-top: 1px solid var(--rule); padding: 3.2rem 0 3.6rem; }
.section-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 3.4rem; align-items: start; }
.section-heading .eyebrow { margin-bottom: .9rem; }
.section-heading h2 { max-width: 14ch; }
.section-body { min-width: 0; }
.section-body > p + .text-link { margin-top: .6rem; }
.reading-note { margin-top: 1.3rem; padding: 1.2rem 1.4rem; background: var(--wash); border-left: 2px solid var(--sapphire); }
.reading-note h3 { margin-bottom: .6rem; }
.page-turn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding: 2.5rem 2.8rem; margin: .5rem 0 2rem; background: var(--sapphire); color: var(--paper); }
.page-turn .eyebrow { color: var(--paper); }
.page-turn h2 { margin-top: .5rem; font-size: 2.2rem; }
.page-turn p { margin-top: .7rem; }
.page-turn .button-link { background: var(--paper); color: var(--sapphire); border-color: var(--paper); white-space: nowrap; }
.page-turn .button-link:hover { color: var(--paper); background: var(--sapphire); }
.back-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; font-size: 18px; }
.site-footer { border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 1.8rem 0 8.5rem; font-size: 16px; color: var(--muted); }
.site-footer p { max-width: 64ch; }
.site-footer a { display: inline-flex; align-items: center; min-height: 48px; padding: .5rem 0; font-size: 16px; white-space: nowrap; }
.bottom-dock { position: fixed; z-index: 10; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(670px, calc(100% - 32px)); padding: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; box-shadow: 0 5px 25px #182a4517; }
.dock-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; gap: 3px; }
.dock-link { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 58px; color: var(--sapphire); font-size: 16px; line-height: 1.4; text-decoration: none; border-radius: 2px; }
.dock-link:hover { background: var(--wash); text-decoration: none; }
.dock-link[aria-current="page"] { color: var(--paper); background: var(--sapphire); }
.dock-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.missing-page { max-width: 800px; padding: 5rem 0; }
.missing-page h1 { color: var(--sapphire); margin: 1rem 0 1.5rem; }
.missing-page .button-link { margin-top: 1.5rem; }

@media (max-width: 1000px) {
  .page-shell { width: calc(100% - 64px); }
  .page-hero { gap: 1.5rem; }
  .section-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 2rem; }
  .masthead-note { display: none; }
}
@media (max-width: 700px) {
  .page-shell { width: calc(100% - 40px); }
  .masthead { padding: .85rem 0 .7rem; }
  .masthead-name { font-size: 18px; }
  .page-hero { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; padding: 2.3rem 0 2.5rem; }
  .hero-copy .eyebrow { margin-bottom: 1rem; }
  .scenario { font-size: 19px; margin-top: 1.15rem; }
  .hero-art { width: min(350px, 100%); margin-inline: auto; }
  .hero-art img { max-height: 260px; object-fit: contain; }
  .section-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .section-heading h2 { max-width: 20ch; }
  .reading-section { padding: 2.3rem 0 2.6rem; }
  .reading-note { padding: 1.15rem; }
  .page-turn { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 1.65rem 1.35rem; }
  .page-turn h2 { font-size: 2rem; }
  .page-turn .button-link { justify-self: start; white-space: normal; }
  .site-footer { flex-direction: column; gap: .6rem; padding: 1.6rem 0 7.5rem; }
  .bottom-dock { bottom: 0; width: 100%; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); border-inline: 0; border-bottom: 0; border-radius: 0; }
  .dock-link { flex-direction: column; gap: 3px; min-height: 66px; }
  .dock-icon { width: 21px; height: 21px; }
  .missing-page { padding: 3rem 0; }
}
