/* Standalone reading pages share the map's palette and system typography. */
:root { color-scheme: light dark; --paper: #fff; --ink: #171717; --muted: #626262; --rule: #e5e5e5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; line-height: 1.8; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #9fb01c; outline-offset: 5px; }
.masthead, main, footer { width: min(100% - 40px, 880px); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; }
.brand span { font-size: 13px; font-weight: 400; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
nav [aria-current] { font-weight: 700; text-decoration: none; }
main { padding-block: 52px 32px; }
h1 { max-width: 20em; margin: 0 0 24px; font-size: clamp(30px, 5vw, 48px); font-weight: 750; line-height: 1.3; letter-spacing: -.035em; text-wrap: balance; }
.intro { max-width: 42em; font-size: 18px; margin: 0 0 28px; }
.map-link { display: inline-block; padding: 10px 22px; border-radius: 8px; background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none; }
.map-link:hover { text-decoration: underline; }
figure { margin: 40px 0 48px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 10px; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.reading { max-width: 43em; }
section { margin-bottom: 36px; }
h2 { font-size: 23px; line-height: 1.45; margin: 0 0 14px; text-wrap: balance; }
p { margin: 0 0 16px; }
footer { border-top: 1px solid var(--rule); padding-block: 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }
footer span { color: var(--muted); }
@media (max-width: 520px) { .brand span { display: none; } .masthead { gap: 12px; } nav { gap: 12px; } main { padding-top: 36px; } }
@media (prefers-color-scheme: dark) { :root { --paper: #0a0a0a; --ink: #fafafa; --muted: #a3a3a3; --rule: #262626; } }
