/* Design tokens: the PorchOS token contract (DECISIONS #77), set to the Michael Cuestas brand.
   Brand source: the live Total + CUESTAS build (MIG-WO-5 pull): blue #4361ee (hero grid, workshops, footer), yellow
   #ffb703 (talk band, booking band), cyan #4cc9f0 (buttons, talk band), purple #7209b7 (review cards, bio lead),
   ink #2b2d42 (text). Fonts: Druk XCond Super ("Druk") and Druk Super Wide ("Druk Super"), self-hosted in the old
   child theme and copied here; Inter for body text, self-hosted and subset (Nolan, 13 Nov 2026 19:04: "All defaults").
   Audit: refs/michaelcuestas/pre-build-audit.md sections 3, 4 and 5.
   Contrast (pixels sampled in the return): ink on yellow 7.9:1, ink on cyan 7.2:1, white on blue 5.0:1, white on purple
   8.6:1, yellow on ink 7.9:1. Live had white text on yellow and on cyan (below 4.5:1); those lines are ink here.
   - palette (--c-*): the only color literals in the theme;
   - roles (--color-*): jobs, each pointing at a palette color;
   - fonts (--font-*): the only place a font is named.
   Check: PorchOS tools/check-tokens.py <theme dir> (zero findings). */
@font-face {
  font-family: "Druk";
  src: url("fonts/drukxcond-super.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Druk Super";
  src: url("fonts/druk-super.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Palette ---------------------------------------------------------- */
  --c-ink: #2b2d42;      /* text and the header bar (live text colour; the audit's "navy") */
  --c-paper: #ffffff;
  --c-blue: #4361ee;     /* hero grid, workshops band, footer (live) */
  --c-cyan: #4cc9f0;     /* main button, talk band (live) */
  --c-yellow: #ffb703;   /* "Let's talk" band, booking band, workshop titles (live) */
  --c-purple: #7209b7;   /* review cards, bio lead line (live) */
  --c-cream: #fff8e6;    /* bio band: the live yellow at about 10% on white */
  --c-lilac: #f5effa;    /* impact band: the live purple at about 6% on white */
  --c-red: #b42318;      /* form errors and required marks only */
  --c-mist: #f7f7f7;     /* the live grey title bar on inner pages and the grey quote box (Total default) */
  --c-plum: #2d004b;     /* live "Menu" pill text and menu links (old Additional CSS) */
  --c-x: #000000;        /* live share pills: X, Facebook, LinkedIn, Email (brand fills, inner pages only) */
  --c-facebook: #1467d6; /* live #1877f2 was 4.2:1 with white text; a little darker for 5.3:1 */
  --c-linkedin: #0a66c2;
  --c-grey: #6b6b6b;     /* live "Email" share pill; also meta text on inner pages */

  /* ---- Roles ------------------------------------------------------------ */
  --color-surface-1: var(--c-paper);
  --color-surface-2: var(--c-cream);
  --color-surface-3: var(--c-ink);
  --color-band: var(--c-blue);
  --color-on-band: var(--c-paper);
  --color-text-1: var(--c-ink);
  --color-text-2: var(--c-ink);
  --color-text-3: color-mix(in srgb, var(--c-ink) 78%, var(--c-paper));
  --color-accent: var(--c-cyan);
  --color-on-accent: var(--c-ink);
  --color-accent-hover: color-mix(in srgb, var(--c-cyan) 62%, var(--c-paper));
  --color-accent-active: color-mix(in srgb, var(--c-cyan) 84%, var(--c-ink));
  --color-secondary: var(--c-paper);
  --color-on-secondary: var(--c-ink);
  --color-secondary-hover: var(--c-ink);
  --color-on-secondary-hover: var(--c-paper);
  --color-secondary-active: color-mix(in srgb, var(--c-ink) 85%, var(--c-paper));
  --color-label: var(--c-purple);
  --color-link: color-mix(in srgb, var(--c-blue) 88%, var(--c-ink)); /* 5.6:1 on white */
  --color-link-hover: var(--c-ink);
  --color-border: color-mix(in srgb, var(--c-ink) 16%, transparent);
  --color-border-strong: color-mix(in srgb, var(--c-ink) 45%, var(--c-paper));
  --color-rule: color-mix(in srgb, var(--c-ink) 16%, transparent);
  --color-focus: var(--c-ink);
  --color-focus-on-band: var(--c-paper);
  --color-error: var(--c-red);
  --color-success: var(--c-ink);
  --color-panel: var(--c-lilac);
  --color-tile: var(--c-ink);
  --color-card: var(--c-paper);
  --color-mark: var(--c-cyan);                                                  /* the cyan underline under "Everything" */
  --color-rule-on-band: color-mix(in srgb, var(--c-paper) 24%, transparent);
  --color-header-rule: color-mix(in srgb, var(--c-paper) 16%, transparent);
  --color-highlight: var(--c-yellow);
  --color-review: var(--c-purple);
  --shadow-header: 0 2px 10px rgb(0 0 0 / 0.18);
  --shadow-menu: 0 12px 24px rgb(0 0 0 / 0.22);
  --shadow-card: 0 10px 28px rgb(43 45 66 / 0.18);

  /* ---- Type (audit section 5; phone value at 390 px, desktop value from 1200 px up) */
  --fs-display: clamp(5.3125rem, 2.0625rem + 13.3333vw, 14.0625rem); /* home H1 85 -> 225 px (live hero line, MIG-WO-5b) */
  --lh-display: 0.9;                                                 /* live 90% */
  --fs-h2: clamp(3.25rem, 2.1357rem + 4.5714vw, 6.25rem);          /* 52 -> 100 px (live 60/65 -> 100; phone 52 so the longest word fits) */
  --lh-h2: 0.9;                                                      /* live 90% */
  --fs-h3: clamp(3rem, 2.4429rem + 2.2857vw, 4.5rem);              /* 48 -> 72 px (live workshop titles, Druk XCond) */
  --lh-h3: 0.95;
  --fs-lead: clamp(1.1875rem, 1.0714rem + 0.4762vw, 1.5rem);       /* 19 -> 24 px (live "xl") */
  --lh-lead: 1.4;                                                    /* live 140% */
  --fs-body: clamp(1.0625rem, 0.9929rem + 0.2857vw, 1.25rem);      /* 17 -> 20 px (live "lg") */
  --lh-body: 1.4;                                                    /* live 140% */
  --fs-small: 0.875rem;  /* 14 px */
  --lh-small: 1.3125rem; /* 21 px */
  --fs-ui: clamp(1rem, 0.9071rem + 0.381vw, 1.125rem); /* buttons 16 -> 18 px (live pills) */
  --lh-ui: 1.5rem;       /* 24 px */
  --lh-heading: 1.1;
  --measure: 66ch;
  --measure-lead: 52ch;

  /* ---- Buttons, headings, links ---------------------------------------- */
  --btn-height: 3rem;    /* 48 px (live pills were about 54; checklist E1 asks 44 to 48) */
  --btn-radius: 2rem;    /* pill: live buttons are pills (999 px); 2 rem is round at 48 px */
  --btn-pad-x: 1.5rem;   /* 24 px (live) */
  --heading-weight: 900;
  --heading-transform: uppercase;
  --heading-tracking: 0.01em;
  --ui-transform: none;
  --ui-tracking: 0em;
  --link-decoration: underline;

  /* ---- Fonts ------------------------------------------------------------ */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Druk Super", "Arial Black", Impact, sans-serif;    /* H2 (live section titles) */
  --font-condensed: "Druk", Impact, "Arial Narrow", sans-serif;      /* H1 and H3 (live hero line, workshop titles) */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, monospace;

  /* ---- Scales (8, 16, 24, 32, 48, 64, 96) ------------------------------- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --section-pad: clamp(3.5rem, 2.537rem + 3.9506vw, 6.5rem);  /* large: 56 -> 104 px */
  --section-pad-md: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);      /* medium: 40 -> 64 px */
  /* Site width: Porch Core Layout settings (PORCH-WO-59; MIG-WO-5c values). Design → Global "Page width style"
     (Wide = 90% of the window, no cap, as live Total), "Page width (largest)" (the Fixed cap: 81rem = 1296 px),
     "Page width (share of window)", "Side margin"; Design → Header & Menu "Header edge" (window: the bar is the
     window minus 30 px each side from 960 px up, as live) and "Header edge space". Porch Core prints new values of
     --porch-page-width and --porch-header-inset only when a Layout value changes; the two below are the defaults. */
  --page-width-mode: fluid;
  --content-width: 81rem;   /* 1296 px: the cap when Page width style is Fixed */
  --content-fluid: 90%;     /* live Total container */
  --text-width: 47.5rem;    /* 760 px */
  --gutter: clamp(1.25rem, 5vw, 10rem); /* 5% of the window: 20 px phone floor, live 96 px at 1920, 128 at 2560; stops at 160 px (3200 px window) */
  --header-edge: window;
  --header-gutter: 1.875rem; /* 30 px: live header inner box is the window minus 30 px each side from 960 px up */
  --porch-page-width: min(100% - 2 * var(--gutter), var(--content-fluid));
  --porch-header-inset: var(--header-gutter);
  /* The space beside the page (bands and title bars pad to the page edge); follows --porch-page-width. */
  --page-inset: calc((100% - var(--porch-page-width, min(100% - 2 * var(--gutter), var(--content-fluid)))) / 2);
  --radius: 0.375rem;       /* one radius, whole site: 6 px */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 6.25rem; /* 100 px (live); 88 px phone (site.css) */

  /* ---- Form controls: one shared set (PORCH_RULES "Form controls match") */
  --porch-control-height: 3rem;  /* 48 px; live fields were 40 px white boxes with no border */
  --porch-control-pad-x: 1rem;
  --porch-control-border: 1px solid var(--color-border-strong);
  --porch-control-radius: var(--radius);
  --porch-control-bg: var(--c-paper);
  --porch-control-font: 400 1rem/1.4 var(--font-body);
  --porch-control-color: var(--color-text-1);
  --porch-control-placeholder: var(--color-text-3);
  --field-padding-x: var(--porch-control-pad-x);
  --select-chevron-size: 0.4rem;
  --select-chevron-gap: 0.5rem;
}
