/* Summary pages. Fonts and :root tokens copied verbatim from public/index.html, which took
   them from rainer-deutschmann-home @ 25158b7. Never retype them: build-summaries.py
   compares both files and refuses to build if they diverge.
   Two weights only, Instrument Serif 400 and Newsreader 500: no bold, no italic anywhere. */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/newsreader-500.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #faf7f1;
  --ink: #211e19;
  --gold: #8f6c34;
  --muted: #767166;
  --hair: rgba(33, 30, 25, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1917;
    --ink: #ece7dd;
    --gold: #ac823e;
    --muted: #a49d8f;
    --hair: rgba(236, 231, 221, .18);
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }

.page {
  padding: 40px 24px 56px;
  max-width: 720px;
  margin-inline: auto;
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
}

.back {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.back:active { color: var(--gold); }

h1 {
  margin: 30px 0 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.meta {
  margin-top: 12px;
  font-family: system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--muted);
}

.lede {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font-size: 20px;
  line-height: 1.45;
}

.body { margin-top: 30px; }
.body p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.62;
}

.lead {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.fw {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.fw h2 {
  margin: 0 0 16px;
  font-family: system-ui, sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.fw ul { margin: 0; padding-left: 18px; }
.fw li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.55;
}

.out {
  display: block;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font-family: system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.out:active { opacity: .7; }

.foot {
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 760px) {
  .page { padding: 56px 32px 72px; }
  h1 { font-size: 52px; }
  .lede { font-size: 22px; }
  .body p { font-size: 18px; }
  .back:hover, .out:hover { color: var(--gold); opacity: .75; }
}
