/* Site tokens: single source of truth. Load before every other stylesheet.
   Four palettes, switched with <html data-palette="...">. Pick one at launch
   and delete the others (and the preview switcher in index.html). */

:root {
  /* Radius: one scale */
  --mt-radius-sm: 6px;
  --mt-radius-md: 12px;
  --mt-radius-lg: 18px;
  --mt-radius-pill: 999px;

  /* Motion */
  --mt-dur: .32s;
  --mt-dur-fast: .2s;
  --mt-ease: cubic-bezier(.2, .7, .2, 1);
  --mt-ease-out: cubic-bezier(.23, 1, .32, 1);
  --mt-ease-inout: cubic-bezier(.77, 0, .175, 1);
  --mt-lift: -3px;

  /* Spacing (8 pt) */
  --mt-s1: 4px; --mt-s2: 8px; --mt-s3: 12px; --mt-s4: 16px;
  --mt-s5: 24px; --mt-s6: 32px; --mt-s7: 48px; --mt-s8: 64px; --mt-s9: 96px;
  --mt-rhythm: 1;
  --mt-section-y: calc(96px * var(--mt-rhythm));
  --mt-page-w: 1240px;
  --mt-gutter: clamp(16px, 4vw, 40px);
  --mt-head-w: 44rem;
}
@media (max-width: 749px) { :root { --mt-rhythm: .78; } }

/* 1. Ivory & Gold: warm white, soft champagne gold */
:root,
[data-palette="ivory"] {
  --c-bg: #fbf8f2;
  --c-surface: #ffffff;
  --c-panel: #f4eee3;
  --c-ink: #221d17;
  --c-muted: #6a6055;
  --c-accent: #b08d4a;          /* lines, fills */
  --c-accent-text: #85652a;     /* gold that passes AA on light bg */
  --c-on-accent: #1d1810;
  --c-btn: #221d17;
  --c-on-btn: #fbf8f2;
  --c-loader-bg: #f6f0e4;
  --c-loader-ink: #221d17;
  --c-footer-bg: #221d17;
  --c-footer-ink: #efe7d8;
  --c-ink-rgb: 34 29 23;
  --c-accent-rgb: 176 141 74;
}

/* 2. White, Gold & Black: crisp white, black type, gold accent */
[data-palette="classic"] {
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-panel: #f5f3ef;
  --c-ink: #111111;
  --c-muted: #5c5a57;
  --c-accent: #c19a4b;
  --c-accent-text: #8a6a26;
  --c-on-accent: #111111;
  --c-btn: #111111;
  --c-on-btn: #ffffff;
  --c-loader-bg: #111111;
  --c-loader-ink: #f3ead8;
  --c-footer-bg: #111111;
  --c-footer-ink: #ece6da;
  --c-ink-rgb: 17 17 17;
  --c-accent-rgb: 193 154 75;
}

/* 3. Noir & Gold: dark, gallery lighting */
[data-palette="noir"] {
  --c-bg: #121110;
  --c-surface: #1b1a18;
  --c-panel: #1f1d1a;
  --c-ink: #f3ede3;
  --c-muted: #b1a796;
  --c-accent: #c9a45c;
  --c-accent-text: #d4b273;
  --c-on-accent: #16130d;
  --c-btn: #c9a45c;
  --c-on-btn: #16130d;
  --c-loader-bg: #0d0c0b;
  --c-loader-ink: #f3ede3;
  --c-footer-bg: #0d0c0b;
  --c-footer-ink: #d9d0c2;
  --c-ink-rgb: 0 0 0;
  --c-accent-rgb: 201 164 92;
}

/* 4. Rouge: white, black and a deep red */
[data-palette="rouge"] {
  --c-bg: #faf8f6;
  --c-surface: #ffffff;
  --c-panel: #f3eeeb;
  --c-ink: #161314;
  --c-muted: #615a5b;
  --c-accent: #9b1c26;
  --c-accent-text: #9b1c26;
  --c-on-accent: #ffffff;
  --c-btn: #9b1c26;
  --c-on-btn: #ffffff;
  --c-loader-bg: #161314;
  --c-loader-ink: #f6efec;
  --c-footer-bg: #7f1720;
  --c-footer-ink: #ebe3e0;
  --c-ink-rgb: 22 19 20;
  --c-accent-rgb: 155 28 38;
}

/* 5. Cream & Red: warm cream paper, oxblood red */
[data-palette="cream"] {
  --c-bg: #f3eadb;
  --c-surface: #fffcf7;
  --c-panel: #ebdfcb;
  --c-ink: #231716;
  --c-muted: #6b5a52;
  --c-accent: #a3232c;
  --c-accent-text: #93202a;
  --c-on-accent: #fbf3e6;
  --c-btn: #a3232c;
  --c-on-btn: #fbf3e6;
  --c-loader-bg: #a3232c;
  --c-loader-ink: #f7ecdc;
  --c-footer-bg: #8a1c25;
  --c-footer-ink: #fbf1e3;
  --c-ink-rgb: 35 23 22;
  --c-accent-rgb: 163 35 44;
}

/* ---------- Typography pairings: <html data-type="..."> ---------- */
:root, [data-type="didone"] {
  --mt-font-display: "Bodoni Moda", "Didot", serif;
  --mt-font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --mt-display-weight: 400; --mt-display-track: -.025em; --mt-display-scale: 1;
  --mt-em-style: italic; --mt-body-weight: 300;
}
[data-type="gloock"] {
  --mt-font-display: "Gloock", Georgia, serif;
  --mt-font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mt-display-weight: 400; --mt-display-track: -.03em; --mt-display-scale: .9;
  --mt-em-style: normal; --mt-body-weight: 400;
}
[data-type="marcellus"] {
  --mt-font-display: "Marcellus", "Trajan Pro", serif;
  --mt-font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mt-display-weight: 400; --mt-display-track: -.01em; --mt-display-scale: .84;
  --mt-em-style: normal; --mt-body-weight: 400;
}
[data-type="italiana"] {
  --mt-font-display: "Italiana", "Didot", serif;
  --mt-font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mt-display-weight: 400; --mt-display-track: -.01em; --mt-display-scale: 1.04;
  --mt-em-style: normal; --mt-body-weight: 300;
}
[data-type="grotesk"] {
  --mt-font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mt-font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mt-display-weight: 500; --mt-display-track: -.055em; --mt-display-scale: .92;
  --mt-em-style: normal; --mt-body-weight: 400;
}

:root, [data-palette] {
  --c-line: rgb(var(--c-ink-rgb) / .12);
  --c-line-soft: rgb(var(--c-ink-rgb) / .07);
  /* Icons: a deeper shade of the accent */
  --c-icon: color-mix(in srgb, var(--c-accent-text) 76%, #000);
  --mt-shadow-sm: 0 2px 8px -3px rgb(var(--c-ink-rgb) / .12);
  --mt-shadow-md: 0 14px 34px -16px rgb(var(--c-ink-rgb) / .22);
  --mt-shadow-hover: 0 18px 38px -16px rgb(var(--c-ink-rgb) / .28);
  --mt-ring: 0 0 0 3px rgb(var(--c-accent-rgb) / .5);
}
[data-palette="noir"] { --c-line: rgb(243 237 227 / .14); --c-line-soft: rgb(243 237 227 / .08); --c-icon: var(--c-accent-text); }
