/* Genova design tokens: the single source for colour, type, spacing and radius.
 *
 * Spacing: 8pt grid. Values above 16px are multiples of 8; 4 and 12 are the only
 * half-steps, for tight component internals. Margin, padding and gap always use a
 * --sp-* token or a rhythm role below, never a raw px value.
 *
 * Radius: four steps. Nested surfaces follow the concentric rule:
 *   inner radius = outer radius − gap (padding + border)
 * Flush children (gap 0) share the outer radius on the touching corners. When the gap
 * is larger than the outer radius, the inner element keeps its own smaller token.
 */
:root {
  /* ---------- Colour ---------- */
  --cream: #f5f2ea;      /* page canvas */
  --white: #ffffff;      /* alternate band, cards */
  --ink: #21241e;        /* headings, darkest band */
  --forest: #384136;     /* primary button, enquiry + CTA bands */
  --forest-soft: #4a5147;
  --clay: #8e382a;       /* accent: eyebrows, primary CTA, case band */
  --clay-deep: #6f2c20;
  --gold: #a98a4b;       /* brass: hairlines, rules, text on ink */
  --gold-text: #826a3a;  /* brass for small text on light grounds (WCAG AA 4.6:1 on cream) */

  --ink-80: #4b4d46;     /* ink pre-mixed on cream */
  --ink-60: #6d6e68;     /* lightest text grey that passes WCAG AA on cream */
  --ink-40: #a09f98;
  --ink-30: #b4b3ac;
  --hairline: #e6e2d8;
  --chip: #e9e6de;
  --card-tint: #f8f6f0;

  --on-dark: #f5f2ea;
  --on-dark-dim: #d3d0c6;

  /* Semantic: form feedback (desaturated so they never compete with clay) */
  --error: #a5482f;
  --error-bg: #f4e1da;
  --success-bg: #e6ebe0;
  --placeholder-bg: #3a2c20;  /* photo-pending blocks only */

  /* ---------- Type ---------- */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tracking: 0.165em;

  /* ---------- Spacing (8pt grid) ---------- */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-56: 56px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;

  /* Rhythm roles: change these, not individual sections */
  --gutter: var(--sp-64);          /* page side padding, every page */
  --section-y: var(--sp-96);       /* top + bottom padding of every section */
  --band-y: var(--sp-80);          /* compact bands: stats, CTA */
  --head-gap: var(--sp-48);        /* section head → section content */
  --block-gap: var(--sp-64);       /* between two content blocks in one section */
  --grid-gap: var(--sp-24);        /* between cards in a grid */
  --col-gap: var(--sp-64);         /* between the columns of a split layout */
  --card-pad: var(--sp-32);        /* text cards */
  --card-body-pad: var(--sp-24);   /* body under a card photo */

  /* ---------- Radius ---------- */
  --radius-control: 4px;   /* buttons, inputs, small boxes */
  --radius-card: 8px;      /* cards, photos, panels inside a band */
  --radius-panel: 16px;    /* dialogs, large floating panels */
  --radius-pill: 999px;    /* pills, badges, chips */

  /* ---------- Sizes ---------- */
  --control-h: 48px;
  --control-h-sm: 40px;
  --nav-h: 80px;
  --page-max: 1440px;

  --shadow-card: 0 8px 24px rgba(33, 36, 30, 0.09);
  --shadow-card-hover: 0 16px 32px rgba(33, 36, 30, 0.14);
}

@media (max-width: 1200px) {
  :root { --gutter: var(--sp-40); --col-gap: var(--sp-48); }
}
@media (max-width: 960px) {
  :root { --section-y: var(--sp-80); --band-y: var(--sp-64); --head-gap: var(--sp-40); --block-gap: var(--sp-48); }
}
@media (max-width: 640px) {
  :root {
    --gutter: var(--sp-24);
    --section-y: var(--sp-64);
    --band-y: var(--sp-56);
    --head-gap: var(--sp-32);
    --block-gap: var(--sp-40);
    --grid-gap: var(--sp-16);
    --card-pad: var(--sp-24);
    --nav-h: 72px;
  }
}
