/* NoteyStuff — design tokens.
 *
 * The ONLY file in this theme allowed to contain raw hex values. Components read the
 * semantic aliases below, never the palette directly — that is what makes an inaccessible
 * pairing structurally impossible to pick.
 *
 * Every contrast figure in the comments is measured (WCAG 2.1 relative luminance) by
 * scripts/check_contrast.py. Do not introduce a pair without running it.
 *
 * Spec: docs/redesign/design-system.md
 */

:root {
	--ns-build: 2026-08-28-b; /* deploy-loop marker: bump to prove a deploy reached the live combined CSS */
	/* ---------------------------------------------------------------
	 * 1. Brand palette — owner-approved list, 22 Aug 2026.
	 * The Brand Guide PDF's #C8B6E2 lavender and #ECECFB blush are superseded.
	 * --------------------------------------------------------------- */
	--ns-rose: #e16c9f;          /* Rose Pink        — plum text 4.96, white 3.07 */
	--ns-lavender: #ad84c1;      /* Dusty Lavender   — plum text 4.96, white 3.07 */
	--ns-periwinkle: #c2c2dc;    /* Soft Periwinkle  — plum 8.72 */
	--ns-lilac: #d1b7de;         /* Lilac Mist       — plum 8.36 */
	--ns-blush: #ec9cbf;         /* Blush Pink       — plum 7.30 */
	--ns-dusty-blush: #e5b9ca;   /* Dusty Blush      — plum 8.78 */
	--ns-powder: #c1d7ed;        /* Powder Blue      — plum 10.29 */
	--ns-aqua: #93d1e0;          /* Sky Aqua         — plum 9.01 */
	--ns-ice: #cfe4e9;           /* Ice Blue         — plum 11.54 */
	--ns-sage: #9abcb6;          /* Sage Tea         — plum 7.42 */
	--ns-plum: #2B2433;          /* Deep Plum        — 14.83 on canvas */
	--ns-canvas: #fffbfd;        /* Canvas           — page ground */
	--ns-white: #ffffff;

	/* Derived shades. Mandatory: the palette alone cannot produce AA text.
	 * Raw rose/lavender as text on canvas measure 2.99 — below even the large-text floor. */
	--ns-rose-ink: #b23670;         /* 5.60 on canvas · white on it 5.75 */
	--ns-rose-ink-hover: #93275c;   /* 7.62 on canvas */
	--ns-lavender-ink: #7c4c94;     /* 6.17 on canvas */
	--ns-plum-muted: #5a4a63;       /* secondary text, still AA on canvas */

	/* Tints for washes and hover states, derived from the palette. */
	--ns-rose-wash: #fdf1f6;
	--ns-lavender-wash: #f6f0fa;
	--ns-ice-wash: #f2f8fa;

	/* ---------------------------------------------------------------
	 * 2. Semantic colour — what components actually consume.
	 * --------------------------------------------------------------- */
	--ns-color-bg: var(--ns-canvas);
	--ns-color-surface: var(--ns-white);
	--ns-color-surface-quiet: var(--ns-ice-wash);
	--ns-color-surface-warm: var(--ns-rose-wash);
	--ns-color-surface-accent: var(--ns-lavender-wash);

	--ns-color-text: var(--ns-plum);
	--ns-color-text-muted: var(--ns-plum-muted);
	--ns-color-text-on-brand: var(--ns-plum);      /* on rose/lavender fills — 4.96 */
	--ns-color-text-inverse: var(--ns-white);      /* only on --ns-color-cta-solid — 5.75 */

	--ns-color-link: var(--ns-rose-ink);
	--ns-color-link-hover: var(--ns-rose-ink-hover);

	--ns-color-cta: var(--ns-rose);                /* pairs with --ns-color-text-on-brand */
	--ns-color-cta-hover: #e87fac;                 /* hover LIGHTENS: plum label stays 5.84.
	                                                * Darkening this fill would drop the plum
	                                                * label to 4.28 and fail AA. */
	--ns-color-cta-solid: var(--ns-rose-ink);      /* pairs with --ns-color-text-inverse */
	--ns-color-cta-solid-hover: var(--ns-rose-ink-hover);
	--ns-color-accent: var(--ns-lavender);
	--ns-color-accent-ink: var(--ns-lavender-ink);

	--ns-color-border: #efd9e2;                    /* decorative hairline only — 1.3 on canvas,
	                                                * never use it to delimit a control */
	--ns-color-border-strong: #9b6eb2;             /* control borders — 3.89 on canvas, meets the
	                                                * 3:1 non-text minimum (raw lavender is 2.99) */
	--ns-color-focus: var(--ns-plum);              /* 14.83 on canvas — rose would be 2.99 */

	--ns-color-success: var(--ns-sage);
	--ns-color-success-wash: #eef5f3;
	--ns-color-info: var(--ns-powder);
	--ns-color-info-wash: #eff5fb;
	--ns-color-notice: var(--ns-blush);
	--ns-color-notice-wash: var(--ns-rose-wash);
	--ns-color-danger: #a3283f;                    /* 6.4 on canvas */
	--ns-color-danger-wash: #fceff1;

	/* ---------------------------------------------------------------
	 * 3. Typography
	 * --------------------------------------------------------------- */
	--ns-font-display: 'Baloo Bhaijaan 2', 'Baloo Fallback', 'Trebuchet MS', sans-serif;
	--ns-font-body: 'Quicksand', 'Quicksand Fallback', 'Segoe UI', system-ui, sans-serif;

	--ns-text-xs: 0.75rem;
	--ns-text-sm: 0.875rem;
	--ns-text-base: 1rem;
	--ns-text-lg: 1.125rem;
	--ns-text-xl: clamp(1.25rem, 0.5vw + 1.13rem, 1.375rem);

	--ns-h4: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
	--ns-h3: clamp(1.375rem, 1vw + 1.13rem, 1.75rem);
	--ns-h2: clamp(1.75rem, 2vw + 1.25rem, 2.5rem);
	--ns-h1: clamp(2.125rem, 3.2vw + 1.4rem, 3.5rem);

	--ns-weight-body: 500;
	--ns-weight-medium: 600;
	--ns-weight-display: 700;

	--ns-leading-tight: 1.15;
	--ns-leading-snug: 1.35;
	--ns-leading-body: 1.6;
	--ns-tracking-tight: -0.01em;
	--ns-tracking-wide: 0.04em;
	--ns-measure: 68ch;
	--ns-measure-narrow: 56ch;

	/* ---------------------------------------------------------------
	 * 4. Space, layout
	 * --------------------------------------------------------------- */
	--ns-space-1: 0.25rem;
	--ns-space-2: 0.5rem;
	--ns-space-3: 0.75rem;
	--ns-space-4: 1rem;
	--ns-space-5: 1.5rem;
	--ns-space-6: 2rem;
	--ns-space-7: 3rem;
	--ns-space-8: 4rem;

	--ns-section-y: clamp(2rem, 4.5vw, 3.5rem); /* was 2.5-5rem; 80px top + 80px bottom
	                                              * between two adjacent full-bleed bands read as
	                                              * a gap rather than as rhythm. */
	--ns-container: 1200px;
	--ns-container-wide: 1360px;
	--ns-container-narrow: 720px;
	--ns-gutter: clamp(1rem, 4vw, 2rem);

	/* ---------------------------------------------------------------
	 * 5. Shape, elevation, motion
	 * --------------------------------------------------------------- */
	--ns-radius-sm: 8px;
	--ns-radius-md: 12px;
	--ns-radius-lg: 18px;
	--ns-radius-xl: 24px;
	--ns-radius-pill: 999px;

	/* Plum-tinted, not neutral black — grey shadow on a warm ground reads as dirt. */
	--ns-shadow-sm: 0 1px 2px rgb(45 33 53 / 0.06), 0 1px 3px rgb(45 33 53 / 0.08);
	--ns-shadow-md: 0 4px 12px rgb(45 33 53 / 0.08), 0 2px 4px rgb(45 33 53 / 0.06);
	--ns-shadow-lg: 0 12px 32px rgb(45 33 53 / 0.12), 0 4px 8px rgb(45 33 53 / 0.06);

	--ns-focus-width: 3px;
	--ns-focus-offset: 2px;
	--ns-tap-min: 44px;

	--ns-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--ns-duration: 200ms;
	--ns-transition: var(--ns-duration) var(--ns-ease);

	--ns-z-header: 100;
	--ns-z-dropdown: 200;
	--ns-z-overlay: 300;
	--ns-z-float: 400;
}

/* Honour the user's motion preference everywhere, once. */
@media (prefers-reduced-motion: reduce) {
	:root {
		--ns-duration: 0.01ms;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important; /* reduced-motion override, intentional */
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Owner palette, 8 November 2026. */
:root {
 --ns-home-paper: #EDE5F6;
 --ns-home-trust: #E7F2F4;
 --ns-home-instagram: #FCF0F5;
 --ns-home-contact: #C8B6E2;
 --ns-product-strip: #C4467F;
}
