/* design.css — every design decision in one place.

   Change the look here, not in app.css. app.css uses only these variables,
   so changing a value below changes it everywhere it appears: the public
   pages, the form, the pages reached from emails, and the operator console.
   The palette is the old sargasso.blue's. The fonts are served from
   /static/fonts, never from Google, so a page load tells no third party who
   visited (`docs/security.md`).

   When Tailwind arrives (`docs/operations.md`, weeks 11–12), its theme reads
   these same names, so this file stays the source of truth. */

@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ── Colour: brand ─────────────────────────────────────────────── */
  --brand: #104e60;          /* deep sea: headings, links, footer, console buttons */
  --brand-strong: #0b3947;   /* hover on brand, darkest backgrounds */
  --brand-soft: #e8f3f6;     /* tinted section backgrounds */
  --sky: #4dbfe0;            /* accent lines, current page, eyebrow text */
  --sky-soft: #bfe9f5;       /* text on dark photos */
  --action: #f46036;         /* the one call to action: "Send a request" */
  --action-strong: #d94e27;  /* hover on action */

  /* ── Colour: neutrals ──────────────────────────────────────────── */
  --ink: #14212a;            /* body text */
  --muted: #56646d;          /* help text, captions */
  --line: #dbe3e7;           /* borders, dividers */
  --surface: #ffffff;        /* cards, inputs, header */
  --page: #f7fafb;           /* page background */
  --on-dark: #ffffff;        /* text on brand and photos */
  --on-dark-muted: #b8d3dc;  /* secondary text on brand */

  /* ── Colour: states ────────────────────────────────────────────── */
  --warn: #9a3412;           /* errors, destructive buttons */
  --warn-soft: #fff4ed;
  --ok: #1f7a55;             /* introductions, things that went well */
  --ok-soft: #eef8f4;
  --wait: #9a5b00;           /* waiting for the admin */
  --wait-soft: #fff6e0;
  --flag: #7a5c00;           /* operator flags */
  --focus: #4dbfe0;          /* keyboard focus ring */

  /* Photos under text get this overlay, so the text stays readable. */
  --photo-shade: rgba(6, 34, 44, 0.66);

  /* ── Type ──────────────────────────────────────────────────────── */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.8125rem;      /* 13px: tags, captions */
  --text-sm: 0.9375rem;      /* 15px: help text, nav */
  --text-md: 1.0625rem;      /* 17px: body */
  --text-lg: 1.25rem;        /* 20px: lede, intro paragraphs */
  --text-xl: 1.5rem;         /* 24px: card titles, h3 */
  --text-2xl: 2.125rem;      /* 34px: section titles, h2 */
  --text-3xl: 2.875rem;      /* 46px: page titles, h1 */
  --text-hero: clamp(2.6rem, 5.5vw, 4.25rem);

  --leading-tight: 1.15;
  --leading-body: 1.65;
  --weight-body: 400;
  --weight-strong: 600;
  --weight-display: 600;
  --tracking-caps: 0.14em;   /* for small uppercase labels */

  /* ── Space: one scale, used for padding, gaps and margins ──────── */
  --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: 6rem;
  --section-y: var(--space-9);      /* vertical padding of a page section */
  --gutter: var(--space-5);         /* side padding, never less on a phone */

  /* ── Layout ────────────────────────────────────────────────────── */
  --width-page: 72rem;       /* the widest content */
  --width-text: 44rem;       /* reading width for prose and the form */
  --width-console: 82rem;    /* the admin: its tables need the room */
  --header-height: 4.5rem;
  /* Media queries cannot read variables: the phone breakpoint is 760px,
     written out in app.css. */

  /* ── Shape ─────────────────────────────────────────────────────── */
  --radius-sm: 6px;          /* inputs, tags */
  --radius-md: 10px;         /* cards */
  --radius-lg: 16px;         /* feature panels, images */
  --radius-pill: 999px;      /* buttons */
  --shadow-sm: 0 1px 2px rgba(16, 78, 96, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 78, 96, 0.08);
  --shadow-lg: 0 12px 40px rgba(16, 78, 96, 0.14);

  /* ── Controls ──────────────────────────────────────────────────── */
  --control-height: 2.875rem;       /* inputs and buttons */
  --button-padding-x: 1.4rem;
  --transition: 150ms ease;
}
