/* Theme tokens. A re-skin changes this file (and the wording in
   config/event.json) and nothing else. Taken from the invitation: a white
   card, watercolour eucalyptus in grey-green sage, letterspaced classic serif
   capitals, and a calligraphy script used only as an accent.
   Contrast (WCAG AA): text on background 12:1, button text 6.5:1, accent
   text 4.9:1. State is never shown by colour alone: every status carries an
   icon and words; colour only reinforces. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("/fonts/pinyon-script-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --tracking-display: 0.16em;
  --tracking-label: 0.13em;
  --size-body: 1.0625rem;
  --size-label: 0.82rem;
  --size-names: clamp(1.75rem, 8vw, 2.5rem);
  --size-script: clamp(2rem, 9vw, 2.6rem);

  /* Colour (light) */
  --color-bg: #fbfaf8;            /* warm-neutral white, not cream */
  --color-surface: #ffffff;       /* the card */
  --color-surface-tint: #eef2ef;  /* light sage wash */
  --color-text: #2b3430;          /* deep grey-green charcoal */
  --color-muted: #5d6963;
  --color-accent: #587365;        /* eucalyptus sage, safe for text */
  --color-button: #4a6356;        /* darker sage, white text */
  --color-button-text: #ffffff;
  --color-hairline: #cdd3d0;      /* silver-grey */
  --color-focus: #2f5d4a;
  --color-sprig: #7f998a;
  --color-ok: #3d6a50;
  --color-wait: #6f5b22;
  --color-bad: #8a2f2f;
  --color-overlay: rgba(18, 24, 21, 0.94);
  --color-badge-bg: rgba(255, 255, 255, 0.92);
  --color-badge-text: #2b3430;
  --color-qr-bg: #ffffff;         /* stays white in dark mode so phones can scan it */

  /* Shape */
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgba(43, 52, 48, 0.05), 0 10px 30px rgba(43, 52, 48, 0.07);
  --tap: 3.25rem;                 /* smallest button height */
  --tap-big: 4.75rem;             /* the three camera buttons */
  --gutter: 1rem;
  --sprig-opacity: 0.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #141917;
    --color-surface: #1b2220;
    --color-surface-tint: #22302a;
    --color-text: #e5ebe7;
    --color-muted: #a8b5ae;
    --color-accent: #a3c0ae;
    --color-button: #a3c0ae;
    --color-button-text: #12201a;
    --color-hairline: #3a4642;
    --color-focus: #c8e0d1;
    --color-sprig: #87a594;
    --color-ok: #9fd0b2;
    --color-wait: #e3c77a;
    --color-bad: #f0a3a3;
    --color-badge-bg: rgba(20, 25, 23, 0.9);
    --color-badge-text: #e5ebe7;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --sprig-opacity: 0.45;
  }
}
