/* Knipp Family Story — shared styles. Plain CSS, no external dependencies. */
:root {
  --paper: #f6f1e7;
  --paper-deep: #ece4d3;
  --ink: #2b2620;
  --ink-soft: #5c544a;
  --rule: #cfc3ad;
  --bronze: #8a5a2b;
  --bronze-deep: #6b4420;
  --navy: #22344d;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1a17;
    --paper-deep: #26231f;
    --ink: #ece5d8;
    --ink-soft: #b6ac9c;
    --rule: #4a443b;
    --bronze: #d2a066;
    --bronze-deep: #e3b981;
    --navy: #9fb6d6;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
}
a { color: var(--bronze-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--bronze); }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 1rem;
}
.site-header .inner {
  max-width: 64rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: baseline; justify-content: space-between;
}
.brand {
  font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.site-header nav a {
  font-size: 0.95rem; margin-left: 1.1rem; text-decoration: none; color: var(--ink-soft);
}
.site-header nav a:first-child { margin-left: 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--bronze-deep); }

main { padding: 0 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; }
.wide { max-width: 64rem; margin: 0 auto; }

.hero { text-align: center; padding: 3rem 0 2rem; }
.eyebrow {
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bronze); margin: 0 0 0.6rem;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; margin: 0 0 0.6rem;
  font-weight: 600; letter-spacing: 0.01em;
}
h2 {
  font-size: 1.7rem; line-height: 1.2; margin: 3rem 0 1rem; font-weight: 600;
}
h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; font-weight: 600; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 38rem; margin: 0 auto; }

figure { margin: 2rem 0; }
figure img { border: 6px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
@media (prefers-color-scheme: dark) { figure img { border-color: #3a352e; } }
figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.6rem; font-style: italic; }
.portrait { max-width: 30rem; margin-left: auto; margin-right: auto; }

.chapters {
  display: grid; gap: 1.25rem; margin: 1.5rem 0 3rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.chapter {
  background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.25rem 1.25rem 1.1rem; display: flex; flex-direction: column;
}
.chapter .num { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); }
.chapter h3 { margin: 0.35rem 0 0.4rem; font-size: 1.3rem; }
.chapter p { margin: 0 0 0.9rem; font-size: 1rem; color: var(--ink-soft); flex: 1; }
.chapter .go { font-size: 0.98rem; font-weight: 600; }
.chapter .soon { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }

blockquote {
  margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.2rem;
  border-left: 3px solid var(--bronze); color: var(--ink-soft); font-style: italic;
}

.timeline { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.55rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--bronze);
}
.timeline .when { display: block; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bronze); }
.timeline .what { display: block; }

.note {
  background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1rem 1.2rem; font-size: 1rem; color: var(--ink-soft); margin: 2rem 0;
}
.sources { font-size: 0.95rem; color: var(--ink-soft); }
.sources li { margin-bottom: 0.4rem; }

.site-footer {
  border-top: 1px solid var(--rule); margin-top: 4rem; padding: 1.5rem 1rem 2.5rem;
  text-align: center; font-size: 0.95rem; color: var(--ink-soft);
}
.site-footer p { margin: 0.3rem 0; }

.timeline .star .when { font-weight: 600; }
.timeline .star::before { background: var(--bronze); }
.timeline .missed .what { color: var(--ink-soft); }
.timeline .missed::before { background: var(--paper); border-style: dashed; }
.timeline .aboard {
  display: inline-block; margin-top: 0.3rem; font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); border: 1px dashed var(--rule);
  border-radius: 4px; padding: 0.05rem 0.45rem;
}

/* Evasion route map */
.route-map { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 6px; }
.route-map .m-land { fill: #efe7d6; }
.route-map .m-sea { fill: #d6e2ea; }
.route-map .m-coast { fill: none; stroke: #8fa6b6; stroke-width: 1.2; }
.route-map .m-region { fill: #9c8f7a; font: 600 15px Georgia, serif; letter-spacing: 0.2em; }
.route-map .m-route { fill: none; stroke: #8a5a2b; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 9 6; }
.route-map .m-stop { fill: #fffaf0; stroke: #8a5a2b; stroke-width: 2.5; }
.route-map .m-crash { fill: #b3402f; stroke: #fffaf0; stroke-width: 2; }
.route-map .m-end { fill: #22344d; stroke: #fffaf0; stroke-width: 2; }
.route-map .m-city { fill: #6f675c; }
.route-map .m-target { fill: none; stroke: #b3402f; stroke-width: 2; }
.route-map .m-label { fill: #2b2620; font: 15px Georgia, serif; paint-order: stroke; stroke: #efe7d6; stroke-width: 4px; stroke-linejoin: round; }
.route-map .m-muted { fill: #6f675c; font-style: italic; }
.route-map .m-scale { stroke: #2b2620; stroke-width: 2; }
.map-legend { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.6rem; }
.crew { columns: 2 16rem; padding-left: 1.1rem; font-size: 1rem; }
.crew li { break-inside: avoid; margin-bottom: 0.25rem; }
.transcript { background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.25rem; font-family: "Courier New", Courier, monospace; font-size: 0.92rem; line-height: 1.55; white-space: pre-wrap; }
.doc-pair { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.doc-pair figure { margin: 1rem 0; }
