/* ==========================================================================
   variables.css - the single source of truth for the design system.

   Every value here was measured from the Pixieset site's computed styles
   at 1440px and 390px wide (2026-11-18, reference captures in
   docs/reference/, not committed). Fluid sizes interpolate linearly
   between the two measurements: clamp(<390px value>, ..., <1440px value>).
   Nothing else in the stylesheet set should hardcode a color, size or
   duration.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     Color. Contrast ratios are WCAG 2 values against --color-bg (#F6F5F1)
     unless stated otherwise.
     --------------------------------------------------------------------- */
  --color-bg: #f6f5f1;              /* page background                      */
  --color-bg-alt: #e8e3df;          /* panels, dropdowns, mobile menu       */

  --color-text: #373737;            /* strongest text      - 10.9:1         */
  --color-muted: #6c6c6c;           /* body copy (Pixieset) - 4.8:1         */
  /* --color-muted measures only 4.1:1 on --color-bg-alt, which fails AA
     for body-sized text. Body copy inside --color-bg-alt panels uses
     --color-text instead. */

  --color-accent: #74605a;          /* headings, nav, CTAs - 5.4:1, 4.6:1 on alt */
  --color-accent-strong: #5e4c46;   /* hover / active      - 7.4:1          */
  --color-accent-soft: #c5bab6;     /* dividers and borders ONLY (1.7:1)    */
  /* Pixieset draws its underlined CTAs (Learn More, View Portfolio...) in
     #967F78, which is only 3.4:1 here and fails AA at 20px. The text uses
     --color-accent instead; Pixieset's color survives as the underline,
     which is decoration and has no contrast requirement. */
  --color-cta-line: #967f78;
  --color-rule: #d9d4cf;            /* hairline dividers between sections   */
  --color-on-accent: #ffffff;       /* text on a filled accent - 5.9:1      */

  --color-border: var(--color-accent-soft);
  --color-danger: #a3352b;          /* form errors           -  6.2:1       */
  --color-success: #3f6b4a;         /* form success          -  5.6:1       */

  --color-focus: var(--color-accent);
  --color-selection: color-mix(in srgb, var(--color-accent-soft) 60%, transparent);

  /* ---------------------------------------------------------------------
     Typography. Three families, five files (see assets/fonts/README.md):
       Fraunces  headings, wordmark, CTAs, mobile menu
       Inter     body copy
       Lato      nav, small uppercase labels, numbered labels
     --------------------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-label: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  /*                390px     1440px  */
  --text-display: clamp(47.65px, 39.35px + 2.129vw, 70px);  /* hero H1        */
  --text-xl: clamp(39.46px, 33.32px + 1.575vw, 56px);       /* section titles, quote */
  --text-lg: clamp(26.84px, 15.96px + 2.781vw, 56px);       /* long split headings   */
  --text-md: clamp(27.73px, 24.66px + 0.788vw, 36px);       /* service titles        */
  --text-wordmark: clamp(23.76px, 21.74px + 0.518vw, 29.2px);
  --text-cta: clamp(18.36px, 17.75px + 0.156vw, 20px);      /* underlined CTAs       */
  --text-menu: 21.42px;                                     /* mobile menu items     */
  --text-body: 16.6px;
  --text-list: clamp(16.6px, 16.45px + 0.038vw, 17px);
  --text-tagline: 15px;
  --text-label: 16px;                                       /* "01." labels          */
  --text-small: 14px;
  --text-nav: 12px;
  --text-eyebrow: 11px;

  --weight-light: 250;
  --weight-regular: 400;
  --weight-bold: 700;

  --leading-display: 1.1;
  --leading-heading: 1.2;
  --leading-md: 1.3;
  --leading-body: 1.7;
  --leading-tagline: 1.8;

  --tracking-heading: -0.01em;
  --tracking-wordmark: -0.03em;
  --tracking-body: 0.01em;
  --tracking-tagline: 0.08em;
  --tracking-label: 0.1em;          /* "01." */
  --tracking-counter: 0.14em;
  --tracking-nav: 0.2em;            /* nav, eyebrows */
  --tracking-dropdown: 0.04em;

  /* ---------------------------------------------------------------------
     Spacing. Pixieset stacks content blocks with 68px of padding at the
     top and bottom of each.
     --------------------------------------------------------------------- */
  --space-feature-gap: clamp(39px, 27.86px + 2.857vw, 69px);
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --space-block: clamp(45px, 36.46px + 2.19vw, 68px); /* top/bottom padding of every block */
  --gap-grid: 16px;                 /* 3x3 photo grid                    */

  /* ---------------------------------------------------------------------
     Layout. Content runs from x=74 to x=1366 at 1440 (1292px), with a
     30px gutter at 390.
     --------------------------------------------------------------------- */
  --container-width: 1440px;
  --container-pad: clamp(30px, 5.14vw, 74px);
  --container-narrow: 900px;
  --measure: 66ch;
  --header-height: 85px;
  --header-height-desktop: 125px;

  --border-width: 1px;
  --radius-sm: 0;

  /* ---------------------------------------------------------------------
     Motion - every transition in the system references these.
     --------------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast: 140ms;
  --duration: 240ms;
  --duration-slow: 640ms;

  /* Stacking order, declared once so it stays sane. */
  --z-dropdown: 110;
  --z-header: 100;
  --z-nav-panel: 120;
  --z-nav-toggle: 130;
  --z-skip-link: 200;
}

/* --------------------------------------------------------------------------
   Self-hosted fonts. Filenames carry the Fontsource version; see
   assets/fonts/README.md before changing them. The two preloaded files
   (Fraunces normal, Inter 400) are also referenced by <link rel="preload">
   in every page head, so keep the paths in step.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-5.3.0-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-5.3.0-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-5.3.0-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-5.3.0-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-5.3.0-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
