/* Story pages (stories/…, made by tools/seo/build.mjs). Same look as the map and accessibility.html. */
:root { --bg: #0a0d11; --panel: #131920; --line: rgba(255, 255, 255, .12); --gold: #d4af5f; --gold-hi: #f1d48a; --text: #f1ebdd; --muted: #b3ab99; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff3d0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: 10px; z-index: 5; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1a1408; font-weight: 700; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

header { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #121821, #0d1218); }
.bar { max-width: 980px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; }
.brand { font: 700 19px/1 'Cinzel', Georgia, serif; letter-spacing: .04em; color: var(--text); text-decoration: none; }
.brand span { color: var(--gold); }
.bar nav { display: flex; gap: 20px; }
.bar nav a { padding: 4px 0; font-weight: 600; font-size: 14px; text-decoration: none; }

main { max-width: 980px; margin: 0 auto; padding: 28px 20px 48px; }
article { max-width: 760px; margin: 0 auto; }
.crumbs { max-width: 760px; margin: 0 auto 14px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); text-decoration: underline; }
h1 { font: 700 clamp(27px, 5.4vw, 40px)/1.2 'Cinzel', Georgia, serif; letter-spacing: .02em; margin: 0 0 8px; text-wrap: balance; }
h2 { font: 700 21px/1.3 'Cinzel', Georgia, serif; letter-spacing: .03em; color: var(--gold-hi); margin: 44px 0 14px; }
h3 { font: 600 17px/1.3 'Cinzel', Georgia, serif; margin: 26px 0 8px; }
.meta { margin: 0 0 20px; color: var(--muted); font-weight: 600; font-size: 14.5px; letter-spacing: .02em; }
.lead { max-width: 62ch; color: #ded7c7; margin: 0 0 18px; }

.hero { display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(212, 175, 95, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.hero img { display: block; width: 100%; height: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.btn { display: inline-block; padding: 11px 20px; border: 1px solid var(--gold); border-radius: 999px; background: linear-gradient(180deg, #e7c677, #c69c45); color: #1a1408; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.btn:hover { color: #1a1408; filter: brightness(1.08); }
.btn-quiet, .btn-quiet:hover { background: none; color: var(--gold-hi); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 0; }
.share-label { margin-right: 4px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.chip { min-height: 36px; padding: 4px 15px; border: 1px solid rgba(212, 175, 95, .45); border-radius: 999px; background: none; color: var(--gold-hi); font: 600 14.5px/1.6 'Inter', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--gold-hi); color: #fff3d0; }
#share-status { font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }

.scene { margin: 0 0 24px; }
.scene p { margin: 0 0 10px; }
blockquote { margin: 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--gold); }
blockquote p, .scene blockquote p { margin: 0 0 4px; font: italic 18.5px/1.6 Georgia, 'Times New Roman', serif; color: var(--gold-hi); }
cite { font-style: normal; font-size: 13.5px; color: var(--muted); }
dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
dt, dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: 14.5px; padding-right: 14px; }
.note { color: var(--muted); font-size: 14.5px; }
.talk { margin: 0; padding-left: 22px; }
.talk li { margin: 0 0 8px; }
.talk li::marker { color: var(--gold); }
.kjv { font: 18px/1.8 Georgia, 'Times New Roman', serif; color: #e6dfcf; margin: 0; }
.kjv sup { margin: 0 4px 0 2px; font: 600 11px/1 'Inter', sans-serif; color: var(--gold); vertical-align: 5px; }
.chapters, .jump { display: flex; flex-wrap: wrap; gap: 8px; }
.chapters a, .jump a { padding: 5px 13px; border: 1px solid rgba(212, 175, 95, .45); border-radius: 999px; font-size: 14.5px; text-decoration: none; }
.chapters a:hover, .jump a:hover { border-color: var(--gold-hi); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 48px auto 0; }
.pager a { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font: 600 16px/1.35 'Cinzel', Georgia, serif; color: var(--text); text-decoration: none; }
.pager a:hover { border-color: var(--gold); }
.pager a span { display: block; margin-bottom: 4px; font: 600 12.5px/1.4 'Inter', sans-serif; color: var(--muted); }
.pager [rel=next] { text-align: right; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--gold); color: var(--text); }
.card img { display: block; width: 100%; height: auto; }
.card-text { display: block; padding: 11px 15px 13px; }
.card-text strong { display: block; font: 600 16px/1.35 'Cinzel', Georgia, serif; }
.card-text span { font-size: 13.5px; color: var(--muted); }
section h2 { padding-left: 12px; border-left: 4px solid var(--era, var(--gold)); }

footer { border-top: 1px solid var(--line); padding: 22px 20px 34px; text-align: center; font-size: 14px; color: var(--muted); }
footer p { margin: 6px 0; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  dl { grid-template-columns: 1fr; }
  dt { border: 0; padding-bottom: 0; }
  dd { padding-top: 2px; }
  .pager { grid-template-columns: 1fr; }
}
