/* SR&C design tokens, shared by the public site, the staff site and the field app.

   Design overhaul, 2026-12-01 (team design notes, "INTEX Fall 2026 Team 4-02"):
   - Colour stays inside the shell logo's teal family (Cameron's decision): no new hues.
     The variety the notes ask for ("not a black-and-white site") comes from full-width
     blocks in five steps of the same sea colour, from pale foam to kelp, instead of
     white sections with teal buttons.
   - Type: Bricolage Grotesque for headings (decorative, a little condensed),
     Plus Jakarta Sans for reading text. Both SIL OFL, self-hosted (fonts.css).

   Brand colours (team decision 2026-11-30, from the logo):
     deep #182020   teal #1f5c58   lagoon #7ed6d3   mist #f1f6f5
   Every other value is a tint or shade of those four ("derived"). Contrast ratios for
   every text pair are noted beside it (WCAG 2.2 AA needs 4.5:1, 3:1 for large text
   and control borders). */

:root {
  /* ---- Sea palette: light to dark ---- */
  --sea-mist: #f1f6f5;     /* brand: page background */
  --sea-paper: #ffffff;    /* panels, form fields */
  --sea-foam: #dcefed;     /* derived: pale blocks; deep text 13.9:1, teal text 6.5:1 */
  --sea-lagoon: #7ed6d3;   /* brand: bright blocks; deep text 9.8:1. Never text on light */
  --sea-reef: #2b7a74;     /* derived: mid blocks; white text 5.1:1 */
  --sea-teal: #1f5c58;     /* brand: buttons, links, blocks; white 7.7:1, on mist 7.1:1 */
  --sea-kelp: #133d3a;     /* derived: dark blocks; white 12.0:1, lagoon text 7.1:1 */
  --sea-deep: #182020;     /* brand: body text 15.2:1 on mist */

  /* ---- Roles (templates and stylesheets use these names) ---- */
  --color-surface: var(--sea-mist);
  --color-surface-raised: var(--sea-paper);
  --color-surface-tint: var(--sea-foam);
  --color-ink: var(--sea-deep);
  --color-ink-muted: #46595a;        /* derived: secondary text 6.8:1 on mist, 6.2:1 on foam */
  --color-ink-inverse: #f6fbfa;
  --color-ink-inverse-muted: #bfe7e5; /* derived: secondary text on kelp 9.0:1, on teal 5.8:1 */
  --color-primary: var(--sea-teal);
  --color-primary-strong: #164541;   /* derived: hover/pressed; white 10.7:1 */
  --color-link: var(--sea-teal);
  --color-link-hover: #164541;
  --color-accent: var(--sea-lagoon);
  --color-rule: #c3d9d6;             /* derived: hairlines between content */
  --color-border-control: #5d7372;   /* derived: control borders 5.1:1 on white */
  --color-success: #1e6b3a;          /* 6.5:1 on white */
  --color-warning: #7a5000;          /* 7.1:1 on white */
  --color-danger: #a4262c;           /* 7.3:1 on white */
  --color-selection: var(--sea-lagoon);

  /* Focus: a two-tone ring, visible on light AND dark blocks. */
  --focus-ring-color: var(--sea-teal);
  --focus-ring-halo: #ffffff;
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-heavy: 800;

  /* Scale: a 1.25 ratio on a 17 px body (readable on a low-cost phone at arm's length).
     Display sizes grow with the screen through clamp(), so no breakpoint jumps. */
  --text-xs: 0.875rem;    /* 14 px: fine print only */
  --text-sm: 0.9375rem;   /* 15 px */
  --text-base: 1.0625rem; /* 17 px */
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --text-3xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  --text-4xl: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  --leading-tight: 1.02;
  --leading-snug: 1.2;
  --leading-body: 1.62;
  --measure: 64ch;

  /* ---- Space (4 px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --gutter: 1.25rem;
  --content-max: 76rem;

  /* ---- Shape ----
     Radii are set by size, so nested shapes stay concentric: controls 10, panels 18,
     photos 24. The shell logo has no hard corners, so nothing here is square. */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-raised: 0 1px 2px rgb(19 61 58 / 0.08), 0 8px 24px -12px rgb(19 61 58 / 0.25);

  /* ---- Touch ---- */
  --tap-min: 44px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-medium: 280ms;
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}
@media (min-width: 80rem) {
  :root { --gutter: 3rem; }
}
