/* Typography — Fraunces (display + body) and Inter (UI/captions).
   Self-hosted per prompt. Variable WOFF2s vendored under /static/fonts/.
   Falls back to a system-serif / system-sans stack if fonts fail to load. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/Fraunces.woff2") format("woff2-variations"),
       url("/static/fonts/Fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/Fraunces-Italic.woff2") format("woff2-variations"),
       url("/static/fonts/Fraunces-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/Inter.woff2") format("woff2-variations"),
       url("/static/fonts/Inter.woff2") format("woff2");
}

:root {
  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-body:    "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid body 19–21px per spec §6 */
  --fs-body: clamp(1.0625rem, 1.0125rem + 0.25vw, 1.3125rem);
  --lh-body: 1.6;

  --fs-caption: 0.8125rem;
  --lh-caption: 1.4;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  color: var(--c-ink);
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em 0;
}

h1 { font-size: clamp(2.25rem, 1.8rem + 2.4vw, 4.5rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1.2vw, 2.25rem); font-variation-settings: "opsz" 60; }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);  font-variation-settings: "opsz" 36; }

p { margin: 0 0 1.05em 0; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }
strong { font-weight: 600; }

blockquote {
  border-left: 2px solid var(--c-rust);
  padding-left: 1rem;
  margin: 1.4em 0;
  font-style: italic;
  color: var(--c-ink-muted);
}

ul, ol {
  margin: 0 0 1.05em 0;
  padding-left: 1.4em;
}
li {
  margin-bottom: 0.55em;
}
li > strong:first-child { color: var(--c-navy); }

/* Inter for small-caps labels, captions, attributions, UI. */
.scene-label,
.chapter-eyebrow,
.landing-eyebrow,
.chapter-next__label,
.landing-scroll-hint,
.scroll-hint,
.media-attribution,
.colorized-badge,
.scene-thennow__caption {
  font-family: var(--ff-ui);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  font-weight: 500;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--c-ink-muted);
}

/* Prose column measure per spec §3 (60–70ch). */
.prose-column {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
