/* Cherry Hillbillies — shared design tokens ("Blue Ridge Dusk", option C of the 2026-10-21 design canvas).
 *
 * This file is the canonical token sheet for every surface: the static portal, the recipes site and its
 * sign-in page, and the photos site. Each surface consumes a copy (see brand/README.md for the sync rules);
 * change values here first.
 *
 * Both colour modes are defined. Light is the parchment variant (ridge blue leads so contrast holds on pale
 * surfaces); dark is Blue Ridge Dusk proper (spruce ground, brass leads). Surfaces follow the viewer's
 * prefers-color-scheme setting unless they expose their own toggle (Immich does), and may pin a mode with
 * `data-theme="light"` or `data-theme="dark"` on the root element.
 */
:root {
  color-scheme: light;

  /* Ground and surfaces */
  --chb-ground: #f4eee1;          /* page background */
  --chb-surface: #fbf7ee;         /* cards, inputs */
  --chb-surface-2: #ede5d5;       /* nav pill track, secondary panels */
  --chb-surface-3: #ded5c2;       /* hover fills */
  --chb-border: #ded5c2;
  --chb-border-strong: #c9bfa9;
  --chb-border-muted: #a99e88;

  /* Text */
  --chb-text: #16201f;
  --chb-text-soft: #44534f;
  --chb-text-muted: #6b6a60;

  /* Brand accents */
  --chb-primary: #3f5d73;         /* ridge blue: buttons, links, active states */
  --chb-primary-hover: #334c5f;
  --chb-on-primary: #fbf7ee;
  --chb-brass: #7a6230;           /* eyebrows and small brass text (AA on parchment) */
  --chb-brass-bright: #9a7d3f;    /* decorative brass: strokes, large type, focus rings */
  --chb-haze: #65829a;            /* info, ridge highlight */
  --chb-ridge: #3f5d73;
  --chb-ridge-deep: #283c4b;
  --chb-brick: #9c4a36;           /* alerts, the cherries in the mark */
  --chb-info-bg: #d9e2e9;
  --chb-info-text: #283c4b;

  /* Semantic */
  --chb-success: #4f6b5e;
  --chb-warning: #9a6a2c;
  --chb-danger: #9c4a36;

  /* Shape and depth */
  --chb-radius-control: 6px;
  --chb-radius-card: 10px;
  --chb-radius-pill: 999px;
  --chb-shadow-card: 0 1px 2px rgba(22, 32, 31, 0.06), 0 8px 24px rgba(22, 32, 31, 0.08);
  --chb-shadow-lift: 0 12px 32px rgba(22, 32, 31, 0.16);
  --chb-focus-ring: 0 0 0 3px rgba(63, 93, 115, 0.35);

  /* Type */
  --chb-font-display: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --chb-font-body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --chb-tracking-eyebrow: 0.2em;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --chb-ground: #16201f;
    --chb-surface: #22302e;
    --chb-surface-2: #1b2726;
    --chb-surface-3: #2f3d3b;
    --chb-border: #2f3d3b;
    --chb-border-strong: #44534f;
    --chb-border-muted: #6b7a76;
    --chb-text: #efe8da;
    --chb-text-soft: #c3cbc3;
    --chb-text-muted: #a9b3ac;
    --chb-primary: #c9a45c;
    --chb-primary-hover: #d5b678;
    --chb-on-primary: #16201f;
    --chb-brass: #c9a45c;
    --chb-brass-bright: #d8b96e;
    --chb-haze: #8fa7b8;
    --chb-ridge: #4f6b86;
    --chb-ridge-deep: #2e4256;
    --chb-brick: #b5553f;
    --chb-info-bg: #2a3a44;
    --chb-info-text: #bfd2e0;
    --chb-success: #8fae9c;
    --chb-warning: #d8b96e;
    --chb-danger: #d47a63;
    --chb-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --chb-shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.5);
    --chb-focus-ring: 0 0 0 3px rgba(201, 164, 92, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --chb-ground: #16201f;
  --chb-surface: #22302e;
  --chb-surface-2: #1b2726;
  --chb-surface-3: #2f3d3b;
  --chb-border: #2f3d3b;
  --chb-border-strong: #44534f;
  --chb-border-muted: #6b7a76;
  --chb-text: #efe8da;
  --chb-text-soft: #c3cbc3;
  --chb-text-muted: #a9b3ac;
  --chb-primary: #c9a45c;
  --chb-primary-hover: #d5b678;
  --chb-on-primary: #16201f;
  --chb-brass: #c9a45c;
  --chb-brass-bright: #d8b96e;
  --chb-haze: #8fa7b8;
  --chb-ridge: #4f6b86;
  --chb-ridge-deep: #2e4256;
  --chb-brick: #b5553f;
  --chb-info-bg: #2a3a44;
  --chb-info-text: #bfd2e0;
  --chb-success: #8fae9c;
  --chb-warning: #d8b96e;
  --chb-danger: #d47a63;
  --chb-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --chb-shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.5);
  --chb-focus-ring: 0 0 0 3px rgba(201, 164, 92, 0.45);
}
