/* Default design tokens: the "classic" theme. Pages with a family override the colour, type and
   radius tokens inline from apps/themes/registry.py (base.html); error pages and anything rendered
   without a family use these as they are. tests/test_themes_shell.py keeps them equal to classic.
   The only file under static/css allowed to hold colour literals. */
:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #1f2933;
  --text-strong: #111a24;
  --muted: #5b6574;
  --line: #dde1e6;
  --line-strong: #c3cad3;
  --field-line: #878e9a;
  --accent: #4a6d8c;
  --accent-strong: #3b5873;
  --accent-soft: #e9edf1;
  --on-accent: #ffffff;
  --focus: #4a6d8c;
  --danger: #b03a2e;
  --on-danger: #ffffff;
  --danger-soft: #f7ebea;
  --success: #2f6b4f;
  --success-soft: #eaf0ed;
  --warning: #8a5a12;
  --warning-soft: #f3eee7;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.05), 0 6px 20px rgba(31, 41, 51, 0.07);
  --shadow-pop: 0 12px 32px rgba(31, 41, 51, 0.16);
  --overlay: rgba(14, 20, 27, 0.94);
  --scrim: rgba(14, 20, 27, 0.5);
  --scrim-light: rgba(14, 20, 27, 0.18);
  --viewer: #0e141b;
  --viewer-sheet: #21272d;
  --font-heading: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-weight: 600;
  --heading-tracking: -0.01em;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  /* The template's character (registry.Character via tokens.character): cards, photographs, the top
     bar, the navigation and the invitation card. Classic's values. */
  --title-scale: 1.2;
  --title-align: center;
  --pagehead-dir: column;
  --card-bg: var(--surface);
  --card-edge: 1px solid var(--line-strong);
  --card-elev: none;
  --card-pad: var(--space-4);
  --card-radius: 4px;
  --gap-cards: 18px;
  --photo-radius: 2px;
  --photo-mat: 0px;
  --photo-mat-bg: var(--accent-soft);
  --photo-frame: 0 solid transparent;
  --media-bleed: var(--space-4);
  --media-order: 0;
  --bar-bg: var(--surface);
  --bar-ink: var(--text-strong);
  --bar-nav: var(--muted);
  --bar-edge: 1px solid var(--line);
  --bar-hover: var(--accent-soft);
  --nav-active-bg: transparent;
  --nav-line: 3px;
  --nav-weight: 600;
  --brand-justify: center;
  --invite-shape: var(--scallop);
  --invite-radius: 0px;
  --invite-align: center;
  --invite-text-align: center;
  --invite-edge: 0 solid transparent;
  --invite-mat: 0px;

  /* Same in every theme */
  --card-line: transparent; /* theme.css sets it per data-card */
  --on-media: #ffffff;      /* text and marks drawn over photos and the lightbox */
  --on-media-soft: rgba(255, 255, 255, 0.16);
  --on-media-hover: rgba(255, 255, 255, 0.28);
  --on-media-muted: rgba(255, 255, 255, 0.74);
  /* The photo viewer is dark in every template: its panels and fields, and a heart that reads on it */
  --viewer-raise: rgba(255, 255, 255, 0.07);
  --viewer-raise-2: rgba(255, 255, 255, 0.12);
  --viewer-line: rgba(255, 255, 255, 0.14);
  --viewer-field-line: rgba(255, 255, 255, 0.42);
  --viewer-heart: #f08b7c;

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

  --tap: 44px;
  --control-h: 48px;  /* inputs, selects and buttons: comfortably above the 44px tap minimum */

  /* The type scale, the same in every template (the theme only changes the faces). Five sizes:
     small notes, running text, names and card titles, section headings, page titles. Nothing is
     ever smaller than --step-small (14px); running text is 17px and reading pages 19px. */
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-name: 1.1875rem;
  --step-h2: 1.375rem;
  --step-h1: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem);
  --step-read: 1.1875rem;
  --measure: 66ch;    /* reading text: stories, recipes, letters */
}
