/* ============================================================================
   Dream Home Playbook — design system "Dossier d'architecte".
   The site is an architect's preparation dossier: drafting paper, blueprint
   lines, dimension annotations, mono CAD-style labels. Every token is chosen
   for that world, not a generic template.
   ============================================================================ */

/* Display — architectural signage grotesque. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-var.woff2") format("woff2");
}

/* Body — technical-humanist, handles French accents cleanly. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-var.woff2") format("woff2-variations"),
       url("/assets/fonts/plex-sans-var.woff2") format("woff2");
}

/* Mono — the technical voice: eyebrows, dimensions, m², price, data. */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-600.woff2") format("woff2");
}

:root {
  /* ---- Color: the drafting table ---- */
  --ink: #17283b;            /* drafting ink blue-black — text, structure */
  --ink-soft: #566475;       /* muted blue-grey — secondary text */
  --paper: #f1eee4;          /* warm drafting paper — base background */
  --paper-panel: #e9e5d8;    /* vellum panel — alternating sections */
  --white: #fcfbf7;          /* card surface — paper, a shade brighter */

  --blueprint: #235a84;      /* blueprint blue — primary accent, links, structure */
  --blueprint-deep: #14314a; /* deep blueprint — dark section ground, hovers */
  --blueprint-wash: rgba(35, 90, 132, 0.08);
  --cyan-line: rgba(160, 205, 232, 0.28); /* grid lines on the dark blueprint section */

  --redline: #c1432e;        /* architect's redline red — sparing: price, urgency */
  --redline-soft: rgba(193, 67, 46, 0.1);

  --line: #cbc5b4;           /* warm hairline — rules, grid, borders */
  --line-strong: #b4ad99;    /* stronger hairline — titleblock borders */

  /* Backwards-compat aliases (older partials still reference these names) */
  --primary: var(--blueprint);
  --primary-hover: var(--blueprint-deep);
  --title: var(--ink);
  --body-text: var(--ink-soft);
  --bg-light: var(--paper-panel);
  --bg-white: var(--paper);
  --bg-dark: var(--blueprint-deep);
  --border-light: var(--line);
  --danger: var(--redline);
  --success: #2f7d5b;
  --rgba-primary-1: var(--blueprint-wash);

  /* ---- Type ---- */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-family-base: var(--font-body);
  --font-family-title: var(--font-display);

  /* fluid display scale */
  --fs-hero: clamp(2.6rem, 1.4rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem);
  --fs-h3: 1.3rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.75rem;   /* mono eyebrows / sheet numbers */

  /* ---- Radius: drafting is sharp. Barely-there. ---- */
  --radius-base: 2px;
  --radius-card: 3px;

  /* ---- Spacing (8-based, named) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-section-sm: 72px;
  --space-section: 104px;
  --space-section-lg: 128px;

  /* ---- Lines & shadows: drafting, not glossy ---- */
  --hair: 1px solid var(--line);
  --keyline: 1.5px solid var(--ink);
  --shadow-soft: 0 18px 40px -28px rgba(23, 40, 59, 0.55);
  --shadow-lift: 0 26px 55px -30px rgba(23, 40, 59, 0.6);

  --container-max: 1180px;
}
