/**
 * Nature Hut — design tokens (Foundations V2, re-skinned onto the client's
 * approved marks). Every value below is the token the Foundations document
 * hands to the developer; legacy aliases from the v1 seven-colour build map
 * onto them so older rules keep resolving.
 *
 * Colour law (Foundations 01):
 *   Forest is the default action. Orange is reserved for add-to-cart and
 *   checkout — the two moments that move money — so it stays meaningful.
 *   Amber NEVER carries white text (1.8:1). Ink on amber, always.
 * Verified pairings: page-on-forest 8.2 · ink-on-amber 8.2 · page-on-orange 5.8
 *   · ink-on-cream 11.9 · muted-on-page 5.7
 */
:root {
	/* ---- Foundations V2 palette (paste-in set) ---- */
	--nh-forest:       #145A31;
	--nh-forest-deep:  #0D3C20;
	--nh-amber:        #FEB204;
	--nh-orange:       #A8471A;
	--nh-cream:        #FAE3BC;
	--nh-sand:         #F3F0E6;
	--nh-page:         #FEFEFB;
	--nh-line:         #E4DFCE;
	--nh-ink:          #1A2B20;
	--nh-muted:        #6B6553;
	--nh-error:        #9E2B20;
	--nh-orange-logo:  #C55A22; /* art only — never UI */

	/* ---- Derived surfaces (from the Foundations sheets) ---- */
	--nh-ground:       #EDE9DA; /* page ground behind the panel */
	--nh-surface:      #FFFFFF; /* cards */
	--nh-line-strong:  #D8D2C0; /* visible hairline / dividers */
	--nh-ink-soft:     #3E3B2E;
	--nh-muted-2:      #7A7360;
	--nh-forest-tint:  #E8F1EA; /* soft green wash */
	--nh-on-forest:    #DCEADF; /* body copy on forest */
	--nh-on-forest-dim:#B8D4BE;
	--nh-forest-line:  #1C6B3C; /* hairline on forest */
	--nh-orange-deep:  #8B3813; /* add-to-cart hover (Foundations 04) */
	--nh-amber-ink:    #6B4A12; /* BESTSELLER text on cream (Foundations 06) */
	--nh-disabled-bg:  #EDE9DA; /* disabled / sold-out fill */
	--nh-disabled-ink: #8E8B7C;
	--nh-link-line:    #A8C4AE; /* text-link underline */

	/* ---- Type (Foundations 02) ---- */
	--nh-serif:  'Literata', Georgia, 'Times New Roman', serif;
	--nh-sans:   'Instrument Sans', system-ui, -apple-system, sans-serif;
	--nh-mono:   'IBM Plex Mono', 'SF Mono', Menlo, monospace;
	--nh-script: 'Caveat', 'Segoe Script', cursive;

	/* ---- Space · 4px base (Foundations 03) ---- */
	--nh-s-xs: 4px;
	--nh-s-sm: 8px;
	--nh-s-md: 16px;
	--nh-s-lg: 24px;
	--nh-s-xl: 40px;
	--nh-s-2xl: 64px;
	--nh-s-3xl: 96px;

	/* ---- Radius: 4 badges · 6 controls · 10 cards · 999 pills ---- */
	--nh-r-sm: 4px;
	--nh-r:    6px;
	--nh-r-lg: 10px;
	--nh-r-pill: 999px;

	/* ---- Elevation: 0 line only · 1 hover/dropdown · 2 modal/drawer ---- */
	--nh-e-1: 0 2px 8px rgba(26, 43, 32, .08);
	--nh-e-2: 0 12px 32px rgba(26, 43, 32, .16);
	--nh-shadow-drawer: -12px 0 40px rgba(26, 43, 32, .22);
	--nh-shadow-float:  0 8px 24px rgba(26, 43, 32, .25);

	/* ---- Control heights: 52 large · 46 medium · 44 small (the floor) ---- */
	--nh-h-lg: 52px;
	--nh-h-md: 46px;
	--nh-h-sm: 44px;
	--nh-h-input: 48px;

	/* ---- Motion (ported from the design's GSAP timings) ---- */
	--nh-ease-out:   cubic-bezier(.215, .61, .355, 1);    /* power2.out  */
	--nh-ease-inout: cubic-bezier(.645, .045, .355, 1);   /* power2.inOut */
	--nh-ease-back:  cubic-bezier(.34, 1.56, .64, 1);     /* back.out(2) */
	--nh-ease-drawer: cubic-bezier(.2, .8, .2, 1);
	--nh-t-fast: .2s;
	--nh-t-mid:  .35s;
	--nh-t-slow: .6s;

	/* ---- Layout ---- */
	--nh-max: 1360px;
	--nh-gutter: 40px;

	/* ---- Legacy aliases (v1 seven-colour build) ---- */
	--nh-pine:        var(--nh-forest);
	--nh-pine-line:   var(--nh-forest-line);
	--nh-gold:        var(--nh-amber);
	--nh-terracotta:  var(--nh-orange);
	--nh-rust:        var(--nh-error);
	--nh-moss:        var(--nh-line-strong);
	--nh-panel:       var(--nh-page);
	--nh-well:        var(--nh-cream);
	--nh-border:      var(--nh-line);
	--nh-border2:     var(--nh-line-strong);
	--nh-ink2:        var(--nh-ink-soft);
	--nh-well-ink:    var(--nh-muted-2);
	--nh-r2:          var(--nh-r);
}

@media (max-width: 782px) {
	:root { --nh-gutter: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	:root { --nh-t-fast: .01ms; --nh-t-mid: .01ms; --nh-t-slow: .01ms; }
}
