/* ============================================================
   LOCOMA INC. — Design tokens
   Brand colors: Red / Black / White / Silver — nothing else.
   Supports light + dark themes via [data-theme] on <html>.
   ============================================================ */

:root {
  /* ---- Brand accents (shared across themes) ---- */
  --red: #c8202c;
  --red-hover: #e23344;
  --silver: #b9bec4;
  --silver-hover: #d2d6d9;

  --white: #ffffff;
  --black: #0a0a0a;

  /* ---- Typography ----
     Noto Sans Display for titles, Noto Sans for interface copy. */
  --font-display: "Noto Sans Display", "Noto Sans", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Noto Sans Mono", "SFMono-Regular", Consolas, monospace;

  --fs-hero: clamp(2.75rem, 2rem + 3.6vw, 6.25rem);
  --fs-interior: clamp(2rem, 1.6rem + 1.8vw, 4.8125rem);
  --fs-section: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  --fs-lg: 1.375rem;
  --fs-md: 1.125rem;
  --fs-base: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-2xs: 0.6875rem;

  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-normal: 1.6;

  /* ---- Spacing ---- */
  --sp-3xs: 0.25rem;
  --sp-2xs: 0.5rem;
  --sp-xs: 0.75rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.25rem;
  --sp-xl: 3.5rem;
  --sp-2xl: 5.5rem;
  --sp-3xl: 8rem;

  /* ---- Layout ---- */
  --container-max: 1328px;
  --container-pad: 76px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --btn-height: 49px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: 160ms;
  --dur-med: 360ms;
  --dur-slow: 800ms;

  /* ---- Elevation ---- */
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);

  --brand: var(--red);
  --brand-hover: var(--red-hover);
  --brand-contrast: #ffffff;
  --brand-2: var(--silver);
  --brand-2-hover: var(--silver-hover);
}

@media (max-width: 1199px) { :root { --container-pad: 48px; } }
@media (max-width: 767px)  { :root { --container-pad: 16px; } }

/* =========================================================
   Semantic tokens — DARK (default): true black, white + silver text
   ========================================================= */
:root,
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-raised: #151515;
  --bg-sunken: #040404;
  --bg-inverse: #ffffff;

  --text-primary: #f5f5f6;
  --text-secondary: #b9bec4;
  --text-tertiary: #83888d;
  --text-on-inverse: #0a0a0a;
  --text-on-brand: #ffffff;

  --border-subtle: #262626;
  --border-default: #3a3a3a;

  --surface-card: #161616;
  --surface-card-border: #262626;

  --focus-ring: var(--red);
}

/* =========================================================
   Semantic tokens — LIGHT: white/silver, near-black text
   ========================================================= */
:root[data-theme="light"] {
  --bg: #f7f7f8;
  --bg-raised: #ffffff;
  --bg-sunken: #ececed;
  --bg-inverse: #0a0a0a;

  --text-primary: #111111;
  --text-secondary: #4a4e52;
  --text-tertiary: #83888d;
  --text-on-inverse: #f5f5f6;
  --text-on-brand: #ffffff;

  --border-subtle: #dcdee0;
  --border-default: #c7cacd;

  --surface-card: #ffffff;
  --surface-card-border: #dcdee0;

  --focus-ring: var(--red);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f7f8;
    --bg-raised: #ffffff;
    --bg-sunken: #ececed;
    --bg-inverse: #0a0a0a;

    --text-primary: #111111;
    --text-secondary: #4a4e52;
    --text-tertiary: #83888d;
    --text-on-inverse: #f5f5f6;
    --text-on-brand: #ffffff;

    --border-subtle: #dcdee0;
    --border-default: #c7cacd;

    --surface-card: #ffffff;
    --surface-card-border: #dcdee0;

    --focus-ring: var(--red);
  }
}
