/*
 * Anahata v2 — base overrides.
 * Maps the design tokens in anahata-tokens.css onto Dawn's engine variables so
 * stock Dawn sections inherit the brand look until we replace them component by
 * component. Loaded straight after base.css. Keep this file small — real
 * component styling lives in per-component CSS.
 */

/* Dawn consumes colors as "R, G, B" triplets: rgb(var(--color-foreground)) */
:root,
.color-scheme-1,
.color-scheme-2,
.color-scheme-3,
.color-scheme-4,
.color-scheme-5 {
  /* all from the cream anchors in anahata-tokens.css — no colour values here */
  --color-background: var(--a-paper-rgb);
  --color-foreground: var(--a-ink-rgb);
  --color-button: var(--a-ink-pure-rgb);
  --color-button-text: var(--a-ivory-rgb);
  --color-secondary-button: var(--a-sand-rgb);
  --color-secondary-button-text: var(--a-ink-rgb);
  --color-link: var(--a-ink-rgb);
  --color-shadow: var(--a-ink-pure-rgb);
  /* Dawn's scheme CSS also sets these from the (white) scheme backgrounds */
  --color-badge-background: var(--a-paper-rgb);
  --color-badge-foreground: var(--a-ink-rgb);
  --color-badge-border: var(--a-ink-rgb);
  --payment-terms-background-color: var(--a-paper);
  --gradient-background: var(--a-bg);              /* Dawn's .gradient body bg */
}

:root {
  --font-body-family: var(--a-font-body);
  --font-body-style: normal;
  --font-body-weight: 400;
  --font-body-weight-bold: 600;

  --font-heading-family: var(--a-font-display);
  --font-heading-style: normal;
  --font-heading-weight: 400;

  /* Dawn sets html font-size to 62.5%, so 1rem = 10px = --a-radius */
  --buttons-radius: var(--a-radius);
  --buttons-radius-outset: var(--a-radius);
  --inputs-radius: var(--a-radius);
  --media-radius: var(--a-radius);
  --product-card-corner-radius: var(--a-radius);
  --popup-corner-radius: var(--a-radius);
  --text-boxes-radius: var(--a-radius);
}

body {
  color: rgb(var(--color-foreground));
  background-color: var(--a-bg);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* room for the fixed bottom tab bar */
  padding-bottom: calc(var(--a-tabbar-height) + env(safe-area-inset-bottom, 0px));
}

/* no tab bar from 990px (the desktop header replaces it) — no room for it */
@media screen and (min-width: 990px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5,
.h0, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-heading-family);
  font-style: var(--font-heading-style);
  font-weight: var(--font-heading-weight);
  letter-spacing: 0;
}

/* Product photos are shown as photographed — no cream overlay (designer
   review 2026-09-29: "too creamy and dark"). They sit on --a-photo-ground,
   the packshots' own backdrop colour. */
