/* Produzit — site stylesheet (design-system tokens + components) */
@font-face{font-family:"Space Grotesk";src:url("../fonts/SpaceGrotesk-Light.ttf") format("truetype");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("../fonts/SpaceGrotesk-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("../fonts/SpaceGrotesk-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("../fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url("../fonts/SpaceGrotesk-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Lexend";src:url("../fonts/Lexend-Light.ttf") format("truetype");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Lexend";src:url("../fonts/Lexend-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Lexend";src:url("../fonts/Lexend-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Lexend";src:url("../fonts/Lexend-SemiBold.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Lexend";src:url("../fonts/Lexend-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}

/* ===========================================================================
   PRODUZIT — COLOR TOKENS
   From the brand guide. The brand is calm, structured and process-driven
   (The Sage + The Ruler): warm parchment neutrals, an electric-sapphire
   indigo primary, periwinkle supports, and a deep-navy ink.
   =========================================================================== */

:root {
  /* --- Brand colours (named, straight from the guide) ------------------ */
  --electric-sapphire: #666aff;  /* primary brand accent */
  --periwinkle:        #9497ff;
  --soft-periwinkle:   #c9cbfb;
  --deep-navy:         #000143;
  --parchment:         #f7f4ed;  /* warm page background */
  --alabaster:         #e3e0da;  /* light warm grey */
  --tomato:            #ff5a4e;  /* v2 merkgids: energetic secondary accent */

  /* --- Indigo / sapphire scale (built around #666aff) ------------------ */
  --indigo-950: #000143;  /* deep navy */
  --indigo-900: #0a0d57;
  --indigo-800: #181c84;
  --indigo-700: #2b30b8;
  --indigo-600: #4a4ff0;
  --indigo-500: #666aff;  /* electric sapphire */
  --indigo-400: #8487ff;
  --indigo-300: #9497ff;  /* periwinkle */
  --indigo-200: #c9cbfb;  /* soft periwinkle */
  --indigo-100: #e3e4fb;
  --indigo-50:  #f0f0fe;

  /* --- Warm neutral ladder (parchment -> ink) -------------------------- */
  --ink-950: #1d1e1c;
  --ink-900: #2c2927;
  --ink-800: #3e3e3c;
  --ink-700: #565350;
  --ink-600: #6f6c67;
  --ink-500: #8c8983;
  --ink-400: #a9a69f;
  --ink-300: #c7c4bd;
  --ink-200: #e3e0da;  /* alabaster */
  --ink-150: #ebe9e4;
  --ink-100: #efede8;
  --ink-50:  #f7f4ed;  /* parchment */
  --white:   #ffffff;

  /* --- Functional status (kept muted; not brand colours) --------------- */
  --green-600: #1f9d63;
  --green-100: #d8f0e3;
  --red-600:   #d6453f;
  --red-100:   #fbe1e0;
  --amber-600: #c98a16;
  --amber-100: #f6eccf;

  /* =====================================================================
     SEMANTIC ALIASES — reference these in components, not the raw scales.
     ===================================================================== */

  /* Surfaces & backgrounds */
  --bg-page:        var(--parchment);
  --bg-subtle:      var(--ink-100);
  --bg-inverse:     var(--deep-navy);
  --surface-card:   var(--white);
  --surface-raised: var(--white);
  --surface-sunken: var(--parchment);

  /* Text */
  --text-strong:  var(--deep-navy);
  --text-body:    var(--ink-800);
  --text-muted:   var(--ink-600);
  --text-faint:   var(--ink-500);
  --text-inverse: var(--white);
  --text-link:    var(--indigo-600);

  /* Borders / lines */
  --border-subtle:  var(--ink-150);
  --border-default: var(--ink-200);
  --border-strong:  var(--ink-300);
  --border-ink:     var(--deep-navy);

  /* Brand / interactive */
  --accent:        var(--electric-sapphire);
  --accent-hover:  var(--indigo-600);
  --accent-active: var(--indigo-700);
  --accent-soft:   var(--indigo-50);
  --accent-text:   var(--indigo-700);
  --signal:        var(--electric-sapphire);
  --signal-hover:  var(--indigo-600);
  --signal-soft:   var(--indigo-50);

  /* Tomato — secondary brand accent (v2). Use sparingly for emphasis/alt-CTA,
     never as a full replacement for the sapphire primary. */
  --accent-secondary:      var(--tomato);
  --accent-secondary-hover:#e6473c;
  --accent-secondary-soft: #ffe6e2;

  /* Status semantics */
  --success:      var(--green-600);
  --success-soft: var(--green-100);
  --danger:       var(--red-600);
  --danger-soft:  var(--red-100);
  --warning:      var(--amber-600);
  --warning-soft: var(--amber-100);
  --info:         var(--indigo-500);
  --info-soft:    var(--indigo-100);

  /* Frame grid line (faint periwinkle, used on navy ink surfaces) */
  --frame-line: rgba(148, 151, 255, 0.16);
}

/* ===========================================================================
   PRODUZIT — TYPOGRAPHY TOKENS (v2 merkgids)
   Headline: Space Grotesk — one display/heading face, light for hero
   statements, medium/semibold for smaller headings.
   Body:     Lexend (designed for calm readability — "rust en overzicht")
   =========================================================================== */

:root {
  /* --- Families -------------------------------------------------------- */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-sans:    "Lexend", system-ui, -apple-system, sans-serif;
  /* Label/eyebrow face — Lexend tracked uppercase (no mono; brand is calm,
     process-driven, not technical). Kept as a token for legacy specimens. */
  --font-mono:    "Lexend", ui-monospace, monospace;

  /* --- Weights --------------------------------------------------------- */
  --weight-thin:     200;
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* --- Type scale (rem, 16px base) ------------------------------------- */
  --text-display-2xl: 4.5rem;   /* 72 — hero */
  --text-display-xl:  3.5rem;   /* 56 */
  --text-display-lg:  2.75rem;  /* 44 */
  --text-display-md:  2rem;     /* 32 — section heads */
  --text-display-sm:  1.5rem;   /* 24 */
  --text-body-lg:     1.125rem; /* 18 — lede */
  --text-body:        1rem;     /* 16 */
  --text-body-sm:     0.875rem; /* 14 */
  --text-caption:     0.75rem;  /* 12 */
  --text-overline:    0.6875rem;/* 11 — eyebrow labels */

  /* --- Line heights ---------------------------------------------------- */
  --leading-tight:   1.05;
  --leading-snug:    1.15;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  /* --- Letter spacing -------------------------------------------------- */
  --tracking-tighter: -0.03em;
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-overline:0.18em;  /* eyebrows / overlines */
}

/* ===========================================================================
   PRODUZE — SPACING, RADII & LAYOUT TOKENS
   4px base grid. Sharp, precise radii (engineering, not soft consumer).
   =========================================================================== */

:root {
  /* --- Spacing scale (4px base) ---------------------------------------- */
  --space-0:  0;
  --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:  2.5rem;   /* 40 */
  --space-8:  3rem;     /* 48 */
  --space-10: 4rem;     /* 64 */
  --space-12: 5rem;     /* 80 */
  --space-16: 7.5rem;   /* 120 */

  /* --- Radii (sharp / precise) ----------------------------------------- */
  --radius-none: 0;
  --radius-sm:   3px;
  --radius-md:   5px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-pill: 999px;

  /* --- Borders --------------------------------------------------------- */
  --border-hairline: 1px;
  --border-thick:    2px;

  /* --- Layout ---------------------------------------------------------- */
  --container-max:   1200px;
  --container-wide:  1320px;
  --container-prose: 680px;
  --gutter:          var(--space-5);
}

/* ===========================================================================
   PRODUZIT — EFFECTS: shadows, transitions, gradients, textures
   Calm and soft-but-precise. Shadows tinted with navy, low spread.
   =========================================================================== */

:root {
  /* --- Elevation shadows (navy-tinted) --------------------------------- */
  --shadow-xs: 0 1px 2px rgba(0, 1, 61, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 1, 61, 0.05), 0 2px 4px rgba(0, 1, 61, 0.04);
  --shadow-md: 0 2px 4px rgba(0, 1, 61, 0.05), 0 6px 16px rgba(0, 1, 61, 0.07);
  --shadow-lg: 0 8px 24px rgba(0, 1, 61, 0.10), 0 2px 6px rgba(0, 1, 61, 0.06);
  --shadow-xl: 0 24px 56px rgba(0, 1, 61, 0.16), 0 4px 12px rgba(0, 1, 61, 0.08);

  /* Focus ring (keyboard) */
  --ring: 0 0 0 3px rgba(102, 106, 255, 0.32);
  --ring-signal: 0 0 0 3px rgba(102, 106, 255, 0.32);

  /* Inset hairline used on raised cards for crispness */
  --inset-hairline: inset 0 0 0 1px rgba(0, 1, 61, 0.04);

  /* --- Motion (calm, no bounce) ---------------------------------------- */
  --ease-out:   cubic-bezier(0.2, 0.7, 0.2, 1);   /* @kind other */
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);   /* @kind other */
  --dur-fast:   140ms;                            /* @kind other */
  --dur-base:   240ms;                            /* @kind other */
  --dur-slow:   420ms;                            /* @kind other */

  /* --- Gradients & textures -------------------------------------------- */
  --grad-ink:   linear-gradient(160deg, var(--indigo-900) 0%, var(--deep-navy) 100%);
  --grad-brand: linear-gradient(155deg, var(--indigo-600) 0%, var(--deep-navy) 100%);

  /* Frame grid texture — apply as background on a deep-navy ink surface */
  --texture-grid:
    linear-gradient(var(--frame-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--frame-line) 1px, transparent 1px);
  --texture-grid-size: 32px 32px;
}

/* ===========================================================================
   PRODUZIT — BASE / RESET
   Lightweight element defaults + a few utility primitives.
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

button { font-family: inherit; }

::selection { background: var(--soft-periwinkle); color: var(--deep-navy); }

/* --- Eyebrow / overline label --------------------------------------- */
.ds-overline {
  font-family: var(--font-mono);
  font-size: var(--text-overline);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--accent-text);
}

/* --- Component interaction states (hover/press/focus) ---------------- */
.pz-button:focus-visible { outline: none; box-shadow: var(--ring); }
.pz-button[data-variant="primary"]:hover:not(:disabled)   { background: var(--accent-hover); border-color: var(--accent-hover); }
.pz-button[data-variant="primary"]:active:not(:disabled)  { background: var(--accent-active); transform: translateY(1px); }
.pz-button[data-variant="secondary"]:hover:not(:disabled) { background: var(--ink-50); border-color: var(--ink-400); }
.pz-button[data-variant="secondary"]:active:not(:disabled){ background: var(--ink-100); transform: translateY(1px); }
.pz-button[data-variant="ghost"]:hover:not(:disabled)     { background: var(--accent-soft); }
.pz-button[data-variant="ghost"]:active:not(:disabled)    { background: var(--indigo-100); transform: translateY(1px); }
.pz-button[data-variant="signal"]:hover:not(:disabled)    { background: var(--signal-hover); border-color: var(--signal-hover); }
.pz-button[data-variant="signal"]:active:not(:disabled)   { transform: translateY(1px); }

.pz-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

.pz-card--interactive { cursor: pointer; }
.pz-card--interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* --- Deep-navy framed ink surface (faint periwinkle grid) ----------- */
.ds-ink-surface {
  background-color: var(--deep-navy);
  background-image: var(--texture-grid);
  background-size: var(--texture-grid-size);
  color: var(--text-inverse);
}

/* --- Components (static versions of the design-system Button / Badge / Input) --- */
.pz-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 20px;font-family:var(--font-sans);font-size:15px;font-weight:600;letter-spacing:-0.005em;line-height:1;border-radius:var(--radius-md);cursor:pointer;white-space:nowrap;background:var(--accent);color:#fff;border:1px solid var(--accent);transition:background var(--dur-fast) var(--ease-out),transform var(--dur-fast) var(--ease-out),box-shadow var(--dur-fast) var(--ease-out)}
.pz-button--sm{height:34px;padding:0 14px;font-size:13px;gap:7px}
.pz-button--lg{height:50px;padding:0 28px;font-size:16px;gap:9px}
.pz-button--full{width:100%}
a:hover .pz-button[data-variant="primary"]{background:var(--accent-hover);border-color:var(--accent-hover)}
a:hover:has(.pz-button){text-decoration:none}
.pz-badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;background:var(--indigo-100);color:var(--indigo-700);font-family:var(--font-sans);font-size:11px;font-weight:500;letter-spacing:0.04em;text-transform:uppercase;border-radius:var(--radius-sm);white-space:nowrap}
.pz-field{display:flex;flex-direction:column;gap:6px}
.pz-field label{font-family:var(--font-sans);font-size:13px;font-weight:600;color:var(--text-strong)}
.pz-input{width:100%;height:42px;padding:0 12px;font-family:var(--font-sans);font-size:15px;color:var(--text-strong);background:var(--surface-card);border:1px solid var(--border-strong);border-radius:var(--radius-md);transition:border-color var(--dur-fast) var(--ease-out),box-shadow var(--dur-fast) var(--ease-out);box-sizing:border-box}
.pz-form-status{font-size:13px;color:var(--text-strong);margin:0}
