@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #f4f1e7;
  --ink: #243029;
  --muted: #515e52;
  --pine: #2b3c33;
  --line: #c6c8b7;
  --orange: #e8a35f;
  --blue: #335e49;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; color:var(--ink); background:var(--paper); font:16px/1.55 "Segoe UI",Arial,sans-serif }
a { color:var(--blue); text-underline-offset:3px }
a:hover { text-decoration-thickness:2px }
:focus-visible { outline:3px solid #af561f; outline-offset:4px }
.wrap { width:min(1140px,calc(100% - 80px)); margin-inline:auto }
.sr,.skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.skip:focus { position:absolute; top:8px; left:15px; padding:.5em; background:white; z-index:2 }
.mast { color:#f6f0dc; background:#212d27; border-bottom:3px solid #ba8758 }
.mast-inner,.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:1.5rem }
.mast-inner { min-height:63px }
.mast a { color:inherit; text-decoration:none }
.mast nav { display:flex; align-items:center; gap:30px; font-size:.89rem }
.mast nav a:hover { text-decoration:underline }
.brand { display:inline-flex; align-items:center; font:700 1.55rem/1 var(--display); gap:4px; white-space:nowrap }
.brand-wiki { color:#edb57d }
.shutter { width:26px; height:24px; margin-right:6px; border:2px solid #f1bb81; border-top-width:4px; background:repeating-linear-gradient(to bottom,transparent 0 3px,#f1bb81 3px 5px); clip-path:polygon(0 0,100% 0,100% 88%,84% 88%,84% 100%,70% 100%,70% 88%,0 88%) }
.hero { margin:34px 0 35px; background:var(--pine); color:#f9f5df; display:grid; grid-template-columns:.96fr 1.04fr; border:1px solid #26362d }
.hero-copy { padding:clamp(26px,3.6vw,50px); display:flex; align-items:flex-start; justify-content:center; flex-direction:column }
.kicker,.label { font:700 .75rem/1.5 var(--mono); text-transform:uppercase; letter-spacing:.075em }
.kicker { display:flex; align-items:center; gap:10px; margin:0 }
.kicker i { width:15px; height:6px; background:repeating-linear-gradient(120deg,currentColor 0 2px,transparent 2px 4px) }
.hero .kicker { color:#efc28d }
h1,h2,h3,p { margin:0 }
h1,h2,h3 { font-family:var(--display); font-weight:700; line-height:1.03 }
.hero h1 { font-size:clamp(3.9rem,5.2vw,5.1rem); line-height:.96; margin:14px 0 15px }
.hero h1 em { color:#f1b271; font-style:normal }
.hero p { max-width:40ch; color:#dee4d8; line-height:1.55 }
.primary { margin-top:23px; display:inline-flex; gap:22px; align-items:center; background:#efb679; color:#243029; padding:9px 15px; font-size:.94rem; font-weight:700; text-decoration:none }
.primary:hover { background:#ffce93 }
.hero-art { width:100%; height:100%; min-height:0; object-fit:cover; image-rendering:pixelated; border-left:1px solid #212d27 }
.guide-list { scroll-margin-top:1.2rem }
.section-head h2 { font-size:2.55rem }
form[data-search] { display:flex; align-items:center; gap:13px; margin:18px 0; padding:0 15px; background:#fcfaf3; border:1px solid #a6afa0; max-width:100% }
.glass { display:inline-block; width:15px; height:15px; border:2px solid #667464; border-radius:50%; position:relative; flex-shrink:0 }
.glass:after { content:""; position:absolute; background:#667464; width:7px; height:2px; transform:rotate(45deg); right:-5px; bottom:-2px }
form:focus-within { outline:2px solid var(--blue) }
input[type=search] { width:100%; min-width:0; border:0; background:transparent; font:inherit; padding:10px 0; color:var(--ink) }
input[type=search]:focus { outline:0 }
input::placeholder { color:#5d685e }
.matches:not(:empty) { margin:-10px 0 18px; padding:12px 18px; border:1px solid var(--line); background:#fbf9f1 }
.matches ul { margin:0; padding-left:1em }
.matches li+li { margin-top:6px }
.card-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:16px 0 }
.card { border:1px solid #b7bfac; display:grid; grid-template-columns:34% 1fr; color:inherit; text-decoration:none; background:#faf8ef }
.card:hover { border-color:var(--blue); box-shadow:inset 0 -3px var(--blue) }
.card-art { width:100%; height:100%; min-height:0; object-fit:cover; image-rendering:pixelated }
.card-copy { padding:19px 19px 16px }
.label { color:#53684f; font-size:.7rem }
.card h3 { font-size:2rem; margin:5px 0 7px }
.card p { color:var(--muted); font-size:.92rem; line-height:1.45 }
.open-guide { display:inline-block; margin-top:12px; font-size:.88rem; font-weight:700; color:var(--blue) }
.shortcut { display:flex; align-items:center; gap:14px; margin:22px 0 40px; padding:16px 0; border-block:1px solid var(--line); font-size:.92rem }
.shortcut strong { margin-right:14px }
.note-symbol { display:grid; place-items:center; width:27px; height:30px; font:bold 1.4rem/1 var(--mono); border:1px solid #9caa91; background:#e3e7d8; color:var(--blue) }
footer { border-top:1px solid var(--line); padding:20px 0 26px; color:var(--muted); font-size:.82rem }
.footer-inner a { color:inherit }
.crumb { margin-top:22px; display:flex; gap:10px; align-items:center; font-size:.83rem; color:var(--muted) }
.article-head { display:grid; grid-template-columns:minmax(0,1fr) 175px; align-items:center; gap:25px; padding:27px 0 30px; border-bottom:3px solid var(--pine) }
.article-head .kicker { color:#4d624c }
.article-head h1 { font-size:clamp(2.8rem,4.6vw,4.4rem); margin:8px 0 14px }
.lead { color:var(--muted); max-width:65ch; font-size:1.08rem }
.article-art { width:100%; height:auto; image-rendering:pixelated; border:1px solid var(--line) }
.reader { display:grid; grid-template-columns:minmax(180px,23%) minmax(0,1fr); gap:clamp(26px,4.7vw,72px); align-items:start; margin:26px 0 36px }
.contents { position:sticky; top:18px; padding:15px 17px; background:#e9ecdf; border-top:3px solid #647959 }
.contents h2 { font-size:1.5rem }
.contents ol { list-style:none; padding:0; margin:8px 0 0 }
.contents li+li { border-top:1px solid #c6cfbc }
.contents a { display:block; padding:8px 0; color:var(--ink); font-size:.91rem; line-height:1.4 }
.reader article { max-width:780px; width:100% }
.chapter { margin-bottom:28px; padding:0 0 22px; border-bottom:1px solid var(--line); scroll-margin-top:14px }
.chapter:target h2 { text-decoration:underline; text-decoration-color:#b4814f; text-underline-offset:5px }
.chapter h2 { font-size:clamp(1.9rem,3.1vw,2.55rem); margin:4px 0 14px }
blockquote { background:#e9ecdf; border-left:3px solid #627757; margin:0 0 16px; padding:9px 15px }
blockquote p { font:1rem/1.45 var(--mono); margin-top:3px }
.steps { margin:0; padding-left:1.55em }
.steps li+li { margin-top:16px }
.steps li::marker { color:var(--blue); font:700 1rem var(--mono) }
.steps li { padding-left:3px }
.feedback { margin:6px 0 0; color:#354d3c }
.feedback b { display:block; font-size:.86rem }
.field-note { color:var(--muted); margin:14px 0 0; font-size:.94rem }
.refs { display:flex; flex-wrap:wrap; gap:4px 16px; padding:0; margin:14px 0 0; list-style:none; font-size:.77rem; color:var(--muted) }
.fold summary,.bibliography summary { cursor:pointer; padding:11px 14px; background:#e8eadd; font-weight:600; color:var(--blue) }
.fold details[open] summary,.bibliography[open] summary { margin-bottom:13px }
.bibliography { font-size:.93rem }
.next-guide { display:flex; gap:12px; padding-top:18px; font-size:.95rem }
.missing { padding-block:clamp(40px,7vw,95px) }
.missing h1 { font-size:clamp(3.6rem,6vw,5rem); margin:8px 0 16px }
.missing ul { padding-left:18px; margin-top:22px }
@media(max-width:810px) {
  .wrap { width:calc(100% - 38px) }
  .hero-copy { padding:24px }
  .hero h1 { font-size:3.4rem }
  .card { grid-template-columns:29% 1fr }
  .card-copy { padding:14px }
}
@media(max-width:660px) {
  .wrap { width:calc(100% - 28px) }
  .mast-inner { min-height:52px; gap:8px }
  .brand { font-size:1.33rem }
  .mast nav { gap:14px; font-size:.83rem }
  .mast .official { display:none }
  .hero { grid-template-columns:1fr; margin:18px 0 25px }
  .hero-copy { padding:24px 20px }
  .hero h1 { font-size:3.2rem; margin:9px 0 }
  .hero-art { max-height:180px; aspect-ratio:2.35; object-position:center 58%; border-left:0; border-top:1px solid #212d27 }
  .primary { margin-top:16px }
  .section-head h2 { font-size:2.1rem }
  .card-grid { grid-template-columns:1fr; gap:12px }
  .card { grid-template-columns:32% 1fr }
  .card h3 { font-size:1.75rem }
  .shortcut strong,.shortcut a { display:block }
  .footer-inner { flex-wrap:wrap; gap:4px 15px }
  .article-head { grid-template-columns:1fr; padding:20px 0 }
  .article-art { display:none }
  .reader { grid-template-columns:1fr; gap:22px; margin-top:16px }
  .contents { position:static }
  .contents ol { columns:2; column-gap:16px }
  .contents li { break-inside:avoid }
  .contents li+li { border-top:0 }
  .crumb { margin-top:15px }
}
@media(max-width:375px) { .contents ol { columns:1 } .card { grid-template-columns:26% 1fr } }
