/* The visual system for the reading pages: /guide/ and /society-fail/. */
:root {
  color-scheme: light;
  --paper: #f3f0e7;
  --ink: #26312b;
  --muted: #626a5e;
  --line: #d3d5c9;
  --accent: #aa512e;
  --green: #18241e;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.75; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
p { margin-bottom: 20px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.5vw, 48px); letter-spacing: -1.6px; line-height: 1.22; margin-bottom: 24px; text-wrap: balance; }
h3 { font-family: var(--sans); font-size: 16px; line-height: 1.35; margin-bottom: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #cfaa73; color: #18241e; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 14px; }
.reading-progress { height: 3px; position: fixed; z-index: 30; inset: 0 0 auto; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: #cf9b5f; transform: scaleX(0); transform-origin: left; }
.site-nav { height: 80px; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #f3f0e7; background: #18201c; border-bottom: 1px solid #5b63564d; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 29px; font-weight: 700; letter-spacing: 1px; line-height: 1; }
.wordmark svg { width: 36px; height: 36px; stroke: #c4986e; fill: none; stroke-width: 1.2; }
.wordmark span { font-family: var(--sans); font-size: 9px; letter-spacing: 2px; font-weight: 500; border-left: 1px solid #687264; padding: 9px 0 9px 15px; margin-left: 4px; }
.site-nav nav { display: flex; align-items: center; gap: 30px; font-size: 12px; }
.site-nav nav a { text-decoration: none; }
.site-nav nav a[aria-current] { color: #ddbc94; }
.site-nav .nav-play { border: 1px solid #89917c; padding: 9px 17px; }
.nav-play span { margin-left: 15px; color: #ddbc94; }
.hero { min-height: 700px; height: min(800px, 88vh); position: relative; isolation: isolate; overflow: hidden; color: #f3f0e7; background: #18201c; display: flex; align-items: center; }
.hero-art, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-art { object-fit: cover; object-position: center 54%; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, #101c17d9 0%, #18201c70 42%, transparent 78%), linear-gradient(0deg, #101b15d9, transparent 24%); }
.hero-content { width: 90%; max-width: 1400px; margin: 0 auto; padding: 0 0 36px; }
.eyebrow { font-family: var(--sans); font-size: 9px; font-weight: 600; line-height: 1.5; letter-spacing: 1.8px; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; color: #d5ceba; font-size: 10px; margin-bottom: 27px; }
.live-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #c79869; flex-shrink: 0; }
.hero h1 { font-family: var(--display); font-size: clamp(78px, 9.3vw, 142px); font-weight: 700; line-height: .89; letter-spacing: -1.5px; margin: 0 0 29px; }
.hero h1 em { font-style: normal; color: #d7b68c; }
.hero-deck { color: #e1e0d5; font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 45px; text-decoration: none; padding: 13px 24px; font-size: 12px; font-weight: 600; transition: background .2s, color .2s; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #d7b68c; }
.hero-secondary { display: inline-block; text-decoration: none; margin-left: 24px; font-size: 11px; border-bottom: 1px solid #8e9b89; padding-bottom: 3px; }
.hero-secondary span { margin-left: 10px; }
.hero-footer { position: absolute; bottom: 25px; left: 5%; right: 5%; display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid #cacbbb42; font-size: 8px; letter-spacing: 1.4px; color: #d2d5c7; }
.hero-coordinate { position: absolute; right: 5%; top: 32px; font-size: 8px; letter-spacing: 1.7px; line-height: 1.8; text-align: right; color: #e3e3d8; }
.manifest { max-width: 1360px; margin: 0 auto; padding: 55px 5%; display: grid; grid-template-columns: 1fr 1.5fr 100px; gap: 60px; align-items: center; border-bottom: 1px solid var(--line); }
.manifest > p { font-family: var(--serif); font-size: 24px; line-height: 1.5; margin: 0; letter-spacing: -.8px; }
.manifest > p em { color: var(--accent); }
.manifest > div { font-size: 13px; color: var(--muted); }
.manifest > div span { display: block; margin-top: 7px; color: var(--ink); }
.manifest-stamp { border: 1px solid #9d9f8c; border-radius: 50%; width: 90px; height: 90px; padding: 18px; text-align: center; transform: rotate(-12deg); font-size: 10px; line-height: 1.6; letter-spacing: 2px; color: #6e755f; }
.manifest-stamp b { font-size: 8px; font-weight: 400; }
.guide-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 65px; max-width: 1320px; padding: 70px 5% 100px; margin: 0 auto; }
.guide-sidebar { position: sticky; top: 35px; align-self: start; }
.guide-sidebar > .eyebrow { color: var(--muted); margin-bottom: 20px; }
.chapter-nav { display: flex; flex-direction: column; gap: 4px; }
.chapter-nav a { padding: 9px 0 9px 11px; margin-left: -12px; border-left: 2px solid transparent; display: flex; gap: 14px; font-size: 11px; color: var(--muted); text-decoration: none; transition: color .15s; }
.chapter-nav a span { font-family: var(--display); font-size: 13px; color: #797f6c; }
.chapter-nav a:hover, .chapter-nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.chapter-nav a[aria-current] span { color: var(--accent); }
.reference-link { display: block; padding: 18px 0; margin-top: 20px; border-block: 1px solid var(--line); font-size: 11px; text-decoration: none; }
.sidebar-note { padding-top: 30px; }
.crosshair { font-size: 29px; color: #85876f; }
.sidebar-note p { font-family: var(--serif); font-size: 13px; font-style: italic; margin-top: 10px; margin-bottom: 14px; }
.sidebar-note small { color: var(--muted); font-size: 9px; line-height: 1.7; display: block; }
/* Play links inside the manual. A reader who is convinced halfway down should
   not have to scroll back to the nav or on to the end to act on it. */
.sidebar-play { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 12px 14px; background: var(--green); color: #f1efe4; font-size: 11px; font-weight: 600; letter-spacing: .3px; text-decoration: none; transition: background .2s; }
.sidebar-play:hover { background: #2b3a30; }
.sidebar-play span { color: #ddbc94; }
.inline-play { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin-top: 40px; padding: 26px 30px; border: 1px solid var(--line); background: #edeade; }
.inline-play p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.5; letter-spacing: -.4px; }
.inline-play small { display: block; margin-top: 7px; font-family: var(--sans); font-size: 11px; line-height: 1.7; letter-spacing: .2px; color: var(--muted); }

.chapters { min-width: 0; }
.chapter { padding: 0 0 62px; margin-bottom: 62px; border-bottom: 1px solid var(--line); }
.chapter > .eyebrow, .quick-reference > .eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--accent); margin-bottom: 28px; }
.chapter > .eyebrow > :last-child { color: #727865; font-size: 8px; letter-spacing: 1.4px; }
.lead { font-size: 16px; line-height: 1.8; color: #515d50; max-width: 650px; margin-bottom: 30px; }
.figure-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; font-size: 8px; letter-spacing: 1.5px; background: var(--green); color: #d6d9c7; border-bottom: 1px solid #5e69513d; }
.figure-bar .live-dot { width: 4px; height: 4px; margin-right: 6px; }
.annotated-screen { position: relative; background: #0e1216; }
.annotated-screen > img { width: 100%; }
.screen-pin { display: grid; place-content: center; position: absolute; background: #efd2a0; color: #382614; width: 25px; height: 25px; font-size: 12px; font-weight: 700; border: 1px solid #fff7df; border-radius: 50%; box-shadow: 0 0 0 5px #c69b6740, 0 2px 8px #0006; text-decoration: none; }
.screen-pin:hover { background: #fff4d8; transform: scale(1.1); }
.pin-one { left: 62%; top: 6%; }
.pin-two { left: 63%; top: 22%; }
.pin-three { left: 61%; top: 66%; }
.zoom-link { position: absolute; right: 14px; bottom: 14px; padding: 7px 12px; background: #eceddd; color: #26312b; font-size: 10px; text-decoration: none; }
.zoom-link span { margin-left: 13px; }
figcaption { font-size: 10px; line-height: 1.7; color: var(--muted); padding-top: 12px; }
.screen-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 27px 0; }
.screen-notes > div { padding-top: 15px; border-top: 1px solid var(--line); scroll-margin-top: 25px; }
.screen-notes > div:target { border-color: var(--accent); }
.screen-notes .number { color: var(--accent); font-size: 12px; float: left; margin-right: 10px; }
.screen-notes h3 { font-size: 12px; margin-top: 3px; }
.screen-notes p { font-size: 12px; line-height: 1.7; margin-bottom: 0; color: var(--muted); }
.clock-strip { display: grid; grid-template-columns: 67px 1fr 1.4fr; align-items: center; gap: 20px; padding: 22px 0; border-block: 1px solid var(--line); }
.clock-strip > strong { font-family: var(--display); font-size: 66px; line-height: .85; font-weight: 500; }
.clock-strip > strong span { font-family: var(--sans); font-size: 9px; margin-left: 6px; letter-spacing: 1px; }
.clock-strip p { font-size: 11px; margin: 0; color: var(--muted); }
.clock-strip p b { color: var(--ink); font-weight: 500; }
.opening-plan { border: 1px solid #bdc2b0; background: #eaeadd; }
.plan-heading { display: flex; justify-content: space-between; gap: 16px; padding: 16px 23px; border-bottom: 1px solid #bdc2b0; }
#checklist-status { font-size: 10px; color: var(--muted); }
.opening-plan label { display: grid; grid-template-columns: 20px 24px 1fr; align-items: start; gap: 13px; padding: 20px 23px; cursor: pointer; border-bottom: 1px solid #cdd1c1; }
.opening-plan input { width: 17px; height: 17px; margin: 5px 0 0; accent-color: #426348; cursor: pointer; }
.check-number { color: #717d64; font-family: var(--display); font-size: 19px; }
.opening-plan b { display: block; font-size: 14px; font-weight: 600; }
.opening-plan small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.opening-plan label:has(input:checked) { background: #dce4d0; }
.opening-plan label:has(input:checked) b { color: #435d38; }
.plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 23px; font-size: 9px; color: #626a5e; }
.plan-footer button { color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #8c927f; padding: 4px 0; font-size: 10px; white-space: nowrap; }
.field-note { margin: 28px 0; padding: 3px 0 3px 23px; border-left: 2px solid #ab5c35; }
.field-note > span { display: block; font-size: 8px; letter-spacing: 1.5px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.field-note p { font-size: 13px; margin-bottom: 0; color: #59624f; }
.field-note strong { color: var(--ink); }
.danger { padding: 22px 24px; background: #ebdfd0; }
.reference-details { margin-top: 25px; border-block: 1px solid var(--line); }
summary { padding: 18px 0; font-weight: 600; font-size: 13px; }
summary span { float: right; margin-right: 8px; font-size: 18px; line-height: 1.2; font-weight: 400; transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
.details-body { padding: 8px 0 22px; font-size: 13px; }
.details-body p { margin-bottom: 15px; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); font-size: 10px; padding: 0 0 10px; }
th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); }
thead th { background: #e4e5d9; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
tbody th { font-weight: 500; }
tbody tr:nth-child(even) { background: #e8e9dd66; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.resource-card { border: 1px solid #cbd0bf; min-width: 0; }
.resource-art { position: relative; padding: 15px 5px 0; background: #e3e5d7; }
.resource-card:nth-child(2) .resource-art { background: #dfe8e1; }
.resource-card:nth-child(3) .resource-art { background: #e9e1d2; }
.resource-art > span { position: absolute; left: 13px; top: 10px; font-size: 8px; color: #67705e; letter-spacing: 1px; }
.resource-art img { width: 100%; }
.resource-copy { padding: 18px 16px; }
.resource-copy h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.resource-copy > p:not(.yield) { font-size: 12px; color: var(--muted); line-height: 1.7; min-height: 82px; margin-bottom: 20px; }
.yield { font-family: var(--display); font-size: 30px; line-height: 1; margin-bottom: 18px; }
.yield span { font-family: var(--sans); font-size: 7px; letter-spacing: 1px; vertical-align: middle; margin-left: 4px; }
.key-hint { font-size: 7px; letter-spacing: 1px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
kbd { display: inline-grid; place-content: center; font-family: var(--sans); width: 20px; height: 21px; border: 1px solid #a0a991; background: #e8eade; font-size: 10px; box-shadow: 0 2px 0 #cbd0bf; }
.small-print { color: var(--muted); font-size: 11px; line-height: 1.8; }
.supply-loop { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 34px 0 22px; padding: 21px 0; border-block: 1px solid var(--line); }
.supply-loop span { font-size: 10px; font-weight: 600; }
.supply-loop b { display: block; font-family: var(--display); font-size: 23px; color: #79896b; font-weight: 500; }
.supply-loop i { font-style: normal; color: #859274; }
.care-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 35px; }
.care-layout .lead { font-size: 15px; }
.care-layout p:not(.lead) { font-size: 13px; }
.care-prescriptions > div { border-bottom: 1px solid var(--line); padding: 0 0 18px 34px; margin-bottom: 19px; position: relative; }
.care-symbol { position: absolute; left: 0; top: -4px; color: var(--accent); font-size: 25px; font-family: var(--serif); }
.care-prescriptions h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.care-prescriptions strong { font-size: 11px; font-weight: 600; }
.care-prescriptions p { color: var(--muted); margin-top: 6px; margin-bottom: 0; }
.vitals-figure { margin-top: 28px; }
.vitals-figure img { width: 100%; border: 4px solid #253128; }
.vitals-figure figcaption { font-size: 7px; letter-spacing: 1px; }
.blueprint { background: #e5e8d9; padding-bottom: 16px; margin: 30px 0; border: 1px solid #c5cdb9; }
.blueprint figcaption { margin: 0 20px; }
.build-order { padding: 0; margin: 0; list-style: none; }
.build-order li { display: grid; grid-template-columns: 28px 1fr 85px; gap: 16px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.build-index { font-family: var(--display); font-size: 27px; line-height: 1; color: #7d8b6c; }
.build-order h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.build-order p { font-size: 12px; margin-bottom: 0; color: var(--muted); }
.build-price { text-align: right; font-size: 8px; letter-spacing: 1px; margin-top: 4px; color: var(--accent); font-weight: 600; }
.storage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 18px; }
.storage-grid > div { padding: 16px 0; border-block: 1px solid #a5b09a; }
.storage-grid span { font-size: 8px; letter-spacing: 1px; }
.storage-grid p { font-family: var(--display); font-size: 29px; line-height: 1.3; margin: 10px 0 3px; font-weight: 500; }
.storage-grid i { font-size: 19px; font-style: normal; color: #879773; }
.storage-grid small { font-size: 10px; color: var(--muted); }
.season-timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
.season { padding: 16px 13px 20px; border-top: 3px solid var(--season); background: var(--tint); position: relative; }
.spring { --season: #74845c; --tint: #e3e7d8; }
.summer { --season: #b4884f; --tint: #ede2cf; }
.autumn { --season: #a06946; --tint: #e8dbce; }
.winter { --season: #6a8790; --tint: #dde5e3; }
.season-glyph { display: block; font-size: 30px; line-height: 1; color: var(--season); margin-bottom: 25px; }
.season-days { font-size: 9px; letter-spacing: 1px; }
.season h3 { font-family: var(--display); font-size: 21px; font-weight: 500; margin: 7px 0 15px; }
.season p { font-size: 12px; margin-bottom: 17px; }
.season small { font-size: 10px; line-height: 1.6; display: block; color: #58624f; }
.season-timeline + .small-print { margin: 14px 0 30px; }
.winter-scene { position: relative; background: #18292a; color: var(--paper); overflow: hidden; }
.winter-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #152b30c9, #152b3020 70%); pointer-events: none; }
.winter-scene img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.winter-caption { position: absolute; z-index: 1; top: 12%; left: 6%; }
.winter-caption .eyebrow { color: #dbe3dc; font-size: 8px; }
.winter-caption > p { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.3; margin-top: 20px; text-shadow: 0 2px 10px #0003; }
.winter-caption em { color: #e3bd8e; }
.winter-scene figcaption { position: absolute; left: 6%; bottom: 20px; z-index: 1; color: #d2dacc; font-size: 7px; letter-spacing: 1.2px; }
.winter-math { display: flex; align-items: center; justify-content: space-around; padding: 28px 0; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.winter-math div { text-align: center; }
.winter-math strong { display: block; font-family: var(--display); font-size: 52px; font-weight: 500; line-height: 1.2; }
.winter-math span { font-size: 8px; letter-spacing: 1px; }
.winter-math > b { font-weight: 400; font-size: 24px; color: #8a957a; }
.expedition-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 34px 0 28px; }
.expedition-routes > div { border-top: 1px dashed #9eaa8e; padding-top: 24px; position: relative; }
.route-node { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #718261; background: var(--paper); position: absolute; top: -5px; left: 0; }
.expedition-routes .eyebrow { color: var(--accent); font-size: 7px; letter-spacing: 1px; }
.expedition-routes h3 { font-family: var(--serif); font-size: 17px; font-weight: 400; margin-top: 12px; }
.expedition-routes p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.roles { margin-bottom: 0; }
.roles > div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.roles dt { font-weight: 600; }
.roles dd { margin: 0; color: var(--muted); }
.memory-layout { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: start; }
.signal-art { color: #607152; width: 100%; margin-top: 15px; }
.memory-layout h2 { font-size: 35px; }
.memory-layout p { font-size: 13px; }
.fragment-example { background: #e6e8da; border-block: 1px solid #b9c4a9; padding: 25px; display: grid; grid-template-columns: 1fr 25px 1fr; align-items: center; gap: 24px; margin: 28px 0; }
.fragment-example div > span { font-size: 7px; letter-spacing: 1px; }
.fragment-example strong { display: block; font-family: var(--display); font-size: 60px; font-weight: 500; line-height: 1.3; }
.fragment-example strong small { font-family: var(--sans); font-size: 8px; letter-spacing: 1px; }
.fragment-example p { font-size: 11px; color: var(--muted); margin-bottom: 0; }
.example-divider { font-size: 30px; color: #82956c; }
.memory-upgrades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.memory-upgrades b { font-family: var(--display); font-size: 35px; font-weight: 500; color: #687b57; }
.memory-upgrades h3 { font-size: 10px; margin-bottom: 5px; }
.memory-upgrades p { font-size: 10px; color: var(--muted); margin-bottom: 0; }
.quick-reference { padding: 28px; background: #e6e5d7; border: 1px dashed #9da58d; }
.quick-reference > .eyebrow { font-size: 8px; }
.quick-reference h2 { font-size: 31px; }
.troubleshooting { margin-bottom: 22px; }
.troubleshooting > div { border-top: 1px solid #c6ccba; padding: 17px 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; }
.troubleshooting dt { font-size: 12px; font-weight: 600; }
.troubleshooting dd { font-size: 12px; color: var(--muted); margin: 0; }
.back-top { font-size: 11px; }
/* /society-fail/ — the same system in a documentary register. No photographic
   hero: the manual gets the art, the record gets the typography. */
.origin-masthead { background: var(--green); color: var(--paper); padding: 92px 5% 0; }
.origin-masthead > div { max-width: 1320px; margin: 0 auto; }
.origin-masthead .eyebrow { display: flex; align-items: center; gap: 12px; color: #c9c2ad; margin-bottom: 26px; }
.origin-masthead h1 { font-family: var(--display); font-size: clamp(56px, 7.4vw, 108px); font-weight: 700; line-height: .95; letter-spacing: -1px; margin: 0 0 26px; max-width: 15ch; }
.origin-masthead h1 em { font-style: normal; color: #d7b68c; }
.origin-masthead > div > p { font-size: 16px; line-height: 1.8; color: #dcdcd0; max-width: 620px; margin: 0 0 44px; }
.origin-meta { display: flex; flex-wrap: wrap; gap: 0 55px; border-top: 1px solid #5b6356; padding: 24px 0 30px; margin: 0; }
.origin-meta div { padding: 6px 0; }
.origin-meta dt { font-family: var(--sans); font-size: 8px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #97a08d; margin-bottom: 7px; }
.origin-meta dd { margin: 0; font-family: var(--display); font-size: 21px; letter-spacing: .4px; }
.origin-meta dd a { color: var(--paper); }
.origin-body { max-width: 900px; margin: 0 auto; padding: 72px 5% 90px; }
.origin-body .chapter:last-of-type { border-bottom: 0; margin-bottom: 0; }
.lineage-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin: 30px 0 0; }
.lineage-split section { padding: 24px 26px; background: #edeade; border-top: 2px solid var(--accent); }
.lineage-split h3 { font-family: var(--display); font-size: 23px; margin: 0 0 14px; }
.lineage-split ul { margin: 0; padding-left: 18px; }
.lineage-split li { font-size: 13px; line-height: 1.75; color: #59624f; margin-bottom: 9px; }
.lineage-split li strong { color: var(--ink); }
.lineage-split li:last-child { margin-bottom: 0; }

/* /gallery/ — plates two-up, with the last of an odd set running full width so
   no row ends in a gap. */
.plate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px 30px; margin-top: 6px; }
.plate-grid figure { min-width: 0; }
.plate-grid a { display: block; position: relative; background: #0e1216; border: 1px solid #c3c6b8; }
.plate-grid a::after { content: 'ENLARGE'; position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; background: #eceddd; color: #26312b; font-size: 8px; letter-spacing: 1.4px; opacity: 0; transition: opacity .18s; }
.plate-grid a:hover::after, .plate-grid a:focus-visible::after { opacity: 1; }
.plate-grid img { width: 100%; }
.plate-grid figcaption { font-size: 12px; line-height: 1.7; color: var(--muted); max-width: 46ch; }
.plate-wide { grid-column: 1 / -1; }

/* A manual page is portrait and meant to be read, so it takes a row of its own
   with the caption alongside instead of being squeezed into a landscape cell. */
.plate-sheet { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 46ch); justify-content: center; gap: 36px; align-items: center; padding: 30px; background: #edeade; border: 1px solid var(--line); }
.plate-sheet a { background: transparent; border: 0; }
.plate-sheet figcaption { padding-top: 0; font-family: var(--serif); font-size: 14px; line-height: 1.75; color: #515d50; }

@media (max-width: 720px) {
  .plate-sheet { grid-template-columns: 1fr; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .plate-grid a::after { transition: none; }
}

.closing { text-align: center; padding: 90px 5% 75px; color: var(--paper); background: radial-gradient(ellipse at 50% 110%, #64734f66, transparent 70%), #1c2b22; position: relative; overflow: hidden; }
.closing::before, .closing::after { content: ''; border: 1px solid #92a67b1f; border-radius: 50%; width: 680px; height: 680px; position: absolute; left: calc(50% - 340px); top: -30px; pointer-events: none; }
.closing::after { width: 780px; height: 780px; left: calc(50% - 390px); top: -80px; }
.closing .eyebrow { color: #c4cbb1; margin-bottom: 30px; font-size: 8px; }
.closing h2 { font-size: clamp(38px, 5vw, 65px); line-height: 1.25; margin-bottom: 30px; }
.closing em { color: #d4b488; }
.closing p { color: #bbc6b0; margin: 18px 0 0; font-size: 10px; }
.site-footer { padding: 35px 5%; display: flex; align-items: center; justify-content: space-between; gap: 35px; background: #152018; color: #ced2c2; }
.site-footer .wordmark { font-size: 25px; }
.site-footer p { font-size: 9px; line-height: 1.8; margin: 0; color: #a8b49b; }
.site-footer nav { display: flex; gap: 23px; font-size: 10px; }
.site-footer nav a { text-decoration: none; }
#image-viewer { max-width: min(1300px, 96vw); max-height: 95dvh; padding: 50px 18px 18px; border: 1px solid #718268; background: #18201c; color: var(--paper); }
#image-viewer::backdrop { background: #0a120fe8; }
#image-viewer img { max-height: 77dvh; width: auto; margin: auto; object-fit: contain; }
#image-viewer figcaption { color: #c1cab4; text-align: center; }
.viewer-close { position: absolute; top: 9px; right: 16px; padding: 4px 8px; border: 0; background: transparent; color: var(--paper); font-size: 12px; }
@media (min-width: 1600px) {
  .hero-content { max-width: 1400px; }
}
@media (max-width: 1050px) {
  .guide-layout { grid-template-columns: 165px minmax(0, 1fr); gap: 32px; padding-inline: 4%; }
  .manifest { gap: 25px; }
  .resource-copy { padding: 15px 12px; }
  .resource-copy > p:not(.yield) { min-height: 110px; }
  .care-layout { gap: 23px; }
  .season { padding-inline: 10px; }
  .season h3 { font-size: 19px; }
  .memory-layout { grid-template-columns: 110px 1fr; gap: 20px; }
  .chapter > .eyebrow > :last-child { display: none; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 24px; }
  .site-nav { height: 67px; padding-inline: 5%; gap: 15px; }
  .wordmark { font-size: 24px; gap: 8px; }
  .wordmark svg { width: 29px; }
  .wordmark span { display: none; }
  .site-nav nav { gap: 17px; font-size: 10px; }
  .site-nav nav > a:nth-child(2) { display: none; }
  .site-nav .nav-play { padding: 8px 11px; }
  .nav-play span { margin-left: 6px; }
  .origin-masthead { padding-top: 58px; }
  .origin-meta { gap: 0 32px; }
  .origin-body { padding-top: 48px; }
  .hero { min-height: 620px; height: 80svh; max-height: 820px; align-items: flex-end; }
  .hero-art { object-position: 65% center; }
  .hero-shade { background: linear-gradient(0deg, #142219f5 0%, #142219b3 45%, #1422190d 100%); }
  .hero-content { padding-bottom: 105px; }
  .hero h1 { font-size: clamp(66px, 12.3vw, 98px); }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .hero-deck { font-size: 14px; }
  .hero-secondary { margin-left: 18px; font-size: 10px; }
  .hero-footer { flex-direction: column; gap: 5px; font-size: 6px; }
  .hero-coordinate { font-size: 7px; }
  .manifest { grid-template-columns: 1fr 1.4fr; padding-block: 32px; gap: 26px; }
  .manifest > p { font-size: 21px; }
  .manifest > div { font-size: 11px; }
  .manifest-stamp { display: none; }
  .guide-layout { display: block; padding: 30px 6% 60px; }
  .guide-sidebar { position: static; border-bottom: 1px solid var(--line); padding-bottom: 25px; margin-bottom: 45px; }
  .guide-sidebar > .eyebrow { margin-bottom: 12px; }
  .chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 20px; }
  .chapter-nav a { padding-block: 6px; font-size: 11px; }
  .reference-link { padding: 10px 0 0; margin-top: 14px; border: 0; }
  .sidebar-note { display: none; }
  .chapter { padding-bottom: 44px; margin-bottom: 44px; }
  h2 { font-size: 36px; }
  .lead { font-size: 15px; }
  .resource-copy > p:not(.yield) { min-height: 85px; }
  .memory-layout { grid-template-columns: 130px 1fr; }
  .site-footer { flex-wrap: wrap; gap: 20px; }
  .site-footer p { flex: 1; min-width: 200px; }
}
@media (max-width: 500px) {
  body { font-size: 14px; }
  .site-nav nav > a:first-child { display: none; }
  .hero-content { padding-bottom: 100px; }
  .hero h1 { font-size: 16vw; line-height: .94; letter-spacing: -1px; }
  .hero .eyebrow { font-size: 7px; letter-spacing: 1.1px; }
  .hero .button { padding: 11px 18px; gap: 30px; }
  .hero-secondary { display: block; width: fit-content; margin: 18px 0 0; }
  .manifest { grid-template-columns: 1fr; gap: 18px; padding-inline: 6%; }
  .manifest > p { font-size: 24px; }
  .manifest > div { font-size: 12px; }
  .chapter-nav { gap: 2px 14px; }
  .chapter-nav a { font-size: 10px; gap: 9px; }
  h2 { font-size: 31px; letter-spacing: -1px; }
  .chapter > .eyebrow { font-size: 8px; margin-bottom: 22px; }
  .figure-bar { padding: 10px; font-size: 6px; letter-spacing: .8px; }
  .screen-pin { width: 20px; height: 20px; font-size: 10px; box-shadow: 0 0 0 3px #c69b6740; }
  .zoom-link { font-size: 8px; right: 8px; bottom: 8px; padding: 5px 8px; }
  .screen-notes { grid-template-columns: 1fr; gap: 16px; }
  .screen-notes > div { padding-top: 12px; }
  .screen-notes p { padding-left: 18px; }
  .clock-strip { grid-template-columns: 60px 1fr; gap: 20px 10px; }
  .clock-strip p:last-child { grid-column: 1 / -1; }
  .plan-heading { padding: 14px; }
  .plan-heading .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .opening-plan label { padding: 16px 14px; gap: 10px; grid-template-columns: 17px 20px 1fr; }
  .opening-plan b { font-size: 12px; }
  .opening-plan small { font-size: 11px; }
  .plan-footer { padding: 12px 14px; font-size: 8px; }
  .field-note { padding-left: 17px; }
  .danger { padding: 18px; }
  .field-note p { font-size: 12px; }
  .resource-grid { grid-template-columns: 1fr; gap: 13px; }
  .resource-card { display: grid; grid-template-columns: 38% 1fr; }
  .resource-art { display: flex; align-items: center; padding: 10px 0; }
  .resource-copy { padding: 17px; }
  .resource-copy h3 { font-size: 20px; margin-bottom: 8px; }
  .resource-copy > p:not(.yield) { min-height: 0; font-size: 11px; margin-bottom: 15px; }
  .yield { font-size: 27px; margin-bottom: 10px; }
  .care-layout { grid-template-columns: 1fr; gap: 25px; }
  .care-prescriptions { display: grid; grid-template-columns: 1fr; }
  .vitals-figure { max-width: 410px; }
  .build-order li { grid-template-columns: 22px 1fr; gap: 12px; }
  .build-price { grid-column: 2; grid-row: auto; text-align: left; margin: -5px 0 0; }
  .build-price br { display: none; }
  .storage-grid { gap: 12px; }
  .storage-grid span { font-size: 6px; letter-spacing: .3px; }
  .storage-grid p { font-size: 23px; }
  .storage-grid i { font-size: 12px; }
  .storage-grid small { font-size: 8px; }
  .season-timeline { grid-template-columns: 1fr 1fr; gap: 2px; }
  .season { padding: 20px 16px; }
  .season h3 { font-size: 22px; }
  .season-glyph { margin-bottom: 16px; }
  .winter-scene img { aspect-ratio: .93; object-position: 60% center; }
  .winter-caption { top: 9%; }
  .winter-caption > p { font-size: 28px; }
  .winter-scene figcaption { font-size: 6px; letter-spacing: .8px; }
  .winter-math strong { font-size: 41px; }
  .winter-math span { font-size: 6px; letter-spacing: .6px; }
  .expedition-routes { grid-template-columns: 1fr; gap: 27px; margin-left: 6px; border-left: 1px dashed #9eaa8e; }
  .expedition-routes > div { border-top: 0; padding: 0 0 0 20px; }
  .route-node { top: 6px; left: -5px; }
  .expedition-routes h3 { margin-top: 7px; }
  .roles > div { grid-template-columns: 84px 1fr; gap: 12px; font-size: 11px; }
  .memory-layout { grid-template-columns: 1fr; }
  .signal-art { width: 145px; margin: -10px auto 15px; }
  .memory-layout h2 { font-size: 31px; }
  .fragment-example { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .example-divider { display: none; }
  .memory-upgrades { grid-template-columns: 1fr 1fr; gap: 25px 16px; }
  .quick-reference { padding: 23px 18px; }
  .quick-reference > .eyebrow > :last-child { display: none; }
  .quick-reference h2 { font-size: 29px; }
  .troubleshooting > div { grid-template-columns: 1fr; gap: 6px; }
  .closing { padding-block: 65px; }
  .closing h2 { font-size: 36px; }
  .closing .eyebrow { font-size: 6px; letter-spacing: 1.3px; }
  .site-footer { padding-inline: 6%; }
  .site-footer p { font-size: 8px; }
  th, td { padding: 11px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  body { background: white; color: #111; font-size: 11pt; }
  .site-nav, .guide-sidebar, .reading-progress, .hero-secondary, .button, .inline-play, .sidebar-play, .screen-pin, .zoom-link, .closing, .site-footer, .plan-footer, dialog, .back-top { display: none !important; }
  .hero { min-height: 0; height: auto; padding: 35px; print-color-adjust: exact; }
  .hero h1 { font-size: 58px; }
  .hero-content { padding: 0; }
  .hero-footer, .hero-coordinate { display: none; }
  .manifest { padding: 25px 0; }
  .guide-layout { display: block; padding: 30px 0; }
  .chapter { padding-bottom: 25px; margin-bottom: 25px; }
  h2, h3 { break-after: avoid; }
  figure, tr, .resource-card, .opening-plan label { break-inside: avoid; }
  .winter-scene, .season-timeline, .resource-art, .figure-bar { print-color-adjust: exact; }
}
