/* ════════════════════════════════════════════════════════════════
   Poincaré — design tokens
   Built from the brand's own kit: black & white, the light greys of the
   original site (#f0f0f0 / #e4e4e4), the red it used for offers, Helvetica
   Neue for everything, and Kaufmann (the original title face) as a script
   signature used sparingly.
════════════════════════════════════════════════════════════════ */

/* The supplied "HelveticaNeue.ttf" is an ultra-thin cut, so the Light cut serves 300–400 */
@font-face { font-family: "PC Helvetica"; src: url("../fonts/helvetica-neue-light.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PC Helvetica"; src: url("../fonts/helvetica-neue-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "PC Helvetica"; src: url("../fonts/helvetica-neue-bold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Kaufmann"; src: url("../fonts/kaufmann-bold.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* Colour */
  --ink:          #141414;
  --ink-soft:     #3b3b3a;
  --paper:        #ffffff;
  --fog:          #f0f0ef;   /* original site background */
  --ash:          #e4e4e2;   /* original footer grey */
  --signal:       #c5322d;   /* original offer red — used for sale, live state, focus details */
  --signal-ink:   #a9271f;   /* 6.4:1 on white, for small red text */
  --line:         #e3e3e1;
  --line-strong:  #c9c9c6;
  --muted:        #686866;   /* 5.6:1 on white — the Light weight needs the extra contrast */
  --sale:         #b8291f;
  --success:      #2f6b45;
  --danger:       #b8291f;
  --overlay:      rgba(20, 20, 20, .55);

  /* Type */
  --font-display: "PC Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans:    "PC Helvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-script:  "Kaufmann", "Brush Script MT", cursive;
  --track-display: -.035em;

  /* Major-third scale */
  --fs-xs:   .75rem;    /* 12 */
  --fs-sm:   .8125rem;  /* 13 */
  --fs-base: 1rem;      /* 16 */
  --fs-md:   1.0625rem; /* 17 */
  --fs-lg:   1.375rem;  /* 22 */
  --fs-xl:   clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl:  clamp(1.9rem, 1.4rem + 2vw, 2.85rem);
  --fs-3xl:  clamp(2.3rem, 1.5rem + 3.4vw, 4.25rem);
  --fs-mega: clamp(3.2rem, 1rem + 7vw, 9rem);

  --lh-tight: 1.12;
  --lh-snug:  1.3;
  --lh-body:  1.6;
  --track-wide: .06em;

  /* Spacing (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem;
  --section-y: clamp(3rem, 2rem + 3.5vw, 5.5rem);

  /* Layout */
  --container: 1360px;
  --container-narrow: 860px;
  --gutter: clamp(1rem, .6rem + 1.6vw, 2.5rem);
  --header-h: 72px;

  /* Shape — kept deliberately varied by role, not one radius for all */
  --r-none: 0;
  --r-input: 2px;
  --r-panel: 4px;
  --r-pill: 999px;

  /* Elevation — used only on floating layers */
  --shadow-float: 0 18px 50px -12px rgba(20, 20, 20, .22);
  --shadow-soft:  0 6px 24px -10px rgba(20, 20, 20, .18);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s;
  --t-med: .32s;
  --t-slow: .6s;

  /* Layers */
  --z-header: 50;
  --z-mega: 60;
  --z-drawer: 80;
  --z-modal: 90;
  --z-toast: 100;
}

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0s; --t-med: 0s; --t-slow: 0s; }
}
