/* The one theme of Narrative (design §10, §11): its colours, its type and the
   few pieces every surface shares, used by the home page, the public pages and
   the web app. The fonts are served from this origin, never another host
   (Article X), and swap in when they arrive, so text shows at once. Story and
   epic pages on a phone name no web font at all, so a phone reading a
   forwarded story downloads none (public.css, Article XII). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fraunces-latin-opsz-normal-397b623a.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fraunces-latin-opsz-italic-f4852aad.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/literata-latin-wght-normal-42f8becd.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --card: #fffcf6;
  --ink: #1d1a16;
  --ink-2: #3d372f;
  --muted: #6d6558;
  --line: #e3d9c7;
  --accent: #a8431d;
  --accent-soft: #e59a73;
  --news-ink: #24453b;
  --news: #e8efea;
  --news-line: #cfdcd4;
  --highlight: rgba(168, 67, 29, .2);
  --ok: #2f6b2f;
  --ok-tint: #e2efe0;
  --warn: #8f5500;
  --warn-tint: #f8ecd6;
  --bad: #a3261b;
  --bad-tint: #f6e0dc;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  /* The system's own serif: the low-bandwidth reading face. */
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --shadow: 0 1px 2px rgba(70, 45, 20, .05), 0 22px 44px -34px rgba(70, 45, 20, .42);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.1rem; font: 650 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.kicker { display: block; font: 700 .68rem/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; }

a.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 600 1.22rem/1 var(--display); letter-spacing: -.01em; }
.wordmark svg { flex: none; width: 1.85rem; height: 1.85rem; color: var(--accent); }

.button { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.4rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.button.ghost, .button.secondary { background: transparent; color: var(--ink); }
.button.ghost:hover, .button.secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
