/* =========================================================
   HOUSE OF VAELOR: design tokens
   ---------------------------------------------------------
   The one place for the House's colours, fonts, sizes,
   spacing, corners, shadows and motion. Change a value here
   and it changes across the site.

   Load this file FIRST (before style.css).
   The short names further down (--plum, --gold, ...) are the
   names the existing stylesheets already use; they now point
   at these tokens.
   ========================================================= */
:root {
  /* ---------- Colour: the House palette ---------- */
  --color-plum: #34022A;          /* deep plum: ink, velvet rooms, primary buttons */
  --color-plum-soft: #4A0B3C;     /* lighter plum: damask, gradients */
  --color-honey-gold: #F2C14E;    /* honey gold: bright accents on dark */
  --color-antique-gold: #D9AE55;  /* antique gold: hairlines, frames, ornaments */
  --color-gold-ink: #7A5810;      /* gold for text on light backgrounds (5.5:1 on parchment, WCAG AA) */
  --color-moss: #3E7A2E;          /* moss green: leaves and vines */
  --color-parchment: #F3EBDD;     /* parchment cream: light pages */
  --color-parchment-deep: #EFE4CE;/* warmer parchment for Garden sections */
  --color-parchment-light: #F8EEDD; /* map and card paper */
  --color-ivory: #FFF8EC;         /* highlights, glow */
  --color-garnet: #8E1B2C;        /* garnet red: jewels, small accents */
  --color-rose: #E7A3AE;          /* rose: romance accents */
  --color-rose-deep: #A63D62;     /* deep rose: text accents on light (5.1:1, WCAG AA) */
  --color-wisteria: #B9A3D6;      /* soft garden light */
  --color-black: #120A12;         /* the City at night */
  --color-silver: #C9CED6;        /* the City's metal */
  --color-silver-deep: #A9B0BC;   /* silver hairlines */

  /* ---------- Type ---------- */
  --font-serif: "Cormorant Garamond", "Garamond", "Georgia", serif;   /* everything ("House Serif") */
  --font-caps: "Cinzel", "Trajan Pro", "Georgia", serif;              /* prices and numerals only */
  --font-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive; /* short flourishes only */

  /* type scale (fluid where it matters) */
  --text-xs: .9rem;
  --text-sm: 1rem;
  --text-base: clamp(1.125rem, 1rem + .35vw, 1.3rem);
  --text-lg: 1.25rem;
  --text-xl: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.3rem + 3.6vw, 4rem);
  --text-3xl: clamp(2.4rem, 11vw, 8.6rem);
  --text-label: 1.05rem;   /* small labels (sentence case) */
  --text-button: 1.02rem;  /* buttons */

  /* ---------- Spacing ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-section: clamp(84px, 12vw, 150px);

  /* ---------- Corners ---------- */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --radius-arch: 50% 50% 0 0 / 30% 30% 0 0;  /* doorways and niches */

  /* ---------- Shadows ---------- */
  --shadow-soft: 0 10px 24px -12px rgba(0, 0, 0, .6);
  --shadow-card: 0 24px 50px -24px rgba(52, 2, 42, .5);
  --shadow-deep: 0 40px 70px -40px #000;
  --shadow-glow-gold: 0 0 22px 2px rgba(242, 193, 78, .35);
  --shadow-button-inset: inset 0 0 0 2px #34022A, inset 0 0 0 3px rgba(217, 174, 85, .45);

  /* ---------- Motion ---------- */
  --duration-fast: .25s;
  --duration-base: .45s;
  --duration-slow: .9s;
  --duration-scene: 1.3s;
  --ease-out: cubic-bezier(.16, 1, .3, 1);       /* gentle settle */
  --ease-in-out: cubic-bezier(.45, .05, .25, 1); /* camera moves */
  --ease-spring: cubic-bezier(.3, 1.6, .5, 1);   /* small pops (seals, blooms) */

  /* ---------- Layout ---------- */
  --header-h: 64px;
  --content-max: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  /* =========================================================
     Short names used by the existing stylesheets.
     They point at the tokens above; prefer the token names in new code.
     ========================================================= */
  --cream: var(--color-parchment);
  --ivory: var(--color-ivory);
  --parchment: var(--color-parchment-light);
  --parchment-deep: var(--color-parchment-deep);
  --plum: var(--color-plum);
  --plum-2: var(--color-plum-soft);
  --gold: var(--color-honey-gold);
  --gold-2: var(--color-antique-gold);
  --gold-ink: var(--color-gold-ink);
  --rose: var(--color-rose);
  --rose-deep: var(--color-rose-deep);
  --wisteria: var(--color-wisteria);
  --green: var(--color-moss);
  --garnet: var(--color-garnet);
  --black: var(--color-black);
  --bg: var(--color-parchment);
  --fg: var(--color-plum);
  --f-display: var(--font-serif);
  --f-body: var(--font-serif);
  --f-script: var(--font-script);
  --f-num: var(--font-caps);
  --t-label: var(--text-label);
  --t-button: 1.12rem;

  color-scheme: light;
}
