/* ==========================================================================
   Nurtured by Nature — design tokens (single source of truth)
   Shared by the storefront and, later, the back office.
   Layer order is declared here; every other sheet writes into one of these.
   ========================================================================== */
@layer tokens, base, components, pages;

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.f94a697b1650.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.e97067eb043b.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-normal.c47ff12887a3.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.928f4210aa48.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@layer tokens {
  :root {
    /* Colour — plum, gold, cream */
    --plum-950: #1d0e1f;
    --plum-900: #2b142d;
    --plum-800: #3a1d3c;
    --plum-700: #54304f;
    --plum-500: #86607f;
    --mauve-300: #c9aeb9;
    --cream-50: #fcf9f6;
    --cream-100: #f7f1ec;
    --cream-200: #eee3dc;
    --cream-300: #e0d0c6;
    --gold-300: #ead39b;
    --gold-400: #d9b970;
    --gold-500: #c5a059;
    --gold-700: #7a591a; /* gold used as text on cream: 5.9:1 */
    --ink: #2a1a2e;
    --ink-soft: #5b4a5e;

    /* Semantic roles */
    --surface: var(--cream-100);
    --surface-raised: var(--cream-50);
    --surface-inverse: var(--plum-800);
    --text: var(--ink);
    --text-muted: var(--ink-soft);
    --text-inverse: var(--cream-100);
    --accent: var(--gold-500);
    --accent-text: var(--gold-700);
    --accent-on-dark: var(--gold-400);
    --rule: color-mix(in oklab, var(--gold-500) 55%, transparent);
    --rule-soft: color-mix(in oklab, var(--ink) 14%, transparent);
    --focus: var(--gold-500);

    /* Type */
    --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
    --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
    --font-label: "Jost", "Optima", "Segoe UI", system-ui, sans-serif;

    --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
    --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.15rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
    --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
    --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
    --step-4: clamp(2.6rem, 1.7rem + 4vw, 5rem);

    --track-label: 0.22em;
    --track-wide: 0.14em;

    /* Space */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: clamp(4rem, 3rem + 5vw, 8rem);

    /* Layout */
    --container: 80rem;
    --gutter: clamp(1.25rem, 0.5rem + 4vw, 5rem);
    --header-h: 5.25rem;

    /* Shape & depth: restrained; mostly square, hairline gold */
    --radius-s: 2px;
    --radius-m: 4px;
    --shadow-soft: 0 1px 2px rgb(58 29 60 / 0.06), 0 18px 40px -18px rgb(58 29 60 / 0.28);
    --shadow-lift: 0 2px 4px rgb(58 29 60 / 0.08), 0 30px 60px -24px rgb(58 29 60 / 0.4);

    /* Motion: slow and soft, "unhurried" */
    --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-1: 180ms;
    --dur-2: 360ms;
    --dur-3: 700ms;
    --dur-4: 1100ms;

    /* Atmosphere */
    --grad-plum: radial-gradient(120% 90% at 78% 0%, #7d5a74 0%, #4d2b4c 38%, #2f1731 70%, #241127 100%);
    --grad-cream: radial-gradient(90% 120% at 100% 0%, #efe3dc 0%, #f7f1ec 45%, #fbf7f3 100%);

    color-scheme: light;
  }
}
