/* Design tokens: the only source of colors, type, spacing and corners.
   Kit: the v8-1 look (design/directions-v8/1.html, picked 2026-11-25): stone ground, slate panels, ink text,
   teal = Angel's side (guide buttons), sage = the homeowner's side (Send, picked chips), blue-grey accent for links and focus.
   Rules and contrast table: design/system.md
   Fonts: self-hosted from src/fonts (copied to /fonts); @font-face is at the top of src/site.css, preload links are in build/build.mjs layoutRaw().
   Headings and wordmark: Source Serif 4 400/500. Everything else: Public Sans 400/500/600.
   The legacy names (--ground, --band, --dark, --gold ...) stay so the pages not yet redone keep rendering; they point at the new values.
*/

:root {
  /* Brand variables: never bake these into images or layout.
     Markup carries data-brand="name" | "logo" | "domain"; swap here + those hooks on rename.
     build.mjs reads --brand-name and --brand-domain from this file: keep both names. */
  --brand-name: "Sell Your Homez";
  --brand-domain: "sellyourhomez.com";
  --brand-logo: url("/assets/logo.svg"); /* placeholder path until the logo file exists */

  /* v8-1 palette */
  --stone: #E3E2DF;           /* page ground */
  --stone-2: #D9D7D3;
  --line: #CFCDC8;            /* hairlines on stone */
  --sheet: #F5F5F3;           /* cards, raised areas */
  --white: #FFFFFF;
  --ink: #16181B;             /* headings, wordmark */
  --ink-2: #464B52;           /* secondary text 7:1 on stone */
  --slate: #2E3740;           /* dark areas: footer, panels */
  --slate-2: #3A444E;
  --on-slate: #F1F2F3;        /* text on slate 10.8:1 */
  --on-slate-2: #C3C9D0;      /* secondary text on slate 7.3:1 */
  --error-on-slate: #F4A9A3;  /* error text and border on slate, 6.4:1 */
  --on-slate-teal: #8FD0C9;   /* light teal on slate 6.9:1: emphasis words, never a button */
  --on-slate-line: rgba(255,255,255,.14); /* hairlines on slate */
  --accent: #4E5E70;          /* focus ring, selection */
  --accent-soft: #D5DBE2;
  --accent-deep: #3B4856;     /* link text */
  --teal: #1F6B66;            /* Angel's side: guide buttons. White on teal 6.3:1 */
  --teal-press: #195954;
  --teal-ink: #17524E;
  --teal-wash: #DDE9E7;
  --sage: #5E7354;            /* the homeowner's side: Send, picked chips. White on sage 5.2:1 */
  --sage-press: #4F6247;
  --sage-ink: #4A5C42;
  --sage-wash: #DCE3D6;
  --field-border: #7A7873;    /* fields and checkboxes: 3:1 on stone and white */
  --sage-wash-2: #CFD9C8;     /* chip hover */
  --sage-edge: #8FA084;       /* chip border */
  --sage-edge-2: #B9C5B1;     /* the homeowner's bubble border */
  --edge: #D6D4CF;            /* card border */
  --hair: #E3E1DD;            /* hairlines inside cards */
  --track: #E2E0DC;           /* step track, "sell" pill */
  --track-past: #B9B7B2;
  --slate-3: #232A31;         /* tab strip on slate */
  --on-teal-2: #E8F1EF;       /* secondary text on teal */
  --avatar-ring: rgba(255,255,255,.33); /* avatar ring: Angel's photo on teal and on slate */
  --shadow-ink-15: rgba(22,24,27,.15); /* soft drop-shadow under the letter pictures */
  --error: #A8281F;           /* error text and error field border */

  /* Legacy names (Direction A) mapped to the new look: no gold text, no Caslon anywhere */
  --ground: var(--stone);
  /* Options hub (R2-03) page-level colours. Where an existing token matches, it is reused. */
  --card-border: var(--hair);                                 /* card edge on stone (comp: line 55% + sheet; --hair is within 3 units) */
  --fit-border: var(--sage-edge);                             /* "Tends to fit" button edge (comp: sage 65% + white) */
  --sage-wash-hover: var(--sage-wash-2);                      /* hover on the sage-wash fit button */
  --on-slate-outline: color-mix(in srgb, var(--on-slate-2) 70%, var(--slate)); /* outline button edge on slate: 3:1 against slate */
  --nav-hover: color-mix(in srgb, var(--ink) 5%, transparent);
  --dock-bg: color-mix(in srgb, var(--sheet) 93%, transparent); /* phone dock, frosted */
  --top-frost: color-mix(in srgb, var(--stone) 92%, transparent); /* sticky header, frosted */
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); /* drawn down arrow for a select (same ink as --ink; the hex %2316181B inside must change if --ink changes) */
  --band: var(--sheet);
  --dark: var(--slate);
  --text: var(--ink);
  --muted: var(--ink-2);
  --gold-text: var(--accent-deep);   /* numerals, flags */
  --gold: var(--accent);             /* decoration only: rules, underlines */
  --rule: var(--line);
  --rule-on-dark: var(--on-slate-line);
  --on-dark: var(--on-slate);
  --on-dark-muted: var(--on-slate-2);
  --on-dark-hover: var(--white);
  --on-dark-wash: rgba(255,255,255,.1);
  --btn: var(--teal);
  --btn-text: var(--white);
  --btn-hover: var(--teal-press);

  /* Type */
  --font-display: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Public Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --h1-size: clamp(1.875rem, 8.2vw, 2.875rem); --h1-lh: 1.14;  /* 30 to 46px, weight 400 */
  --h2-size: clamp(1.6875rem, 6.6vw, 2.25rem); --h2-lh: 1.15;  /* 27 to 36px */
  --h3-size: 1.5rem;         --h3-lh: 1.2;       /* 24px: ledger links, note headings */
  --lede-size: 1.1875rem;    --lede-lh: 1.6;     /* 19px */
  --body-size: 1.125rem;     --body-lh: 1.55;    /* 18px minimum */
  --small-size: 1.0625rem;   --small-lh: 1.5;    /* 17px: disclaimer, reassurance, footer */
  --caption-size: 1rem;                          /* 16px: plate captions, flags. Never smaller */
  --button-size: 1.0625rem;  --button-weight: 600; /* 17px */
  --button-sm-size: 1.0625rem;                   /* 17px: small and header buttons, menu */
  --name-size: 1.375rem;                         /* 22px: wordmark, signoff name, FAQ question */
  --name-sm-size: 1.25rem;                       /* 20px: wordmark on narrow phones */
  --hero-sm-size: 1.875rem;                      /* 30px: home hero heading on phones */
  --cover-title-size: clamp(1.75rem, 4vw, 2.1rem); /* guide cover title */
  --footer-mark-size: 1.375rem;                  /* 22px: footer wordmark */
  --heading-tracking: -0.01em;
  --measure: 36em;
  --measure-legal: 72ch;     /* footer legal lines */

  /* Spacing (4px base) */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --section-y: 5rem;   /* 80 */

  /* Layout */
  --wrap: 1120px;      /* content width (.wrap adds the gutters) */
  --gutter: 16px;      /* phones; site.css sets 32px from 720px */
  --header-h: 70px;    /* sticky header height */
  --dock-h: 72px;      /* phone dock: 10px gap + 62px bar */

  /* Corners */
  --radius: 10px;      /* fields, small images */
  --r-sm: 4px;         /* check boxes, bubble tails, drawn paper */
  --r: 14px;           /* cards */
  --r-lg: 20px;        /* panels, portraits */
  --radius-pill: 999px; /* buttons, chips, dock */

  /* Shadow and motion */
  --sh: 0 1px 2px #16181b14, 0 8px 24px -10px #16181b2e;
  --sh-lift: 0 2px 4px #16181b10, 0 24px 48px -20px #16181b47;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Focus: accent on stone and white, light on slate (set on .on-dark and the footer) */
  --focus-width: 3px;
  --focus-offset: 3px;
  --focus-color: var(--accent);
  --focus-on-slate: var(--on-slate);

  /* Buttons */
  --btn-height: 52px;
  --btn-pad-x: 22px;
  --tap-min: 44px;
}
