/*
 * Lusora design tokens — single source of truth for palette, typography,
 * type scale, spacing and radii. Load this file BEFORE any other stylesheet.
 * All sizes are relative (rem/em/clamp); 1rem = the user's browser font size.
 */
:root {
  /* Brand palette */
  --brand-primary: #FF5000;
  --brand-hover: #D63F00;
  --orange: var(--brand-primary);
  --orange-strong: var(--brand-hover);
  --orange-hover: var(--brand-hover);
  --orange-soft: #ff7c3f;
  --paper: #eceae3;
  --white: #f5f5f2;
  --black: #080808;

  /* Font families */
  --font-sans: Inter, Arial, Helvetica, sans-serif;
  --font-display: Sora, Inter, Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Type scale (fixed steps) */
  --text-3xs: 0.5rem;
  --text-2xs: 0.625rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;

  /* Fluid display scale (headings) */
  --display-hero: clamp(3.875rem, 14vw, 11.875rem);
  --display-h1: clamp(3.625rem, 8.3vw, 7.375rem);
  --display-h2: clamp(2.125rem, 4.5vw, 4rem);
  --display-h3: clamp(1.5625rem, 2.35vw, 2.1875rem);

  /* Line heights & tracking */
  --leading-tight: 0.99;
  --leading-heading: 1.06;
  --leading-body: 1.75;
  --tracking-display: -0.065em;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-pill: 62rem;

  /* Shared agency UI: controls use one shape and one solid brand action. */
  --ls-action: var(--orange);
  --ls-action-hover: var(--brand-hover);
  --ls-on-action: #FFFFFF;
  --ls-control-radius: 0.5rem;
  --ls-control-height: 3.25rem;
  --ls-content-width: 85rem;
  --ls-section-space: clamp(3.5rem, 7vw, 6.5rem);
  --ls-heading-xl: clamp(2.125rem, 4.5vw, 4.25rem);
  --ls-heading-lg: clamp(1.875rem, 3.6vw, 3.25rem);
  --ls-paper: #f3f1eb;
  --ls-form-bg: #000;
  --ls-field-bg: #151515;
  --ls-field-line: #70706b;
  --ls-form-ink: #f5f5f4;
  --ls-form-muted: #b7b7b0;
}

/* Theme colours (light is the default; dark overrides) */
:root {
  --page-bg: #eceae3;
  --page-text: #191919;
  --page-muted: #62625b;
  --page-rule: #c9c7be;
  --input-bg: #e4e2da;
  --menu-bg: #eceae3;
  --menu-text: #191919;
  --menu-muted: #62625b;
  --menu-rule: #c9c7be;
  --menu-control: #dedcd5;
}
:root[data-theme="dark"] {
  --page-bg: #101010;
  --page-text: #f1f0eb;
  --page-muted: #aaa9a3;
  --page-rule: #33332f;
  --input-bg: #1c1c1b;
  --menu-bg: #080808;
  --menu-text: #f1f0eb;
  --menu-muted: #b7b7b7;
  --menu-rule: #333;
  --menu-control: #303030;
}
