/* =====================================================================
   SASH design tokens
   One set of semantic tokens, defined for light and dark.
   Components use only these variables, never raw hex values.
   ===================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  /* Brand palette (fixed, theme independent) */
  --brand-onyx: #0B0B0C;
  --brand-charcoal: #1F1E20;
  --brand-champagne: #D4B483;
  --brand-gold-highlight: #D8B87A;
  --brand-ivory: #F8F5EF;
  --brand-rose-taupe: #A8888F;
  --brand-mauve: #6D4B5A;
  --brand-slate: #2A2F39;

  /* Type */
  --font-display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.75rem;    /* 12 */
  --text-sm: 0.8125rem;  /* 13 */
  --text-md: 0.875rem;   /* 14 */
  --text-base: 1rem;     /* 16 */
  --text-lg: 1.125rem;   /* 18 */
  --text-xl: 1.375rem;   /* 22 */
  --text-2xl: 1.75rem;   /* 28 */
  --text-3xl: 2.25rem;   /* 36 */
  --text-4xl: 3rem;      /* 48 */

  /* Space (4px base) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px;

  /* Radius by hierarchy: shells are softest, controls tighter */
  --radius-shell: 24px;
  --radius-card: 18px;
  --radius-tile: 14px;
  --radius-control: 12px;
  --radius-chip: 8px;
  --radius-pill: 999px;

  --motion-fast: 140ms;
  --motion-base: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --sidebar-width: 264px;
  --content-max: 1280px;
}

/* ---------------------------------------------------------------------
   Light: luxury SaaS (default)
   --------------------------------------------------------------------- */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F8F5EF;
  --bg-sunken: #F1ECE3;
  --surface: #FFFFFF;
  --surface-2: #FBF9F5;
  --surface-3: #F4EFE7;
  --surface-inverse: #0B0B0C;

  --text: #0B0B0C;
  --text-2: #3D3A38;
  --text-muted: #6E6862;
  --text-faint: #8F8880;
  --text-inverse: #F8F5EF;

  --line: #E7E0D5;
  --line-strong: #D6CCBC;

  --accent: #D4B483;
  --accent-soft: #F3EADB;
  --accent-softer: #F8F2E8;
  --accent-ink: #7E6236;          /* champagne family, readable as text on light */
  --accent-on: #0B0B0C;           /* text on a champagne fill */
  --accent-gradient: linear-gradient(135deg, #E6CFA6 0%, #D4B483 55%, #C9A46F 100%);

  --focus: #9C7A45;

  --success: #2F6B4F;  --success-soft: #E5F0E9;
  --warning: #8A5A12;  --warning-soft: #F8EBD4;
  --danger:  #A3333A;  --danger-soft:  #F7E3E3;
  --info:    #3B5470;  --info-soft:    #E4EBF2;
  --live:    #D2232A;

  --shadow-1: 0 1px 2px rgba(41, 33, 22, .05);
  --shadow-2: 0 1px 2px rgba(41, 33, 22, .04), 0 8px 24px -12px rgba(41, 33, 22, .14);
  --shadow-3: 0 2px 6px rgba(41, 33, 22, .06), 0 24px 48px -24px rgba(41, 33, 22, .28);

  --scrim: rgba(11, 11, 12, .38);
}

/* ---------------------------------------------------------------------
   Dark: Vogue editorial
   --------------------------------------------------------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B0C;
  --bg-sunken: #070708;
  --surface: #1F1E20;
  --surface-2: #19181A;
  --surface-3: #2A292C;
  --surface-inverse: #F8F5EF;

  --text: #F8F5EF;
  --text-2: #E2DDD5;
  --text-muted: #B3ACA3;
  --text-faint: #8C867E;
  --text-inverse: #0B0B0C;

  --line: #2F2E31;
  --line-strong: #403E43;

  --accent: #D4B483;
  --accent-soft: #2C261D;
  --accent-softer: #221E19;
  --accent-ink: #DCC090;
  --accent-on: #0B0B0C;
  --accent-gradient: linear-gradient(135deg, #E2C995 0%, #D4B483 55%, #BE9862 100%);

  --focus: #E2C995;

  --success: #7FC3A0;  --success-soft: #1A2A22;
  --warning: #E6B566;  --warning-soft: #2E2416;
  --danger:  #F08A8F;  --danger-soft:  #351C1E;
  --info:    #9DB7D3;  --info-soft:    #1B2430;
  --live:    #FF4D52;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .4), 0 28px 56px -24px rgba(0, 0, 0, .8);

  --scrim: rgba(0, 0, 0, .6);
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-base: 0ms; }
}
