/* Hymnleaf's look, as tokens. Every color, face, size, radius and space the app's pages
   use is named here and nowhere else; app.css reads only these. A new look for the app is a
   new copy of this file. A church's own accent and display face arrive as overrides on
   <body data-church> (see server.js, churchStyle). docs/design-system.md lists the classes.

   This is the Missal look from the 2026-10-19 design session (docs/design-plan.md). */
:root {
  /* paper and ink */
  --paper: #F6F1E7;
  --paper-raised: #FBF8F1;
  --paper-sunk: #EFE8DA;
  --paper-dark: #EFE6D4;   /* the darker paper: the strip, a ticked card, season and feast rows */
  --ink: #2A241C;
  --ink-soft: #6B6152;
  --ink-faint: #9A8F7E;
  --rule: #D9CDB8;
  --rule-strong: #BFAF94;

  /* the red of the rubrics: links, the main button, marks that ask for attention */
  --rubric: #A6321F;
  --rubric-ink: #FFFFFF;
  --rubric-wash: #F3E1DA;

  /* a church may replace these two (body[data-church]) */
  --accent: var(--rubric);
  --accent-ink: var(--rubric-ink);

  /* messages */
  --ok: #3F6B3A;
  --ok-wash: #E6EEDC;
  --warn: #8A4B0F;
  --warn-wash: #F6E7CF;
  --error: #9B2A1A;
  --error-wash: #F5DDD6;

  /* liturgical colors, for the year's color dots */
  --lit-white: #FFFFFF;
  --lit-gold: #C9A227;
  --lit-violet: #5B3A7A;
  --lit-blue: #2F4E8C;
  --lit-red: #B3261E;
  --lit-green: #3E7A3A;
  --lit-rose: #D88FA0;
  --lit-black: #1D1A16;

  /* faces */
  --face-display: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --face-text: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --face-ui: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --face-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* sizes */
  --size-xs: 0.75rem;
  --size-sm: 0.875rem;
  --size-md: 1rem;
  --size-lg: 1.25rem;
  --size-xl: 1.6rem;
  --size-xxl: 2.2rem;
  --line: 1.5;
  --line-tight: 1.2;
  --weight-ui: 400;
  --weight-ui-strong: 600;
  --tracking-label: 0.08em;
  --size-label: 0.6875rem;   /* 11 px section labels */
  --size-nav: 0.8125rem;     /* 13 px nav */
  --size-cell: 1rem;         /* 16 px a value in a grid cell */
  --size-day: 1.125rem;      /* 18 px a day's name */
  --size-card-title: 1.375rem; /* 22 px a card's or column's name */
  --size-date-big: 1.5rem;   /* 24 px a Sunday's date on the bulletins list */
  --size-tiny: 0.625rem;     /* 10 px the address on the cover */

  /* space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* shape */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --rule-width: 1px;
  --control-height: 44px;
  --control-height-small: 32px;
  --radius-control: 0;
  --shadow-raised: 0 1px 2px rgba(42, 36, 28, 0.08), 0 4px 16px rgba(42, 36, 28, 0.06);
  --shadow-modal: 0 8px 40px rgba(42, 36, 28, 0.25);
  --scrim: rgba(42, 36, 28, 0.45);

  /* measures */
  --measure-page: 1080px;
  --measure-text: 720px;
  --measure-field: 480px;
  --header-height: 56px;
  --cell-min: 150px;
  --thumb-w: 72px;
  --thumb-h: 96px;
  --phone: 560px;

  /* the bulletin page as drawn on screen (the cover in setup, the bulletin in step O) */
  --sheet-paper: #FFFFFF;
  --sheet-ink: #1A1712;
  --sheet-width: 400px;
  --sheet-ratio: 8.5 / 11;
  --sheet-shadow: 0 1px 3px rgba(42, 36, 28, 0.18), 0 10px 30px rgba(42, 36, 28, 0.10);
}
