/* ==========================================================================
   ZingyPrints design tokens — "Plum Ink · Apricot · Mint"
   Components must use these variables only; never hard-code colours.
   :root = light ("gallery paper"), [data-theme="dark"] = plum ink.
   The no-flash script in <head> always sets data-theme; the media query
   below covers visitors with JS disabled.
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-var.woff2") format("woff2-variations"), url("../fonts/unbounded-latin-var.woff2") format("woff2");
  font-weight: 200 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-var.woff2") format("woff2-variations"), url("../fonts/inter-latin-var.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 {
  /* latin-ext includes the ₹ sign (U+20B9) */
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-var.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-var.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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* ── Colour: light ("gallery paper") ── */
  --bg: #F4EEE6;
  --bg-alt: #EDE5DA;
  --surface: #FAF6F0;
  --surface-2: #FFFDFA;
  --border: #DDD2C4;
  --text: #1B1420;
  --text-muted: #6B5E72;
  --accent: #E86A3E;
  --accent-ink: #1B1420;
  --accent-text: #AA431D;   /* spec #B1461E, deepened 4% so it passes AA on --bg-alt too */
  --mint: #1E8C72;
  --mint-text: #18715C;     /* AA-safe mint for text on light surfaces */
  --lilac: #6E4FD8;
  --lilac-text: #6A4CCF;
  --danger: #C23A4B;
  --danger-text: #B43646;
  --glass: rgba(250, 246, 240, .7);
  --grad-hero:
    radial-gradient(1200px 600px at 80% -10%, #F2D9C9 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #D6EEE5 0%, transparent 55%);

  /* Badges: soft tint + strong text (AA in light), solid in dark */
  --badge-best-bg: #FBE5DC;  --badge-best-fg: #8E3514;
  --badge-new-bg: #DBEBE4;   --badge-new-fg: #155F4E;
  --badge-trend-bg: #E8E1F5; --badge-trend-fg: #5536B8;

  /* Elevation (light: soft layered shadows) */
  --shadow-1: 0 1px 2px rgba(27, 20, 32, .06), 0 2px 6px rgba(27, 20, 32, .05);
  --shadow-2: 0 2px 4px rgba(27, 20, 32, .05), 0 8px 24px rgba(27, 20, 32, .08);
  --shadow-3: 0 4px 8px rgba(27, 20, 32, .06), 0 24px 60px rgba(27, 20, 32, .14);
  --ring-inner: inset 0 0 0 1px transparent;
  --glow: 0 10px 30px rgba(232, 106, 62, .18);
  --scrim: rgba(27, 20, 32, .45);
  --noise-opacity: .035;
  --img-bg: #E7DED2;
  /* Toasts invert the page (bg = --text), so status icons use the opposite theme's tones */
  --toast-ok: #7FE3C4;
  --chart-1: #E86A3E;        /* single-series chart mark (validated vs surface) */
  --toast-err: #FF6B7A;

  /* ── Type ── */
  --font-display: "Unbounded", "Clash Display", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem);   /* ≈ 40 → 84px */
  --tracking-tight: -.03em;
  --tracking-eyebrow: .22em;

  /* ── Space, radius, layout ── */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 5vw, 7rem);
  --gutter: clamp(1rem, .5rem + 2vw, 2.5rem);
  --container: 1440px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --header-h: 72px;
  --bottom-nav-h: 0px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 600ms;
  --theme-dur: 400ms;

  /* Text and scrims over photography: identical in both themes */
  --on-photo: #F3ECE6;
  --photo-scrim-rgb: 18, 14, 22;

  --z-base: 1; --z-sticky: 50; --z-header: 100; --z-drawer: 300; --z-modal: 400; --z-toast: 500; --z-cursor: 900;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #120E16;
  --bg-alt: #18121E;
  --surface: #1E1726;
  --surface-2: #281F31;
  --border: #3A2E45;
  --text: #F3ECE6;
  --text-muted: #A99CB3;
  --accent: #FF9166;
  --accent-ink: #1B1420;
  --accent-text: #FFAB8A;
  --mint: #7FE3C4;
  --mint-text: #7FE3C4;
  --lilac: #B69CFF;
  --lilac-text: #B69CFF;
  --danger: #FF6B7A;
  --danger-text: #FF6B7A;
  --glass: rgba(30, 23, 38, .62);
  --grad-hero:
    radial-gradient(1200px 600px at 80% -10%, #3B2150 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #1F3B37 0%, transparent 55%);

  --badge-best-bg: #FF9166;  --badge-best-fg: #1B1420;
  --badge-new-bg: #7FE3C4;   --badge-new-fg: #1B1420;
  --badge-trend-bg: #B69CFF; --badge-trend-fg: #1B1420;

  /* Dark: inner hairline borders + warm glow instead of heavy shadows */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .02);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, .55);
  --ring-inner: inset 0 0 0 1px rgba(243, 236, 230, .06);
  --glow: 0 0 0 1px rgba(255, 145, 102, .25), 0 12px 40px rgba(255, 145, 102, .16), 0 0 60px rgba(182, 156, 255, .10);
  --scrim: rgba(8, 5, 10, .6);
  --noise-opacity: .04;
  --img-bg: #221A2B;
  --toast-ok: #18715C;
  --toast-err: #B43646;
  --chart-1: #E0683C;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #120E16; --bg-alt: #18121E; --surface: #1E1726; --surface-2: #281F31; --border: #3A2E45;
    --text: #F3ECE6; --text-muted: #A99CB3; --accent: #FF9166; --accent-ink: #1B1420; --accent-text: #FFAB8A;
    --mint: #7FE3C4; --mint-text: #7FE3C4; --lilac: #B69CFF; --lilac-text: #B69CFF; --danger: #FF6B7A; --danger-text: #FF6B7A;
    --glass: rgba(30, 23, 38, .62);
    --grad-hero: radial-gradient(1200px 600px at 80% -10%, #3B2150 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #1F3B37 0%, transparent 55%);
    --badge-best-bg: #FF9166; --badge-best-fg: #1B1420; --badge-new-bg: #7FE3C4; --badge-new-fg: #1B1420; --badge-trend-bg: #B69CFF; --badge-trend-fg: #1B1420;
    --shadow-1: 0 1px 0 rgba(255, 255, 255, .02); --shadow-2: 0 10px 30px rgba(0, 0, 0, .35); --shadow-3: 0 30px 80px rgba(0, 0, 0, .55);
    --ring-inner: inset 0 0 0 1px rgba(243, 236, 230, .06);
    --glow: 0 0 0 1px rgba(255, 145, 102, .25), 0 12px 40px rgba(255, 145, 102, .16), 0 0 60px rgba(182, 156, 255, .10);
    --scrim: rgba(8, 5, 10, .6); --noise-opacity: .04; --img-bg: #221A2B; --toast-ok: #18715C; --toast-err: #B43646; --chart-1: #E0683C;
  }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
}
@media (max-width: 767.98px) {
  :root { --bottom-nav-h: 64px; }
}
