/* 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; }

.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; }

.hero { margin: 0; background: #ccd6e3; }
.hero img { display: block; width: 100%; max-height: 340px; object-fit: cover; image-rendering: pixelated; }

.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; }
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); }
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); }

.sources { list-style: none; padding: 0; margin: 0; 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); }
.sources li:last-child { border-bottom: 0; }
.sources .what { display: block; color: var(--muted); font-size: 0.86rem; }

.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; }
}
