/*
  Mena Made design tokens (see design/rules.md, which overrides every earlier design file)

  Fonts are self-hosted from /fonts/ (see base.css); no Google Fonts links.

  Type: one family (Inter), two weights (400 and 600), five styles. The styles are defined once
  in base.css (h1 Display, h2/h3 Heading, body Body, .t-small Small, .t-lead Large body); these are
  their sizes and line heights. No other file sets a size, weight, family, letter-spacing or case.
*/

:root {
  /* ---- Colour: surfaces ---- */
  --mm-cream: #F7F6F2;          /* page background; matches the logo background exactly */
  --mm-card: #FFFDF9;           /* cards, form fields, order panel */
  --mm-linen: #EEE8DD;          /* alternate sections, photo backdrops, footer */
  --mm-sage-tint: #E3E7DA;      /* "open" bands, selected collection option */
  --mm-clay-tint: #F3E4DC;      /* "opens soon" bands */
  --mm-danger-tint: #F6E3DF;    /* error backgrounds */

  /* ---- Colour: brand ---- */
  --mm-terracotta: #8B4A3A;     /* logo script colour: primary buttons, prices, links */
  --mm-terracotta-deep: #6F3A2D;/* button hover/pressed, link hover */
  --mm-sage: #5A684D;           /* logo wheat/"SOURDOUGH" colour: icons, success */
  --mm-sage-deep: #46533B;      /* text on sage tint, sage button hover */
  --mm-wheat: #C9B48A;          /* decorative only: rules, dividers, illustrations (never text on light) */

  /* ---- Colour: text and lines ---- */
  --mm-ink: #3B2A22;            /* body text and headings (warm dark brown, 12.6:1 on cream) */
  --mm-ink-soft: #6A5A4F;       /* secondary text, descriptions, captions (6.1:1 on cream) */
  --mm-ink-faint: #8E8177;      /* field borders, disabled text (3.5:1, non-body use only) */
  --mm-line: #D9D0C3;           /* hairline dividers and card borders (decorative) */
  --mm-danger: #9A2F25;         /* errors, failed payments (6.9:1 on cream) */
  --mm-focus: #46533B;          /* focus outline: solid, never blurred */

  /* ---- Type: one family, two weights, five styles (design/rules.md) ---- */
  --mm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mm-font-heading: var(--mm-font);   /* deprecated alias of --mm-font */
  --mm-font-body: var(--mm-font);      /* deprecated alias of --mm-font */

  --mm-weight-regular: 400;     /* normal */
  --mm-weight-semibold: 600;    /* bold: headings, labels, buttons, prices, totals, emphasis */

  /* Display: the one big headline at the top of a page. 32px on a phone, 48px on a laptop. */
  --mm-text-display: clamp(2rem, 1.5rem + 2vw, 3rem);
  --mm-leading-display: 1.1;
  /* Heading: section, card and panel headings (h2, h3). 20px to 24px. */
  --mm-text-heading: clamp(1.25rem, 1.125rem + 0.5vw, 1.5rem);
  --mm-leading-heading: 1.25;
  /* Large body: the one intro sentence under a Display headline. 18px to 20px. */
  --mm-text-lead: clamp(1.125rem, 1.0625rem + 0.25vw, 1.25rem);
  --mm-leading-lead: 1.55;
  /* Body: running text, labels, buttons, nav, table cells, prices. 16px (stops iOS zoom in fields). */
  --mm-text-body: 1rem;
  --mm-leading-body: 1.6;
  /* Small: helper text, captions, meta lines, footnotes, status words. 14px. */
  --mm-text-small: 0.875rem;
  --mm-leading-small: 1.5;

  /* ---- Space (4px steps) ---- */
  --mm-space-1: 0.25rem;  /* 4  */
  --mm-space-2: 0.5rem;   /* 8  */
  --mm-space-3: 0.75rem;  /* 12 */
  --mm-space-4: 1rem;     /* 16 */
  --mm-space-5: 1.5rem;   /* 24 */
  --mm-space-6: 2rem;     /* 32 */
  --mm-space-7: 3rem;     /* 48 */
  --mm-space-8: 4rem;     /* 64 */
  --mm-space-9: 6rem;     /* 96 */

  --mm-gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);  /* page side padding: 16px on a phone */
  --mm-content-max: 72rem;       /* 1152px page width */
  --mm-reading-max: 38rem;       /* comfortable text column */

  --mm-space-10: 7rem;    /* 112: desktop gap between storefront sections */

  /* ---- Shape ---- */
  --mm-radius-control: 4px;      /* fields, steppers (both sides) */
  --mm-radius-button: 6px;       /* the one button */
  --mm-radius-section: 8px;      /* admin sections, lists, tables */
  --mm-radius-photo: 2px;        /* photos */
  --mm-radius-sm: 4px;           /* older name: now the control radius */
  --mm-radius-md: 8px;           /* older name: now the section radius */
  --mm-radius-lg: 8px;           /* older name: large panels, kept square-ish */

  --mm-border: 1px solid var(--mm-line);
  --mm-rule: var(--mm-border);   /* every hairline */
  --mm-border-field: 1px solid var(--mm-ink-faint);

  /* ---- Depth: retiring, nothing uses shadows any more (left defined until every page lands) ---- */
  --mm-shadow-1: 0 1px 2px rgba(59, 42, 34, 0.06), 0 2px 6px rgba(59, 42, 34, 0.04);
  --mm-shadow-2: 0 2px 4px rgba(59, 42, 34, 0.06), 0 8px 20px rgba(59, 42, 34, 0.06);
  --mm-shadow-bar: 0 -1px 0 var(--mm-line), 0 -4px 12px rgba(59, 42, 34, 0.05);

  /* ---- Controls ---- */
  --mm-control-height: 3rem;     /* 48px: inputs */
  --mm-button-height: 2.75rem;   /* 44px: buttons */
  --mm-control-height-sm: 2.5rem;/* 40px: small buttons, stepper squares */

  /* ---- Storefront v2 (Nov 2026, design/redesign/storefront-v2.md). Used only under body.site. ---- */
  --mm-cocoa: #2B1B14;           /* deep chocolate bands and the footer (cream on it 15.9:1) */
  --mm-cocoa-line: rgba(247, 246, 242, 0.14); /* hairlines on cocoa */
  --mm-oat: #EFE8DC;             /* alternate band, page bands */
  --mm-oat-deep: #E6DDCE;        /* chips and wells on oat */
  --mm-cream-on-dark: #F3EDE4;   /* body text on cocoa */
  --mm-cream-soft: #CDBFAF;      /* secondary text on cocoa (8.9:1) */
  --mm-radius-card: 14px;        /* product cards, panels, photos */
  --mm-radius-input: 10px;       /* storefront fields */
  --mm-band-pad: clamp(3rem, 2rem + 3.5vw, 5rem); /* the one space between storefront sections (48px phone, 80px laptop): bands, the opening, the week band, the menu, the footer */
  --mm-shop-max: 76rem;          /* 1216px storefront width */
  --mm-header-h: 64px;           /* sticky header height (80px from 960px) */

  /* ---- Motion ---- */
  --mm-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --mm-duration: 160ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --mm-duration: 0ms; }
}
@media (min-width: 960px) {
  :root { --mm-header-h: 80px; }
}
