/* Bigbelle design tokens (PRD section 14). The only file that may contain
   `font-family`. Every other stylesheet uses the classes and element rules
   defined in the "Font application" section below. */

/* Fonts: self-hosted, latin subset, only the weights the design uses.
   Syne 500/600/700, DM Sans 500/700 (static cut at the default optical size, 14). */
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/login/static/fonts/syne-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/login/static/fonts/syne-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/login/static/fonts/syne-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/login/static/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/login/static/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Colour */
  --color-maroon: #660033; /* text, primary buttons, announcement bar, outlines */
  --color-beige: #f7d9bc; /* footer and section backgrounds, text on maroon */
  --color-pink: #e75897; /* promotion only: struck price, discount badge */
  --color-pink-text: #b8336a; /* promotion text (discount, struck price): the pink darkened to 4.5:1 on white and blush */
  --color-blush: #fcedf4; /* card and hero backgrounds (sampled from product cards) */
  --color-white: #ffffff;
  --color-error: #b00020; /* validation messages in the admin */
  --color-whatsapp: #29a71a; /* the floating WhatsApp button's disc (sampled from the Figma mark) */

  /* Typefaces */
  --font-display: "Syne", system-ui, sans-serif; /* headings, navigation, product names */
  --font-body: "DM Sans", system-ui, sans-serif; /* body, prices, buttons, labels */
  --weight-regular: 500;
  --weight-strong: 700;
  --weight-display-medium: 500;
  --weight-display-semibold: 600;
  --weight-display-bold: 700;

  /* Type scale. Fluid between 402 px and 1440 px; body is never below 16 px. */
  --text-sm: 0.875rem; /* labels, captions only */
  --text-base: 1rem; /* body */
  --text-lg: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); /* long-form headings (policy pages, list blocks) */
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 3.125rem); /* long-form page titles (policy pages, not found) */
  --text-4xl: clamp(2.25rem, 1.6rem + 2.8vw, 4rem); /* hero heading */
  --text-display: clamp(2.25rem, 1.9rem + 1.4vw, 3.125rem); /* display headlines (hero, bands, page titles): 36 px at 402, 50 px at 1440 */
  --text-section: clamp(1.75rem, 1.65rem + 0.4vw, 2rem); /* section and card titles: 28 px at 402, 32 px at 1440 */
  --leading-tight: 1.15;
  --leading-body: 1.5;

  /* Spacing: 4/8 px scale on a 16 px root */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radius */
  --radius-photo: 0.75rem; /* 12 px */
  --radius-card: 1.25rem; /* 20 px, feature cards */
  --radius-chip: 1rem; /* 16 px */
  --radius-pill: 999px;

  /* Layout. Custom properties cannot be used inside @media conditions, so
     the breakpoints are repeated as literals in the stylesheets; these values
     are for scripts and documentation, and a test keeps them in sync. */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
  --content-max: 1360px;
  --touch-target: 2.75rem; /* 44 px minimum; buttons are 3rem (48 px) */

  /* Motion. Strong curves: the built-in ease-out is too weak for UI. Entrances and exits use --ease-out, things that move
     on screen use --ease-in-out. UI stays at or under 300 ms; the one-time marketing entrances (scroll reveal, the hero)
     may run longer. Every movement sits behind prefers-reduced-motion: no-preference. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-press: 150ms; /* button press, hover colour */
  --duration-ui: 250ms; /* menus, accordions, photo swaps */
  --duration-reveal: 700ms; /* one-time entrance on scroll or load */
  --stagger: 70ms; /* between items of a group entrance */
}

/* Font application. Keeps `font-family` out of every other stylesheet. */
html {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: 100%;
}
h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  font-weight: var(--weight-display-semibold);
}
.font-body {
  font-family: var(--font-body);
}
/* DM Sans on phones, Syne from 1024 px: the frames set the contact form labels this way (165:932, 135:182). Body text and
   buttons stay in DM Sans everywhere. */
@media (min-width: 1024px) {
  .font-display-lg {
    font-family: var(--font-display);
  }
}
button,
input,
select,
textarea {
  font-family: inherit;
}
