/* Seattle Past — shared design system
   Archival gazetteer: cream paper, ink, brick red, gold.
   Playfair Display headings, Source Serif body, IBM Plex Mono ledger labels. */

:root {
  --paper: #f6f0e2;
  --paper-deep: #ece0c2;
  --paper-card: #fbf7ec;
  --ink: #23201b;
  --ink-soft: #5a5142;
  --brick: #9c3d2e;
  --gold: #b98a2f;
  --rule: #23201b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(255,252,240,.5), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(0deg, rgba(35,32,27,.025) 0 1px, transparent 1px 5px);
}

a { color: var(--brick); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- masthead ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 3px double var(--ink);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  position: relative;
  z-index: 30;
}
.wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 27px;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .amp { color: var(--brick); }
.masthead nav {
  display: flex;
  gap: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.masthead nav a { color: var(--ink-soft); }
.masthead nav a:hover { color: var(--brick); text-decoration: none; }
.masthead .spacer { flex: 1; }

/* ---------- ledger labels & rules ---------- */
.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 600;
}
.ledger-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rule { display: flex; align-items: center; gap: 14px; margin: 18px auto; }
.rule::before, .rule::after { content: ""; flex: 1; border-top: 1px solid var(--ink); }
.rule span { font-size: 14px; color: var(--ink-soft); }
hr.double { border: none; border-top: 3px double var(--ink); margin: 22px 0; }

/* ---------- sheet (centered page card) ---------- */
.sheet {
  background: var(--paper);
  max-width: 880px;
  margin: 34px auto 60px;
  padding: 46px 52px 40px;
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -9px;
  box-shadow: 0 18px 44px rgba(35,32,27,.28);
}
.sheet h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.02;
  margin: 10px 0 8px;
}
.sheet h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 25px;
  margin: 30px 0 10px;
}
.sheet p { font-size: 17.5px; line-height: 1.68; margin: 12px 0; }
.sheet .lede { font-size: 19.5px; }

footer.colophon {
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 16px 44px;
}
footer.colophon .dot { color: var(--brick); }

/* ---------- provenance / status lines ---------- */
.provenance {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.status-note { color: var(--brick); font-style: italic; }

/* ---------- sources & verification block ---------- */
.record-block {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 4px;
  margin: 26px 0;
  font-size: 15.5px;
}
.record-block dl { display: grid; grid-template-columns: 150px 1fr; row-gap: 7px; }
.record-block dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}
.record-block dd { line-height: 1.5; }

/* ---------- note box ---------- */
.note-box {
  border: 1px solid var(--gold);
  background: rgba(185,138,47,.08);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.6;
}
.note-box .ledger-label { color: var(--brick); display: block; margin-bottom: 4px; }

/* ---------- THEN / NOW slider ---------- */
.then-now { margin: 22px 0 6px; }
.tn-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  --split: 50%;
}
.tn-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tn-stage img.tn-now { clip-path: inset(0 0 0 var(--split)); }
.tn-stage .tn-tag {
  position: absolute; top: 10px; z-index: 3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); padding: 3px 8px;
}
.tn-stage .tn-tag.then { left: 10px; }
.tn-stage .tn-tag.now { right: 10px; }
.tn-stage .tn-divider {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  left: var(--split); width: 2px; margin-left: -1px;
  background: var(--paper); box-shadow: 0 0 0 1px rgba(35,32,27,.5);
}
.tn-range { width: 100%; margin-top: 10px; accent-color: var(--brick); }
figure.photo-single { margin: 22px 0 6px; }
figure.photo-single img {
  width: 100%; display: block;
  border: 1px solid var(--ink); background: var(--paper-deep);
}
figcaption {
  font-size: 14.5px; font-style: italic; color: var(--ink-soft);
  margin-top: 8px; line-height: 1.5;
}

/* ---------- prev / next ---------- */
.prev-next {
  display: flex; justify-content: space-between; gap: 18px;
  border-top: 3px double var(--ink); margin-top: 34px; padding-top: 16px;
}
.prev-next a { max-width: 46%; font-size: 16px; line-height: 1.4; }
.prev-next .nx { text-align: right; margin-left: auto; }
.prev-next .ledger-label { display: block; margin-bottom: 3px; }

/* ---------- reading list (Beyond Seattle / Cold Cases) ---------- */
.reading-list { list-style: none; counter-reset: entry; }
.reading-list li {
  counter-increment: entry;
  display: flex; gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(35,32,27,.35);
}
.reading-list li::before {
  content: counter(entry, decimal-leading-zero);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700; font-size: 22px; color: var(--gold);
  min-width: 44px; padding-top: 2px;
}
.reading-list .thumb {
  width: 118px; height: 88px; object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--ink); background: var(--paper-deep);
}
.reading-list h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700; font-size: 21px; line-height: 1.2; margin-bottom: 4px;
}
.reading-list h3 a { color: var(--ink); }
.reading-list h3 a:hover { color: var(--brick); text-decoration: none; }
.reading-list p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 5px 0 0; }
@media (max-width: 640px) {
  .reading-list .thumb { display: none; }
  .sheet { padding: 32px 22px 30px; margin: 18px 10px 40px; }
  .record-block dl { grid-template-columns: 1fr; row-gap: 2px; }
  .record-block dd { margin-bottom: 8px; }
}
