/* Shared by every page: the palette, the type, and the plain pages (privacy, support, 404).
   The home page adds home.css. Colors are the app's: the library's paper and ink, the
   ritual's night stage (docs/design, "Nocturne"). */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-roman.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  /* The library: follows the system appearance. */
  --paper: #f3f2ef; --surface: #ffffff; --ink: #1b1c22; --quiet: #5d5f68; --accent: #7a5a2b;
  --hair: rgba(21, 24, 38, 0.12);
  /* The ritual: always night. */
  --night: #0b0d18; --indigo: #20264a; --stage-ink: #eceef2; --stage-2: #8e94a8; --stage-faint: #7f86a0;
  --hint: #aab0c4; --ask: #d2b47e; --gold: #e3c38c;
  /* The card's ink, on silver. */
  --card-ink: #151826; --card-ink2: #363a47;
  /* New York on Apple devices (the app's face); Newsreader, the prototype's stand-in, elsewhere. */
  --serif: ui-serif, "New York", "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0b0d16; --surface: #151824; --ink: #ecebe6; --quiet: #a3a5ad; --accent: #c9a56a; --hair: rgba(236, 235, 230, 0.14); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* The plain pages. */
body:not(.home) main { max-width: 40rem; margin: 0 auto; padding: 4rem 1.25rem 4rem; }
body:not(.home) h1 { font: 400 2.5rem/1.1 var(--serif); letter-spacing: -0.012em; margin: 0 0 0.6rem; }
body:not(.home) h2 { font: 400 1.4rem/1.25 var(--serif); margin: 2.4rem 0 0.4rem; }
body:not(.home) p, body:not(.home) li { margin: 0.5rem 0; }
body:not(.home) ul { padding-left: 1.2rem; }
.quiet { color: var(--quiet); font-size: 0.95rem; }
body:not(.home) nav { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--hair); }
body:not(.home) nav a { margin-right: 1.25rem; }
