﻿/* ============================================================
   Luna - Design Tokens
   Monochrome, premium, whitespace-forward apparel aesthetic.
   ============================================================ */
:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-muted: #eef0f2;      /* cool light-grey product cards */
  --bg-muted-2: #e6e9ec;
  --bg-dark: #101012;       /* announcement bar / dark sections */

  /* Ink */
  --ink: #16161a;           /* primary text (near-black) */
  --ink-2: #5d6068;         /* secondary / meta text */
  --ink-3: #9aa0a6;         /* tertiary / disabled */
  --on-dark: #f5f5f4;

  /* Lines */
  --line: #e6e7ea;
  --line-2: #d7d9dd;

  /* Accents */
  --accent: #16161a;        /* primary CTA = black */
  --sale: #b4232a;          /* discount / sale emphasis */
  --focus: #3b82f6;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-logo: 'Fraunces', Georgia, 'Times New Roman', serif;

  --fs-xxs: 0.6875rem;   /* 11px */
  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.8125rem;    /* 13px */
  --fs-base: 0.9375rem;  /* 15px */
  --fs-md: 1.0625rem;    /* 17px */
  --fs-lg: 1.375rem;     /* 22px */
  --fs-xl: 2rem;         /* 32px */
  --fs-2xl: clamp(2.2rem, 5vw, 4rem);
  --fs-hero: clamp(2.75rem, 8vw, 6.5rem);

  --tracking-wide: 0.08em;
  --tracking-wider: 0.14em;

  /* Layout */
  --maxw: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 78px;
  --topbar-h: 38px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 320ms;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(16, 16, 18, 0.06), 0 8px 24px rgba(16, 16, 18, 0.06);
  --shadow-2: 0 12px 40px rgba(16, 16, 18, 0.16);

  --radius: 0px;         /* Outfitters-like: sharp corners */
  --radius-pill: 999px;

  /* Theme-aware helpers (used by the dark theme overrides) */
  --on-ink: #ffffff;        /* text on an --ink filled button */
  --surface: #ffffff;       /* inputs, dialogs, floating chips */
  --glass: rgba(255, 255, 255, 0.85);
  --hover: rgba(0, 0, 0, 0.06);
  --veil: rgba(255, 255, 255, 0.62);

  color-scheme: light;
}

/* ============================================================
   Dark theme — same monochrome language, inverted.
   Set by assets/js/theme.js on <html data-theme="dark">.
   ============================================================ */
:root[data-theme="dark"] {
  --bg: #0e0f11;
  --bg-muted: #17181b;
  --bg-muted-2: #1f2125;
  --bg-dark: #050506;

  --ink: #ededeb;
  --ink-2: #a2a5ac;
  --ink-3: #6e727a;
  --on-dark: #f5f5f4;

  --line: #24262a;
  --line-2: #34373c;

  --accent: #ededeb;
  --sale: #ef5350;
  --focus: #60a5fa;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.6);

  --on-ink: #0e0f11;
  --surface: #15161a;
  --glass: rgba(21, 22, 26, 0.82);
  --hover: rgba(255, 255, 255, 0.08);
  --veil: rgba(14, 15, 17, 0.72);

  color-scheme: dark;
}
