/* Selr public kit: tokens.
 *
 * The Selr AI look for customer-facing pages (forms, link pages, drops).
 * Values come from selr-design-language tokens.json (copied here as
 * tokens.json, the one source). The variable NAMES and STRUCTURE mirror the
 * app kit @loup/ui (loup-ui/src/styles.css): a raw palette layer, radii,
 * fonts, a type scale, motion, then a semantic interface layer
 * (background, foreground, card, primary, muted, border, input, ring ...).
 * Where loup-ui has --loup-x, this kit has --selr-x.
 *
 * Light only. Public pages have no dark appearance.
 * No shadows: there is deliberately no --selr-raise.
 * `node scripts/check-tokens.mjs` fails if a colour here is not in tokens.json.
 */

@font-face {
  font-family: "Selr Manrope";
  src: url("fonts/Manrope-var.woff2") format("woff2-variations"),
       url("fonts/Manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- palette (loup: paper, paper-warm, ink, ink-soft, ash, ember, ember-deep, stop) */
  --selr-paper: #FCFCFA;        /* socialGround: the page ground. Never cream, never #F7F5EF on content */
  --selr-paper-warm: #FFFFFA;   /* surface: cards, fields, white fills */
  --selr-paper-focus: #FAFAF7;  /* surface3: hover / tertiary fill */
  --selr-ink: #242424;          /* primary text. Never #000 */
  --selr-ink-soft: #3D3D3D;     /* forms ink-2: lede and secondary copy (09-forms.md delta) */
  --selr-ash: #616161;          /* inkMuted: muted text, placeholders */
  --selr-display: #1F1F1F;      /* forms display headings (09-forms.md delta) */
  --selr-ink-max: #0D0D0D;      /* forms submit fill (09-forms.md delta) */
  --selr-purple: #6736E2;       /* THE one accent (loup: ember) */
  --selr-purple-deep: #5024C0;  /* pressed / darker hover (loup: ember-deep) */
  --selr-on-purple: #EEE8FF;    /* body text on purple */
  --selr-dark: #242424;         /* surfaceDark: dark card fill */
  --selr-stop: #C25D5D;         /* error, the only red */
  --selr-glass: rgba(227, 227, 227, 0.45);   /* form card glass + hairline */
  --selr-glass-ring: rgba(255, 255, 255, 0.75);
  --selr-glass-blur: blur(10px);

  /* ---- radii (same names as loup) */
  --selr-radius-field: 20px;
  --selr-radius-card: 30px;
  --selr-radius-pill: 40px;
  --selr-radius-round: 100%;

  /* ---- fonts (same names as loup). Manrope does everything. */
  --selr-font-body: "Selr Manrope", "Manrope Variable", Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --selr-font-display: var(--selr-font-body);
  --selr-weight-display: 585;   /* drive the variable axis */
  --selr-weight-body: 600;
  --selr-weight-form: 500;      /* form body and inputs */

  /* ---- type scale (roles from selr-design-language; px, not rem) */
  --selr-text-display: clamp(42px, 8vw, 64px);  /* form page h1, the offer name */
  --selr-text-h2: clamp(32px, 4.5vw, 60px);
  --selr-text-h3: clamp(25px, 3.5vw, 45px);
  --selr-text-h4: clamp(20px, 2.6vw, 30px);
  --selr-text-sub: clamp(21px, 3.5vw, 27px);   /* two-tone sub-line */
  --selr-text-lead: clamp(17px, 2vw, 20px);
  --selr-text-base: 16px;
  --selr-text-body: 17px;
  --selr-text-sm: 15px;
  --selr-text-13: 13px;
  --selr-text-xs: 12px;
  --selr-tracking-display: -0.04em;   /* >= 25px */
  --selr-tracking-body: -0.03em;      /* 15 to 20px */
  --selr-tracking-13: -0.025em;
  --selr-tracking-xs: -0.015em;

  /* ---- motion (loup: ease, ease-pop) */
  --selr-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --selr-ease-pop: cubic-bezier(0.22, 1, 0.36, 1);
  --selr-dur-fast: 200ms;
  --selr-dur-base: 300ms;
  --selr-dur-move: 400ms;

  /* ---- space */
  --selr-gutter: 20px;
  --selr-column: 680px;
  --selr-column-wide: 1160px;

  /* ---- interface (same semantic names as loup's light appearance) */
  --selr-background: var(--selr-paper);
  --selr-foreground: var(--selr-ink);
  --selr-card: var(--selr-paper-warm);
  --selr-card-glass: var(--selr-glass);
  --selr-primary: var(--selr-ink-max);
  --selr-primary-foreground: var(--selr-paper-warm);
  --selr-muted: var(--selr-paper-focus);
  --selr-muted-foreground: var(--selr-ash);
  --selr-accent: var(--selr-purple);           /* differs from loup: Selr's accent IS the purple */
  --selr-accent-foreground: var(--selr-paper-warm);
  --selr-destructive: var(--selr-stop);
  --selr-border: var(--selr-glass);
  --selr-input: var(--selr-paper-warm);
  --selr-ring: var(--selr-purple);
  --selr-hover-surface: rgba(255, 255, 255, 0.6);
}
