/* FormaCase — design tokens.
   Edit anything in here to re-skin the site. Colors, type, spacing,
   shadows, motion, grid — every other stylesheet reads from these vars. */

:root {
  /* ---------- Surfaces (warm cream layers) ------------------------------ */
  --bg-primary:       #FDFDFD; /*#FAF8F5;*/
  --bg-surface:         #FFFFFF;
  --bg-surface-raised: #F4F3F2; /*#F3F0EB;*/
  --bg-surface-sunken:  #EDE9E2;
  --bg-ink:             #1C1A17;
  --bg-ink-soft:        #2A2722;

  /* ---------- Borders & hairlines --------------------------------------- */
  --border-default:     #E3DDD5;
  --border-strong:      #CEC6BA;
  --border-subtle:      #EDE7DE;
  --border-ink:         #1C1A17;

  /* ---------- Text ------------------------------------------------------ */
  --text-primary:       #2D2A26;
  --text-secondary:     #857F76;
  --text-muted:         #B7B2AA;
  --text-inverse:       #FAF8F5;
  --text-inverse-muted: #B8B2A8;

  /* ---------- Accent (drafting-pencil red, used sparingly) -------------- */
  --accent:             #9B5640;
  --accent-hover:       #7E4331;
  --accent-soft:        #EADCD3;
  /* Warm gold, for the "Start measuring" CTA in the nav. */
  --accent-yellow:      #F2C14E;

  /* ---------- Case summary (configurator, checkout, order pages) -------- */
  /* Pale tints of the nav's gold, so the summary reads as part of the brand
     rather than as a success message. */
  --summary-bg:     #FDF6DC;
  --summary-row-bg: #FFFCF0;
  --summary-border: #DCC67F;

  /* ---------- Semantic banner families ---------------------------------- */
  --info-bg:      #E8EDF3;  --info-border:     #C0CAD6;
  --info-text:    #2D2A26;  --info-text-soft:  #555555;

  --success-bg:   #E8FBEB;  --success-border:  #9BBD9F;
  --success-text: #2E520B;  --success-text-soft:#3A6B42;

  --warn-bg:      #EDE4CC;  --warn-border:     #CCBA82;
  --warn-text:    #6B5010;  --warn-text-soft:  #8A6B1E;

  --danger-bg:    #FFD9D9;  --danger-border:   #C89A9A;
  --danger-text:  #6E2222;  --danger-text-soft:#8B3232;

  /* ---------- Typography ------------------------------------------------ */
  --font-sans:    'Nunito', 'Söhne', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-serif:   'Nunito', 'Söhne', -apple-system, sans-serif; /* alias only — no real serif */
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* system fonts, nothing to download */

  --fs-display-xl: 72px;   --lh-display-xl: 1.02;   --ls-display-xl: -0.02em;
  --fs-display:    56px;   --lh-display:    1.04;   --ls-display:    -0.02em;
  --fs-h1:         40px;   --lh-h1:         1.08;   --ls-h1:         -0.015em;
  --fs-h2:         30px;   --lh-h2:         1.15;   --ls-h2:         -0.01em;
  --fs-h3:         22px;   --lh-h3:         1.25;   --ls-h3:         -0.005em;
  --fs-h4:         17px;   --lh-h4:         1.35;   --ls-h4:          0;
  --fs-body-lg:    18px;   --lh-body-lg:    1.55;
  --fs-body:       15px;   --lh-body:       1.55;
  --fs-body-sm:    13px;   --lh-body-sm:    1.5;
  --fs-caption:    12px;   --lh-caption:    1.4;    --ls-caption:    0.01em;
  --fs-overline:   11px;   --lh-overline:   1.2;    --ls-overline:   0.14em;
  --fs-mono-sm:    12px;   --fs-mono:       13px;

  --fw-regular: 400;
  --fw-medium:  700;
  --fw-semi:    600;
  --fw-bold:    700;

  /* ---------- Spacing (4px base) ---------------------------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---------- Radii (never pill-y) -------------------------------------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  /* ---------- Shadows (paper on paper) ---------------------------------- */
  --shadow-hairline: 0 0 0 1px rgba(28, 26, 23, 0.06);
  --shadow-xs:       0 1px 1px rgba(28, 26, 23, 0.04), 0 0 0 1px rgba(28, 26, 23, 0.04);
  --shadow-sm:       0 1px 2px rgba(28, 26, 23, 0.05), 0 2px 4px rgba(28, 26, 23, 0.04);
  --shadow-md:       0 2px 4px rgba(28, 26, 23, 0.05), 0 6px 12px rgba(28, 26, 23, 0.06);
  --shadow-lg:       0 4px 8px rgba(28, 26, 23, 0.06), 0 16px 32px rgba(28, 26, 23, 0.08);
  --shadow-inset:    inset 0 1px 2px rgba(28, 26, 23, 0.05);
  --shadow-press:    inset 0 1px 0 rgba(28, 26, 23, 0.08);

  /* ---------- Frosted glass -------------------------------------------- */
  --glass-bg:   rgba(250, 248, 245, 0.72);
  --glass-blur: saturate(140%) blur(14px);

  /* ---------- Motion (restrained) -------------------------------------- */
  --ease-standard: cubic-bezier(0.2, 0.0, 0.1, 1.0);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:      120ms;
  --dur-base:      200ms;
  --dur-slow:      360ms;

  /* ---------- Grid (drafting reference) -------------------------------- */
  --grid-line:        rgba(28, 26, 23, 0.05);
  --grid-line-strong: rgba(28, 26, 23, 0.09);
  --grid-size:        24px;

  /* ---------- Layout widths -------------------------------------------- */
  --width-marketing: 1120px;
  --width-app:       1280px;
  --width-reading:   680px;

  /* ---------- Breakpoints ---------------------------------------------- */
  /* Reference values only. CSS custom properties cannot be used inside
     @media parens, so the literal pixel values are repeated in queries. */
  --bp-mobile: 640px;
  --bp-tablet: 1024px;
}
