/* ==========================================================================
   NAGI — design tokens
   Colour, type, space and motion. Every other stylesheet reads from here and
   defines no raw values of its own.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted faces. woff2, swap, no CDN call anywhere.

   Each family ships latin and latin-ext as separate faces with Google's own
   unicode-ranges, so the browser fetches latin-ext only when a page actually
   needs it. That split is not cosmetic: the rupee sign (U+20B9) lives in
   latin-ext, and every price on this site is a rupee. Ship latin alone and
   ₹ silently falls back to a system font on every product card.
   -------------------------------------------------------------------------- */

@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-latin.woff2") format("woff2-variations");
	font-weight: 300 600;
	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: "Fraunces";
	src: url("../fonts/fraunces-latin-ext.woff2") format("woff2-variations");
	font-weight: 300 600;
	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: "Hanken Grotesk";
	src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2-variations");
	font-weight: 300 700;
	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: "Hanken Grotesk";
	src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2-variations");
	font-weight: 300 700;
	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: "Space Mono";
	src: url("../fonts/space-mono-400.woff2") format("woff2");
	font-weight: 400;
	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: "Space Mono";
	src: url("../fonts/space-mono-400-ext.woff2") format("woff2");
	font-weight: 400;
	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: "Space Mono";
	src: url("../fonts/space-mono-700.woff2") format("woff2");
	font-weight: 700;
	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: "Space Mono";
	src: url("../fonts/space-mono-700-ext.woff2") format("woff2");
	font-weight: 700;
	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;
}

:root {

	/* ---- Core: the logo blacks --------------------------------------- */
	--nagi-ink:          #1A1A1A;
	--nagi-coal:         #242424;
	--nagi-coal-soft:    #333333;

	/* ---- Brand red (from the logo knot) ------------------------------ */
	--nagi-red:        #AF1A16;
	--nagi-red-lit:    #E05B52;   /* the red that survives a black ground */
	--nagi-red-deep:   #8A1411;   /* deep red — pressed and heavy rules */

	/*
	 * Text that sits ON the brand colour. The brass this replaced was a
	 * mid-tone: ink read against it at 8:1, so every filled control in the
	 * theme was built with dark text. Red is dark, and that same ink lands at
	 * 2.5:1 — so filled controls take this instead.
	 */
	--nagi-on-red:     #FFFFFF;

	/* ---- Paper: the logo ground and its cream ------------------------ */
	--nagi-paper:        #FDFAF5;
	--nagi-paper-deep:   #F2E4D7;
	--nagi-sand:         #E0CDBB;

	/* ---- Text -------------------------------------------------------- */
	--nagi-text-dark:    #1F1F1F;
	--nagi-text-mute:    #6B6560;
	--nagi-text-light:   #F6F1EA;
	--nagi-text-light-m: #B3ABA2;

	/* ---- Line accents ------------------------------------------------ */
	--nagi-l-attars: #A3312A;
	--nagi-l-ritual: #3E5B4A;
	--nagi-l-mesel:  #7A7069;
	--nagi-l-home:   #8A4B2A;
	--nagi-l-prayer: #E6D6C4;
	--nagi-l-oud:    #3A2A22;
	--nagi-l-decor:  #8C5A3C;
	--nagi-l-gift:   #6E3B4E;
	--nagi-l-dates:  #6B3A1E;

	/* Multi-faith tier */
	--nagi-l-incense: #A85A2B;
	--nagi-l-beads:   #4A5257;
	--nagi-l-lights:  #C2652F;
	--nagi-l-puja:    #9B3A2E;
	--nagi-l-altar:   #4E4048;

	/*
	 * Per-block accent, and the text colour that reads on it. Both are set
	 * inline by nagi_line_accent_style(), which picks the pairing from the
	 * accent's own luminance — the line accents run from #3A2A22 to the pale
	 * #E6D6C4, so a single hard-coded text colour cannot serve all of them.
	 */
	--nagi-accent:    var(--nagi-red);
	--nagi-accent-on: var(--nagi-on-red);

	/* ---- System ------------------------------------------------------ */
	--nagi-success: #2E6B4F;
	--nagi-error:   #A33A2E;
	--nagi-focus:   #AF1A16;

	/* ---- Type -------------------------------------------------------- */
	--nagi-f-display: "Fraunces", Georgia, "Times New Roman", serif;
	--nagi-f-body:    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--nagi-f-mono:    "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	--nagi-t-hero:  clamp(2.75rem, 6vw, 5.5rem);
	--nagi-t-h1:    clamp(2.25rem, 4.2vw, 3.75rem);
	--nagi-t-h2:    clamp(1.75rem, 3vw, 2.5rem);
	--nagi-t-h3:    clamp(1.35rem, 2vw, 1.75rem);
	--nagi-t-body:  clamp(1rem, 1.05vw, 1.0625rem);
	--nagi-t-small: 0.875rem;
	--nagi-t-micro: 0.75rem;

	--nagi-lh-body:    1.65;
	--nagi-lh-display: 1.05;
	--nagi-ls-display: -0.02em;
	--nagi-ls-mono:    0.08em;

	/* ---- Space ------------------------------------------------------- */
	--nagi-space-1: .5rem;
	--nagi-space-2: .75rem;
	--nagi-space-3: 1rem;
	--nagi-space-4: 1.5rem;
	--nagi-space-5: 2rem;
	--nagi-space-6: 3rem;
	--nagi-space-7: 4.5rem;
	--nagi-space-8: 6.5rem;
	--nagi-space-9: 9rem;

	--nagi-gutter:     clamp(1.125rem, 4vw, 3.5rem);
	--nagi-max:        1320px;
	--nagi-max-narrow: 760px;
	--nagi-radius:     2px;
	--nagi-radius-lg:  4px;

	/* Section rhythm: 8 on desktop, 6 on mobile. One token, set once. */
	--nagi-section-y: var(--nagi-space-8);

	/* ---- Motion ------------------------------------------------------ */
	--nagi-ease:      cubic-bezier(0.22, 1, 0.36, 1);   /* house curve */
	--nagi-ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
	--nagi-ease-both: cubic-bezier(0.65, 0, 0.35, 1);

	--nagi-dur-xs: 150ms;
	--nagi-dur-s:  250ms;
	--nagi-dur-m:  400ms;
	--nagi-dur-l:  700ms;
	--nagi-dur-xl: 1100ms;

	--nagi-stagger:       70ms;
	--nagi-stagger-tight: 45ms;

	/* ---- Chrome ------------------------------------------------------ */
	--nagi-header-h: 76px;
	--nagi-z-header: 100;
	--nagi-z-drawer: 200;
	--nagi-z-modal:  300;
	--nagi-z-toast:  400;
}

@media (max-width: 768px) {
	:root {
		--nagi-section-y: var(--nagi-space-6);
		--nagi-header-h: 64px;
	}
}

/* --------------------------------------------------------------------------
   Surfaces. A section declares which world it belongs to and everything
   inside it inherits the right text colours — no per-element overrides.
   -------------------------------------------------------------------------- */

.nagi-surface-ink,
.nagi-surface-navy {
	--nagi-surface-bg:     var(--nagi-ink);
	--nagi-surface-text:   var(--nagi-text-light);
	--nagi-surface-mute:   var(--nagi-text-light-m);
	--nagi-surface-rule:   rgba(246, 241, 234, 0.22);
	--nagi-surface-accent:   var(--nagi-red-lit);
	background-color: var(--nagi-surface-bg);
	color: var(--nagi-surface-text);
}

.nagi-surface-navy {
	--nagi-surface-bg: var(--nagi-coal);
}

.nagi-surface-paper,
.nagi-surface-paper-deep {
	--nagi-surface-bg:   var(--nagi-paper);
	--nagi-surface-text: var(--nagi-text-dark);
	--nagi-surface-mute: var(--nagi-text-mute);
	--nagi-surface-rule: rgba(26, 26, 26, 0.14);
	--nagi-surface-accent: var(--nagi-red);
	background-color: var(--nagi-surface-bg);
	color: var(--nagi-surface-text);
}

.nagi-surface-paper-deep {
	--nagi-surface-bg: var(--nagi-paper-deep);
}
