/* =====================================================================
   Emerald Heat storefront · design tokens
   Source: mockup v2.3 (mockup-v2.3/assets/css/styles.css), spec v1.1 §2.
   Every colour pair used for text is listed with its contrast ratio in
   STOREFRONT.md. Rules: primary button is cream on emerald-700; gold-400
   is only ever used on emerald-900 (never gold text on cream).
   ===================================================================== */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-Italic-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  /* @store-config:colors start: generated from storefront/store.config.json "colors" by npm run pages:catalog. Edit the JSON, not these lines. */
  --emerald-900: #023A1C;  /* logo field: headings, footer, dark band */
  --emerald-700: #0B5B33;  /* primary: buttons, links */
  --emerald-950: #01291A;  /* hover on emerald-900 buttons */
  --gold-400: #E3AD3B;     /* logo gold: ONLY on emerald-900 */
  --gold-700: #87620F;     /* gold darkened for accents on cream (wordmark HEAT, nav underline) */
  --cream-50: #FDF8EE;     /* page */
  --paper-100: #F6F1E7;    /* alternate band, hover */
  --kraft-200: #EFE2C8;    /* one warm band per page, at most */
  --slot-warm: #ECE6DA;    /* product photo slot */
  --slot-green: #DDE3D3;   /* garden photo slot */
  --rule: #D8CCB4;         /* decorative hairlines (not a UI boundary) */
  --rule-strong: #8A7B5F;  /* UI borders: chips, inputs, placeholders (3.91:1 on cream) */
  --ink-900: #1E2620;      /* body text */
  --ink-600: #4E5A52;      /* muted text */
  --mint-200: #CFE3D6;     /* muted text on emerald-900 */
  --mint-100: #E4EFE8;     /* tagline on emerald-900 */
  --white: #FFFFFF;        /* input fill */
  --red-700: #A3241B;      /* error text and border on cream / white */
  --red-50: #FBE9E6;       /* error tint */
  --amber-100: #FCEBC4;    /* warning / awaiting tint */
  --green-100: #DDEFE3;    /* success / paid tint */
  --blue-50: #E6EEF2;      /* info tint */
  --grey-600: #5F665F;     /* disabled text */
  --grey-100: #EDE8DD;     /* disabled fill */
  /* @store-config:colors end */

  /* ---- Semantic roles (use these in components) ---- */
  --color-bg: var(--cream-50);
  --color-bg-alt: var(--paper-100);
  --color-bg-warm: var(--kraft-200);
  --color-bg-dark: var(--emerald-900);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-600);
  --color-heading: var(--emerald-900);
  --color-link: var(--emerald-700);
  --color-link-hover: var(--emerald-900);
  --color-accent: var(--gold-700);
  --color-primary: var(--emerald-700);
  --color-primary-hover: var(--emerald-900);
  --color-on-primary: var(--cream-50);
  --color-border: var(--rule-strong);
  --color-divider: var(--rule);
  --color-focus: var(--emerald-900);
  --color-focus-halo: var(--gold-400);
  --color-on-dark: var(--cream-50);
  --color-on-dark-muted: var(--mint-200);
  --color-accent-on-dark: var(--gold-400);
  --color-error: var(--red-700);
  --color-error-bg: var(--red-50);
  --color-warning-bg: var(--amber-100);
  --color-success-bg: var(--green-100);
  --color-info-bg: var(--blue-50);
  --color-disabled: var(--grey-600);
  --color-disabled-bg: var(--grey-100);
  --color-scrim: rgba(30, 38, 32, .45);
  --color-header-bg: rgba(253, 248, 238, .97);

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-2xs: .6875rem;  /* 11px */
  --text-xs: .8125rem;   /* 13px: labels, eyebrows */
  --text-sm: .875rem;    /* 14px: small print */
  --text-md: .9375rem;   /* 15px: secondary */
  --text-base: 1rem;     /* 16px: buttons, inputs */
  --text-body: 1.0625rem;/* 17px: body */
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-h3: 1.2rem;
  --text-h2: clamp(1.9rem, 3.4vw + .9rem, 3.1rem);
  --text-h1: clamp(2.6rem, 8vw + .4rem, 5.6rem);
  --text-lede: clamp(1.2rem, 1vw + 1rem, 1.5rem);
  --leading-body: 1.65;
  --leading-snug: 1.4;
  --leading-tight: 1.08;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-display: -.015em;
  --tracking-label: .06em;
  --tracking-wordmark: .14em;

  /* ---- Spacing (4px base) ---- */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* ---- Layout ---- */
  --gutter: 1.25rem;     /* 2.5rem from 1024px */
  --max: 1240px;         /* content max at 1440 */
  --measure: 40rem;      /* reading width */
  --tap: 44px;           /* minimum tap target */
  --header-h: 72px;
  --drawer-w: 420px;     /* spec 2.4 */
  --bp-nav: 900px;       /* desktop nav (media queries can’t read vars; documented) */

  /* ---- Radii ---- */
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  /* ---- Focus ---- */
  --focus-width: 2px;
  --focus-offset: 3px;
  --focus-halo: 5px;

  /* ---- Motion and layers ---- */
  --dur-fast: .15s;
  --dur: .2s;
  --z-sticky: 20;
  --z-header: 40;
  --z-drawer: 90;
  --z-toast: 95;
}
@media (min-width: 1024px) { :root { --gutter: 2.5rem; } }
