/* About page (about.html). Separate from viewer.css on purpose: the map page
   locks scrolling (html, body { overflow: hidden }) so OpenSeadragon owns the
   wheel and drag; this page is a normal scrolling document. */
:root {
  --bg: #eef1f5;
  --card: #ffffff;
  --fg: #1d1d1b;
  --muted: #5b5850;
  --line: #d9dde3;
  --accent: #0b5cad;
  --badge-bg: #fff4d6;
  --badge-fg: #6b4a00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a;
    --card: #1f2125;
    --fg: #ecebe7;
    --muted: #b3afa7;
    --line: #34373c;
    --accent: #7db7f0;
    --badge-bg: #3d3216;
    --badge-fg: #f5d98a;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a;
  --card: #1f2125;
  --fg: #ecebe7;
  --muted: #b3afa7;
  --line: #34373c;
  --accent: #7db7f0;
  --badge-bg: #3d3216;
  --badge-fg: #f5d98a;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--fg); background: var(--bg);
  font: 17px/1.6 Georgia, "Iowan Old Style", "Times New Roman", serif; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font: 0.88em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.topbar { position: sticky; top: 0; z-index: 2; background: var(--card); border-bottom: 1px solid var(--line);
  font: 600 0.9rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; }
.topbar .inner { max-width: 720px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.topbar a { text-decoration: none; }
.topbar .name { margin-left: auto; color: var(--muted); font-weight: 500; }

.page { max-width: 720px; margin: 0 auto; padding: 8px 16px 64px; }
.page > header { padding: 24px 0 8px; }
.kicker { display: inline-block; font: 700 0.72rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em; background: var(--badge-bg); color: var(--badge-fg);
  border-radius: 4px; padding: 4px 7px; }
.kicker[hidden] { display: none; }
h1 { font: 700 2.1rem/1.15 system-ui, -apple-system, "Segoe UI", sans-serif; margin: 12px 0 0; letter-spacing: -0.01em; }
h2 { font: 700 1.25rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; margin: 40px 0 10px;
  padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 56px; }
h3 { font: 700 0.8rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 1.08rem; }
ul, ol { padding-left: 1.3em; margin: 0 0 14px; }
li { margin: 0 0 8px; }
li::marker { color: var(--muted); }

/* What this copy of the map is (about.js fills it from map.json) */
.note { margin: 22px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font: 0.95rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.note h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); }
.note p { margin: 0; overflow-wrap: anywhere; }
.note p + p { margin-top: 6px; color: var(--muted); font-size: 0.86rem; }
.note p[hidden] { display: none; }

.sources { list-style: none; padding: 0; margin: 0 0 14px; font: 0.95rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.sources li { padding: 9px 0; margin: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sources li:last-child { border-bottom: 0; }
.sources .what { display: block; color: var(--muted); font-size: 0.86rem; }
.sources details.what summary { cursor: pointer; width: fit-content; }
.sources details.what summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sources details.what p { margin: 4px 0 0; }
.sources:empty { display: none; }

.fine { color: var(--muted); font: 0.85rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; margin-top: 40px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .topbar .name { display: none; }
}
