/* Design tokens: the PorchOS token contract (DECISIONS #77), set to the Price Skin Care Clinic brand (MIG-WO-14,
   refresh about 3). Brand source: the live Total child theme SkinCare (theme mods and computed styles, read on the
   local copy on 29 November 2026; refs/priceskincareclinic/pre-build-audit.md section 3): header slate #566068 with
   white menu, accent teal #236b87 (buttons, links), page-title band beige #ece2dd with title #231d1b, footer and dark
   band brown #231d1b, testimonial band #262626, FAQ band grey #eaeaea, pale slate panel #d0d8da, white top bar.
   Fonts: Quicksand (headings, as live, self-hosted, OFL) and the live system UI stack for body text.
   Contrast (WCAG 2.2 AA): white on the header slate 6.5:1; white on the teal 6.1:1; body text on white 11.6:1;
   title on the beige band 13.9:1; white on the brown 17:1; small grey on white 5.6:1.
   - 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: "Quicksand";
  src: url("fonts/quicksand-latin-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Palette ---------------------------------------------------------- */
  --c-paper: #ffffff;
  --c-ink: #231d1b;        /* headings, page title, footer (live) */
  --c-text: #36312f;       /* body text (live black at 15 px; a warm near-black here) */
  --c-stone: #665f5c;      /* small grey text, 5.6:1 on white */
  --c-black: #000000;
  --c-slate: #566068;      /* header (live) */
  --c-slate-pale: #d0d8da; /* pale slate panel (live hours column) */
  --c-slate-tint: #eef1f2; /* pale slate tint (form panel) */
  --c-teal: #236b87;       /* accent (live) */
  --c-teal-deep: #1a5368;  /* hover, focus on light grounds */
  --c-beige: #ece2dd;      /* page-title band (live) */
  --c-beige-tint: #f6f1ee; /* pale beige band (live grey FAQ rows, a tint of the brand beige) */
  --c-brown: #231d1b;      /* dark band, footer (live) */
  --c-night: #262626;      /* testimonial band (live) */
  --c-mauve: #825d4b;      /* hero photo layer (live overlay colour) */
  --c-focus-dark: #9fd3e6; /* focus ring on dark grounds */
  --c-red: #b3261e;        /* form errors */

  /* ---- Roles ------------------------------------------------------------ */
  --color-surface-1: var(--c-paper);
  --color-surface-2: var(--c-beige-tint);
  --color-surface-3: var(--c-brown);
  --color-text-1: var(--c-ink);
  --color-text-2: var(--c-text);
  --color-text-3: var(--c-stone);
  --color-accent: var(--c-teal);
  --color-on-accent: var(--c-paper);
  --color-accent-hover: var(--c-teal-deep);
  --color-accent-active: color-mix(in srgb, var(--c-teal-deep) 85%, var(--c-black));
  --color-brand: var(--c-teal);
  --color-link: var(--c-teal);
  --color-link-hover: var(--c-teal-deep);
  --color-border: color-mix(in srgb, var(--c-ink) 14%, transparent);
  --color-border-strong: color-mix(in srgb, var(--c-ink) 45%, var(--c-paper));
  --color-rule: color-mix(in srgb, var(--c-ink) 12%, transparent);
  --color-focus: var(--c-teal-deep);
  --color-focus-on-dark: var(--c-focus-dark);
  --color-error: var(--c-red);
  --color-success: var(--c-teal-deep);
  --color-band: var(--c-brown);
  --color-band-2: var(--c-night);
  --color-on-band: var(--c-paper);
  --color-on-band-2: color-mix(in srgb, var(--c-paper) 82%, var(--c-brown));
  --color-rule-on-band: color-mix(in srgb, var(--c-paper) 16%, transparent);
  --color-topbar: var(--c-paper);
  --color-on-topbar: var(--c-black);
  --color-header: var(--c-slate);
  --color-on-header: var(--c-paper);
  --color-header-rule: color-mix(in srgb, var(--c-paper) 18%, transparent);
  --color-title-band: var(--c-beige);
  --color-panel: var(--c-slate-pale);
  --color-panel-soft: var(--c-slate-tint);
  --color-hero-layer: var(--c-mauve);
  --color-overlay-soft: color-mix(in srgb, var(--c-brown) 10%, transparent);
  --shadow-header: 0 2px 12px rgb(20 20 20 / 0.18);
  --shadow-menu: 0 12px 24px rgb(20 20 20 / 0.16);
  --shadow-card: 0 1px 2px rgb(20 20 20 / 0.06);

  /* ---- Fonts ------------------------------------------------------------ */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Quicksand", var(--font-body);
  --font-ui: var(--font-body);

  /* ---- Type (audit section 5; phone value at 390 px, desktop value from 1200 px up) */
  --fs-hero: clamp(1.25rem, 6.4vw, 3rem);                             /* home hero H1: from the screen width (PorchOS rule 12), 20.5 px at 320, 25 px at 390, 48 px from 750 px up; at most 2 lines (PM review, MIG-WO-14) */
  --fs-display: clamp(1.625rem, 1.4531rem + 0.7055vw, 1.875rem);      /* page H1 26 -> 30 px */
  --lh-display: 1.2;
  --fs-display-2: clamp(1.5rem, 1.3281rem + 0.7055vw, 1.75rem);       /* band titles 24 -> 28 px */
  --fs-h2: clamp(1.375rem, 1.2031rem + 0.7055vw, 1.625rem);           /* 22 -> 26 px */
  --lh-h2: 1.25;
  --fs-h3: clamp(1.1875rem, 1.1016rem + 0.3527vw, 1.3125rem);         /* 19 -> 21 px */
  --lh-h3: 1.35;
  --fs-h4: clamp(1.0625rem, 1.0195rem + 0.1764vw, 1.125rem);          /* 17 -> 18 px */
  --fs-lead: clamp(1.125rem, 1.0391rem + 0.3527vw, 1.25rem);          /* 18 -> 20 px */
  --lh-lead: 1.5;
  --fs-body: clamp(1rem, 0.9570rem + 0.1764vw, 1.0625rem);            /* 16 -> 17 px */
  --lh-body: 1.65;
  --fs-small: 0.875rem;  /* 14 px */
  --lh-small: 1.5;
  --fs-ui: 0.9375rem;    /* buttons 15 px */
  --lh-ui: 1.25rem;
  --fs-nav: 0.9375rem;   /* 15 px uppercase (live 16 px Quicksand 500) */
  --fs-topbar: 0.875rem; /* 14 px uppercase bold, as live */
  --lh-heading: 1.25;
  --fw-heading: 600;
  --fw-bold: 700;
  --fw-ui: 600;
  --measure: 72ch;
  --color-type-display: var(--color-text-1);
  --color-type-h2: var(--color-text-1);
  --color-type-h3: var(--color-text-1);
  --color-type-body: var(--color-text-2);
  --color-type-small: var(--color-text-3);

  /* ---- Space (8 px scale) ----------------------------------------------- */
  --space-2xs: 0.25rem;
  --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(2.5rem, 1.6rem + 3.7vw, 4.5rem);   /* 40 -> 72 px */

  /* ---- Layout (live: container 90% of the window, at most 1480 px; kept, first-shot check 7) */
  --container: 92.5rem;        /* 1480 px */
  --container-ratio: 90%;
  --gutter: 5vw;
  --header-h: 5.5rem;          /* 88 px (live 110 px with 80 px logo) */
  --header-h-phone: 4rem;      /* 64 px */
  --logo-h: 3.5rem;            /* 56 px */
  --logo-h-phone: 2.5rem;

  /* ---- Shape and controls (one radius; FORM CONTROLS MATCH, ALWAYS) ---- */
  --radius: 6px;
  --radius-sm: 4px;
  --btn-h: 46px;
  --porch-control-height: 48px;
  --porch-control-pad-y: 0.6rem;
  --porch-control-pad-x: 0.875rem;
  --porch-control-border: 1px solid var(--color-border-strong);
  --porch-control-radius: var(--radius);
  --porch-control-bg: var(--c-paper);
  --porch-control-font-size: 1rem;
  --porch-control-font-weight: 400;
  --porch-control-line-height: 1.5;
  --porch-control-color: var(--color-text-1);
  --porch-control-placeholder: var(--color-text-3);

  /* Motion kit token changes for this site are in site.css (it loads after the kit). */

  /* ---- Buttons, headings, links (shared contract for os-refresh.css and wpbakery.css) */
  --btn-height: 2.875rem; /* 46 px */
  --btn-radius: var(--radius);
  --btn-pad-y: 0.75rem;
  --btn-pad-x: 1.5rem;
  --heading-weight: var(--fw-heading);
  --heading-transform: none;
  --heading-tracking: 0em;
  --ui-transform: none;           /* button labels as typed, as live ("CALL NOW", "Laser Treatments", "Read more") */
  --ui-tracking: 0.04em;
  --link-decoration: none;        /* batch rule: no underlines on links; links use the teal colour and weight */
  --content-width: var(--container);
  --text-width: var(--measure);
  --porch-page-width: min(var(--container), var(--container-ratio));
  --section-pad-md: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);    /* 40 -> 64 px */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --porch-control-font: 400 1rem/1.5 var(--font-body);
  --field-padding-x: var(--porch-control-pad-x);
  --select-chevron-size: 0.4rem;
  --select-chevron-gap: 0.5rem;
}
