/* site/theme.css — Gerab Nyed-Yon's palette and type.   [SITE: Gerab]
 *
 * Loaded right after tokens.css on every page. It only sets token VALUES.
 *
 * Public site: one fixed, bright palette (it does not flip with the OS dark
 * setting). Warm white and lotus-blush grounds carry most of the page; the
 * logo's maroon is the one strong ground (header, closing band, footer), with
 * the flame's saffron and the lotus's coral as accents. The values sit on
 * body.public-site, so they win over tokens.css's own dark-mode block.
 *
 * Staff workspace: GNY maroon as its primary, in light and dark.
 *
 * Colours come from the logo: the maroon ring (#723039), the saffron
 * flame (#E09850) and the coral heart of the lotus (#EC6F3F).
 */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/site/fonts/fraunces-latin.woff2") format("woff2-variations"), url("/assets/site/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/site/fonts/fraunces-italic-latin.woff2") format("woff2-variations"), url("/assets/site/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Public site: fixed palette ---------- */
body.public-site {
  color-scheme: light;
  /* GNY names. "ink" is the strong ground: the logo's maroon, not black. */
  --g-ink: #723039;            /* maroon ground (header, closing band) */
  --g-ink-2: #5f2730;          /* cards on maroon */
  --g-ink-3: #4e1f27;
  --g-footer: #5a2530;         /* footer, a step deeper than the ring */
  --g-paper: #fffaf5;          /* warm white, the main ground */
  --g-paper-2: #f9ece3;        /* lotus blush, alternate sections and hovers */
  --g-on-ink: #fff6ee;         /* text on maroon */
  --g-on-ink-muted: #ecd0c8;
  --g-line-ink: rgb(255 246 238 / .2);
  --g-maroon: #8c3a46;         /* maroon for accents on light grounds */
  --g-maroon-deep: #723039;    /* the logo ring */
  --saffron: #f0a04b;          /* the flame */
  --coral: #ec6f3f;            /* the lotus heart */
  --coral-text: #c4502a;       /* coral dark enough for display type on white */
  --accent-text: #a14a1c;      /* saffron/coral dark enough for small text */

  /* boilerplate token names (site.css, page-builder blocks, forms) */
  --brand: #723039;
  --brand-strong: #5a2530;
  --on-brand: #ffffff;
  --accent: #f0a04b;
  --ink: #3a1a20;              /* headings / strong text: maroon-brown, not black */
  --text: #4d3236;
  --text-muted: #7a5f63;
  --surface: #fffaf5;
  --paper-deep: #f9ece3;
  --tint: #fbf0e8;
  --tint-strong: #f3e0d4;
  --line: #ecdcd2;
  --line-strong: #d8bfb3;
  --band: #723039;
  --band-text: #ecd0c8;
  --band-strong: #ffffff;
  --band-line: rgb(255 246 238 / .2);
  --hero: #723039;
  --hero-shade: rgb(58 20 28 / .5);
  --scene-top: rgb(58 20 28 / .2);
  --on-dark: #ffffff;
  --on-dark-soft: #fff6ee;
  --on-dark-muted: rgb(255 246 238 / .8);
  --on-dark-line: rgb(255 246 238 / .5);
  --on-dark-hairline: rgb(255 246 238 / .22);
  --on-dark-fill: rgb(255 255 255 / .12);
  --header-glass: rgb(114 48 57 / .9);

  --font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(58 20 28 / .06), 0 12px 32px rgb(58 20 28 / .08);
  --shadow-lift: 0 2px 6px rgb(58 20 28 / .08), 0 24px 52px rgb(58 20 28 / .16);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Staff workspace: GNY maroon ---------- */
:root {
  --ui-primary: #723039;
  --ui-primary-hover: #5c242d;
  --ui-ring: #b4545f;
  --ui-ring-soft: rgb(180 84 95 / .2);
  --ui-selected: #f4ebe8;
  --ui-chart-1: #723039; --ui-chart-2: #b4545f; --ui-chart-3: #e9b9a0; --ui-chart-4: #e09850;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ui-primary: #c46b75; --ui-primary-hover: #b4545f; --ui-ring: #d9848d; --ui-ring-soft: rgb(217 132 141 / .25); --ui-selected: #2b1c1d;
    --ui-chart-1: #d9848d; --ui-chart-2: #b4545f;
  }
}
:root[data-theme="dark"] {
  --ui-primary: #c46b75; --ui-primary-hover: #b4545f; --ui-ring: #d9848d; --ui-ring-soft: rgb(217 132 141 / .25); --ui-selected: #2b1c1d;
  --ui-chart-1: #d9848d; --ui-chart-2: #b4545f;
}
