/* ==========================================================================
   Base: design tokens — Figma variables + measured values
   Shopify: these become settings_schema.json values printed as CSS custom
   properties in layout/theme.liquid
   ========================================================================== */
:root {
  /* Colour */
  --color-text-primary: #080808;   /* Figma: Text/color-text-primary */
  --color-text-inverse: #ffffff;   /* Figma: Text/color-text-inverse */
  --color-text-menu: #242424;      /* solid header nav text (Menu component) */
  --color-text-secondary: #4b4b4b; /* Figma: Text/color-text-secondary */
  --color-text-tertiary: #747474;  /* Figma: Text/color-text-tertiary */
  --color-text-disabled: #b0b0b0;  /* Figma: Text/color-text-disabled */
  --color-text-critical: #ff383c;  /* low-stock note (Product Of The Week, 1164-2510) */
  --color-icon-primary: #080808;   /* Figma: Icon/color-icon-primary */
  --color-icon-secondary: #6f6f6f; /* Figma: Icon/color-icon-secondary */
  --color-icon-tertiary: #bfbfbf;  /* Figma: Icon/color-icon-tertiary */
  --color-icon-inverse: #f6f6f6;
  --color-success: #00a645;        /* Figma: Border/color-success (sale badge) */
  --color-sold-out: #a2a2a2;       /* sold-out badge */
  --color-border-secondary: #3b3b3b; /* Figma: Border/border-color-secondary (swatch ring) */
  --color-border-tertiary: #e2e2e2;  /* Figma: Border/border-color-tertiary (progress track) */
  --color-surface-primary: #080808;   /* Figma: Sufrace/surface-primary (button-primary) */
  --color-surface-secondary: #dfdfdf; /* Figma: surface swatch 2 (disabled button) */
  --color-surface-inverse: #f6f6f6;   /* Figma: surface swatch 3 */
  --color-surface-tertiary: #f6f6f6;  /* Figma: Sufrace/surface-tertiary (countdown banner) */
  --color-border-strong: #080808;     /* Figma: Border/Strong */
  --color-border-focus: #6f6f6f;      /* Figma: Border/Focus */
  --color-border-default: #b6b6b6;    /* Figma: Border/Default */
  --color-surface-product: #eff1ef;  /* product card image background */
  --color-surface-product-alt: #f5f5f5;
  --color-surface-muted: #f2f2f2;    /* promo panel fill behind the image */
  --color-white: #ffffff;
  --color-black: #080808;
  --color-background: #ffffff;     /* page background (Figma page frame) */
  --color-page-bg: #eaeaea;        /* hero frame fill, shows behind media only */
  --color-border-menu: #e2e2e2;
  --color-separator: #979797;
  --color-brand-lime: #d7ff68;
  --color-line-inverse: rgba(255, 255, 255, 0.2);
  --color-line-inverse-soft: rgba(255, 255, 255, 0.16);
  --color-bullet-track: rgba(255, 255, 255, 0.4);

  /* Type families (see base/fonts.css) */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-display-alt: "Cormorant", "EB Garamond", Georgia, serif;
  --font-logo: "Averia Serif Libre", Georgia, serif;

  /* Type scale — Figma text styles */
  --text-display-xl-size: 64px;     /* Display/L   — EB Garamond 500 / 1.2 (Brand Story) */
  --text-display-m-size: 56px;      /* Display/M   — EB Garamond 500 / 1.2 */
  --text-display-l-size: 48px;      /* Heading/H1 — EB Garamond 500 / 1.2 */
  --text-display-s-size: 32px;      /* section titles — EB Garamond 500 / 1.2, cap-trimmed */
  --text-display-alt-size: 48px;    /* Cormorant 600 / 1 */
  --text-display-sans-size: 56px;   /* Inter 500 / 1.2 */
  --text-body-l-size: 18px;         /* Inter 400 / 1.2 */
  --text-body-m-size: 14px;         /* Body/M   — Inter 400 / 1.4 */
  --text-body-s-size: 12px;         /* Body/S   — Inter 500 / 1.2 (also Button/M) */
  --text-label-s-size: 10px;        /* Label/S  — Inter 500 / 1 */
  --text-logo-size: 24px;           /* Averia Serif Libre 700 italic / 1 */

  /* Layout */
  --page-width: 1320px;
  --page-gutter: 60px;
  --page-max: calc(var(--page-width) + 2 * var(--page-gutter)); /* 1440 */
  --header-height: 56px;
  --hero-height: clamp(520px, 58.333vw, 840px); /* 840px at the 1440px design width */
  --radius-sm: 2px;
  /* Figma rounds hug-width text boxes up to whole pixels, so a row of labels drifts up to 1px per
     item without this. Browsers lacking calc-size() ignore it and use the text's own width. */
  --width-whole-px: calc-size(max-content, round(up, size, 1px));

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
}

@media (max-width: 749px) {
  :root {
    --page-gutter: 20px;
  }
}
