/**
 * VERGO theme: every colour, font and type size the public site uses.
 * Loaded before vergo-site.css on every public page.
 *
 * HOW TO CHANGE THE PALETTE
 *   - Try an accent on any page without changing anything: add ?palette=mint
 *     (or ice) to the URL. It lasts for the visit (pages/js/palette.js).
 *   - Make one the default: change the values in :root below, or copy a
 *     [data-palette] block's values into :root.
 *   - Add a preset: copy a [data-palette="..."] block, rename it, change the
 *     accent, and add its name to PALETTES in public/pages/js/palette.js.
 *   - Rules: green is the ground and stays. The accent is for buttons, the
 *     blanks in the planner, one word per headline and the Call Sheet rule,
 *     never a large background, and never on Paper as text (use
 *     --vg-link-on-paper there). Never pink. The accent does not change by
 *     season; a campaign colour belongs in campaign graphics only.
 *
 * Contrast (WCAG): accent on green 7.83:1, ink on accent 12.26:1, paper on
 * green 11.34:1, sage on green 6.88:1, link-on-paper on paper 4.87:1.
 * Accent on paper is 1.45:1: never.
 */

/* Fonts: self-hosted (the CSP allows no font host), latin subset, SIL OFL.
   Unbounded and Inter are variable files covering every weight used. */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/unbounded-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-latin.woff2') format('woff2');
}

:root {
  /* Greenroom: the brand ground. Hero, header, Call Sheet, footer. */
  --vg-green: #0C3B2E;
  /* Depth: footer, curtain, sheet shadows. */
  --vg-green-deep: #06281F;
  /* A step up from green, for raised panels on green. */
  --vg-green-raised: #114636;
  /* The one spark. */
  --vg-accent: #35E89A;
  --vg-accent-hover: #6DF0B6;
  --vg-accent-rgb: 53, 232, 154;
  --vg-accent-ink: #0B0B16;
  --vg-ink: #0B0B16;
  --vg-paper: #F5F4EE;
  --vg-paper-line: rgba(11, 11, 22, 0.14);
  --vg-sage: #A9C7BA;
  --vg-link-on-paper: #0E7A4F;
  --vg-line-on-green: rgba(245, 244, 238, 0.14);
  --vg-line-on-green-strong: rgba(245, 244, 238, 0.28);
  --vg-wash-on-green: rgba(245, 244, 238, 0.06);
  --vg-shadow: rgba(3, 20, 15, 0.55);
  --vg-error: #FFB4A8;
  --vg-error-on-paper: #A3261B;
  --vg-focus: #FFE38A;
  /* Kept for the Premium rate card on /hire, a shade deeper than the page. */
  --vg-premium-accent: #E2C98F;
  /* Staff area only: a pending shift dot, a fair password. */
  --vg-amber: #D9A441;

  --vg-font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --vg-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --vg-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* The type scale. Tune sizes here, not in components. */
  --vg-step--1: 0.8125rem;                        /* 13px: mono labels */
  --vg-step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); /* body: 16 to 18px */
  --vg-step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --vg-step-2: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem);
  --vg-step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --vg-step-4: clamp(2.125rem, 1.6rem + 2.6vw, 3.75rem);
  /* The planner sentence: 28px on a phone, about 60px on a wide screen. */
  --vg-step-hero: clamp(1.625rem, 0.95rem + 3.1vw, 4rem);
  /* The footer wordmark: edge to edge. */
  --vg-step-wordmark: clamp(3.5rem, 17vw, 13.5rem);

  --vg-radius: 4px;
  --vg-radius-lg: 14px;
  --vg-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Presets: the green stays, only the accent changes. ?palette=<name> to try one. */
[data-palette="emerald"] {
  --vg-accent: #35E89A;
  --vg-accent-hover: #6DF0B6;
  --vg-accent-rgb: 53, 232, 154;
}
[data-palette="mint"] {
  --vg-accent: #7FE0B0;
  --vg-accent-hover: #A6EBC9;
  --vg-accent-rgb: 127, 224, 176;
}
[data-palette="ice"] {
  --vg-accent: #BFF5E1;
  --vg-accent-hover: #DBFAEE;
  --vg-accent-rgb: 191, 245, 225;
}
