/* tokens.css — self-hosted fonts + brand palette defaults (Studio white, design.md).
   lib/ui.php overrides the colors from Brand → Colors and the three font roles from the chosen
   pairing (lib/look.php). Every pairing's faces are declared here; a browser only downloads the
   faces a page actually uses. All families: SIL Open Font License (assets/fonts/OFL-*.txt). */
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/great-vibes.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-sans-3.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("../fonts/dm-sans.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/eb-garamond.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap; src: url("../fonts/eb-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/work-sans.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/bodoni-moda.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/jost.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/lora.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/lora-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/nunito-sans.woff2") format("woff2"); }
@font-face { font-family: "Allura"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/allura.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 200 350; font-display: swap; src: url("../fonts/spectral-light.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/spectral.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/spectral-italic.woff2") format("woff2"); }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/karla.woff2") format("woff2"); }
@font-face { font-family: "Parisienne"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/parisienne.woff2") format("woff2"); }

:root {
  --cream: #FFFFFF;
  --cream-2: #F4F4F2;
  --ivory: #FFFFFF;
  --gold: #2D2D2D;
  --gold-deep: #111111;
  --gold-pale: #E3E3E0;
  --rose: #8E8E8A;
  --rose-deep: #5A5A56;
  --rose-pale: #EFEFEC;
  --charcoal: #2D2D2D;
  --charcoal-2: #6B6B67;
  --white: #FFFFFF;
  --success: #5F7D5B;
  --danger: #A8473F;
  --on-gold: #FFFFFF;       /* text on gold / gold-deep fills; lib/ui.php recomputes both per palette (look_on_colors) */
  --on-gold-deep: #FFFFFF;
  --gold-on-dark: #E3E3E0;  /* the action color on the dark sidebar; also recomputed per palette */
  /* Contextual text colors (lib/look.php look_text_colors, recomputed per palette): each one reads on its background
     with any palette — the saved colors are never changed. The studio-white values below. */
  --text-muted: #6B6B67;    /* on the page ground (cream, cream-2): secondary text, eyebrows */
  --text-heading: #2D2D2D;
  --text-accent: #5A5A56;
  --text-gold: #2D2D2D;     /* small gold text (4.5:1) */
  --text-gold-lg: #2D2D2D;  /* large gold words and icons (3:1) */
  --text-link: #111111;
  --text-mid: #5B5B5B;
  --text-dim: #6B6B6B;
  --text-ink: #2D2D2D;      /* body text on the page ground (the palette's own, unless it doesn't read) */
  --page-ink: var(--text-ink); --page-muted: var(--text-muted); --page-mid: var(--text-mid); --page-dim: var(--text-dim); --page-heading: var(--text-heading);
  --page-accent: var(--text-accent); --page-gold: var(--text-gold); --page-gold-lg: var(--text-gold-lg); --page-link: var(--text-link); /* the page set kept by name, for page-ground pieces inside the ivory surfaces (components.css) */
  --ivory-ink: #2D2D2D;     /* the same set on the ivory surfaces (components.css hands them over) */
  --ivory-muted: #6B6B67; --ivory-mid: #5B5B5B; --ivory-dim: #747474; --ivory-heading: #2D2D2D; --ivory-accent: #5A5A56;
  --ivory-gold: #2D2D2D; --ivory-gold-lg: #2D2D2D; --ivory-link: #111111;
  --on-photo: #FFFFFF;      /* words over photos, with the accent, gold and quieter versions that read there */
  --on-photo-accent: #BDBDBB;
  --on-photo-gold: #E0E0E0;
  --on-photo-muted: #E0E0E0;
  --photo-halo: 0 1px 3px rgba(59,56,53,.5), 0 0 16px rgba(59,56,53,.4); /* a soft shade hugging words over photos */

  --font-script: "Spectral", Georgia, "Times New Roman", serif;
  --font-serif: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: "Spectral", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script-style: normal; /* italic when a pairing has no script font (the heading font stands in) */

  --shadow: 0 10px 30px rgba(59, 56, 53, .08);
  --shadow-deep: 0 16px 40px rgba(59, 56, 53, .14);
  --radius-sm: 4px;
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1280px;
  --section-pad: clamp(56px, 8vw, 120px);
  --focus: 0 0 0 3px var(--gold-pale);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
