/* ==========================================================================
   Design tokens: the one place to change how the site looks.

   1. Fonts       change the @import and the two --font-* tokens together
   2. Palette     raw colours, used only by the roles below
   3. Colour roles what components use; point a role at a different palette colour to restyle
   4. Type scale  sizes, weights, tracking, leading
   5. Space, layout, shape, motion

   site.css never uses a raw value: every colour, font, size, gap, radius and
   duration there is a var() from this file. Translucent shades are mixed from
   the roles with color-mix(), so they follow when a role changes.
   ========================================================================== */

/* 1. Fonts -------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Jost:wght@400;500&display=swap");

:root {
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* 2. Palette ---------------------------------------------------------- */
  --palette-linen-100: #f7f3ed;
  --palette-linen-200: #efe8de;
  --palette-linen-300: #e4dacc;
  --palette-white: #ffffff;
  --palette-espresso-900: #1f1c19;
  --palette-espresso-700: #3d3731;
  --palette-taupe-500: #756b61;
  --palette-clay-500: #8f4f35;
  --palette-clay-300: #d9a88f;
  --palette-red-600: #a3362b;
  --palette-red-800: #7d2a21;

  /* 3. Colour roles ----------------------------------------------------- */
  /* Light surfaces */
  --color-bg: var(--palette-linen-100);            /* page */
  --color-surface: var(--palette-linen-200);       /* tinted sections, cards, the form's side panel */
  --color-surface-strong: var(--palette-linen-300);/* photo backgrounds, progress track */
  --color-field: var(--palette-white);             /* inputs and the picked answer tile */
  --color-glass: color-mix(in srgb, var(--color-bg) 90%, transparent); /* header and phone bar */

  /* Text and lines on light surfaces */
  --color-text: var(--palette-espresso-900);
  --color-text-soft: var(--palette-espresso-700);  /* ledes and body copy that sits back a little */
  --color-text-muted: var(--palette-taupe-500);    /* labels, captions, hints */
  --color-border: color-mix(in srgb, var(--color-text) 14%, transparent);
  --color-border-strong: color-mix(in srgb, var(--color-text) 45%, transparent);

  /* Actions and accents */
  --color-action: var(--color-text);               /* primary button fill */
  --color-action-text: var(--color-bg);            /* text on the primary button */
  --color-accent: var(--palette-clay-500);         /* hover, focus ring, numbers, stars, the draft banner */
  --color-accent-text: var(--color-bg);            /* text on the accent */

  /* Dark sections: process band and footer */
  --color-inverse-bg: var(--palette-espresso-900);
  --color-inverse-text: var(--palette-linen-100);
  --color-inverse-muted: color-mix(in srgb, var(--color-inverse-text) 62%, transparent);
  --color-inverse-border: color-mix(in srgb, var(--color-inverse-text) 18%, transparent);
  --color-inverse-accent: var(--palette-clay-300);

  /* Feedback */
  --color-error: var(--palette-red-600);
  --color-error-text: var(--palette-red-800);
  --color-error-bg: color-mix(in srgb, var(--color-error) 8%, transparent);

  /* Draft placeholders (only while <body class="draft">) */
  --color-fill-bg: color-mix(in srgb, var(--color-accent) 12%, transparent);
  --color-fill-line: color-mix(in srgb, var(--color-accent) 55%, transparent);

  /* 4. Type scale ------------------------------------------------------- */
  --weight-regular: 400;
  --weight-medium: 500;

  --text-display-1: clamp(2.9rem, 6.4vw, 5.9rem);  /* page titles */
  --text-display-2: clamp(2.3rem, 4.4vw, 3.9rem);  /* section titles */
  --text-display-3: clamp(1.9rem, 3.2vw, 2.9rem);  /* form steps, callouts, pull quotes */
  --text-display-4: clamp(1.6rem, 2.4vw, 2.1rem);  /* card and block titles */
  --text-display-5: 1.65rem;                       /* small serif titles */
  --text-quote: 1.3rem;                            /* review text */
  --text-lede: clamp(1.08rem, 1.5vw, 1.22rem);
  --text-body: 1.0625rem;                          /* 17px */
  --text-small: 0.94rem;
  --text-xsmall: 0.86rem;
  --text-label: 0.78rem;                           /* uppercase labels, buttons, nav */
  --text-label-small: 0.7rem;                      /* tags, eyebrows, captions */

  --tracking-display: -0.01em;
  --tracking-label: 0.16em;
  --tracking-label-wide: 0.2em;

  --leading-display: 1.06;
  --leading-snug: 1.3;
  --leading-body: 1.65;

  /* 5. Space ------------------------------------------------------------ */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 20px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 56px;
  --space-4xl: 72px;
  --space-section: clamp(72px, 11vw, 152px);      /* between page sections */
  --space-block: clamp(40px, 5vw, 64px);          /* between a section title and its content */
  --space-gutter-grid: clamp(20px, 2.6vw, 36px);  /* between cards */
  --space-split: clamp(40px, 7vw, 112px);         /* between a picture and its text */

  /* Layout */
  --layout-max: 1240px;
  --layout-gutter: clamp(20px, 4vw, 48px);
  --header-height: 80px;

  /* Shape */
  --radius-control: 2px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px 0 0;
  --border-width: 1px;
  --control-height: 52px;
  --control-height-small: 44px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.3s;
  --duration-slow: 0.9s;

  /* Placeholder photo tones (draft only; real photos replace these) */
  --slot-sand-wall: #e2d5c0;  --slot-sand-floor: #c4ad8d;  --slot-sand-light: #f4ecdf;
  --slot-clay-wall: #dcc1ad;  --slot-clay-floor: #b78d72;  --slot-clay-light: #f1e2d5;
  --slot-sage-wall: #c9cbb8;  --slot-sage-floor: #9fa48c;  --slot-sage-light: #e7e8dc;
  --slot-stone-wall: #d9d3ca; --slot-stone-floor: #aaa196; --slot-stone-light: #f0ece6;
  --slot-ink-wall: #8e877e;   --slot-ink-floor: #5f5a54;   --slot-ink-light: #b9b2a8;
}
