/* Alfasila's theme: fonts and colours. Served at /theme.css to the shop and to the shared
   tracking page, so both look like the pharmacy. The block at the end maps these colours
   onto the tokens shared parts use (see shared/styles/tokens.css). */

/* Display face, self-hosted so index.html can preload it. */
@font-face {
  font-family: 'Alexandria Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/alexandria-arabic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Alexandria Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/alexandria-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand tokens, sampled from the Al Fasila logo and Instagram posts. */
:root {
  color-scheme: light;

  /* colour */
  --paper: #f1efe3;      /* post background: cool, sage-tinted paper */
  --cream: #f6efd5;      /* logo tile */
  --mist: #e4e9d2;       /* soft sage panels */
  --sage: #89986d;       /* logo green */
  --leaf: #5f8a49;       /* mid green for light headline weight */
  --forest: #2f5b2b;     /* primary actions + emphasis */
  --forest-deep: #22421f;
  --lime: #dce6a0;       /* the glow in their green posts */
  --ink: #1e2b1b;
  --muted: #56634f;
  --line: rgb(30 43 27 / 0.13);
  --danger: #a3342a;

  /* type */
  --font-display: 'Alexandria Variable', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.19rem;
  --step-2: clamp(1.5rem, 1.1rem + 2vw, 2.1rem);
  --step-3: clamp(2rem, 1.3rem + 3.4vw, 3rem);
  --step-hero: clamp(3.1rem, 1.3rem + 9vw, 6.2rem);

  /* shape: the logo's leaf, two opposite corners rounded */
  --leaf-sm: 14px 4px 14px 4px;
  --leaf-md: 22px 5px 22px 5px;
  --leaf-lg: 40px 8px 40px 8px;

  /* layout */
  --gutter: 16px;
  --max: 1180px;
  --topbar-h: 58px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* shared parts (cart, checkout, product details, tracking) */
  --bg: var(--paper);
  --surface: #fbfaf4;
  --soft: var(--mist);
  --text: var(--ink);
  --placeholder: #6f7a67;
  --accent: var(--forest);
  --accent-strong: var(--forest-deep);
  --on-accent: var(--cream);
  --accent-quiet: var(--sage);
  --highlight: var(--lime);
  --backdrop: rgb(20 36 18 / 0.5);
  --radius-sm: var(--leaf-sm);
  --radius-md: var(--leaf-md);
  --radius-lg: var(--leaf-lg);
}

@media (min-width: 720px) {
  :root { --gutter: 28px; --topbar-h: 66px; }
}
