/* Morocco Merzouga — design tokens
   Layout concept: the logo's Moorish arch over a lattice is the signature frame;
   indigo night bands alternate with sunlit chalk pages, saffron marks every action. */

:root {
  /* Colour — brand */
  --saffron: #cf8a00;          /* logo ochre: fills, icons, large text only */
  --saffron-soft: #f4dfb0;
  --henna: #8a5300;            /* saffron darkened for text/links on light (AA) */
  --indigo: #17223a;           /* Tuareg indigo: ink, night sections */
  --indigo-2: #233256;
  --indigo-3: #34467a;
  --palm: #2f6a52;             /* oasis green: success, "included" ticks */
  --clay: #a2472a;             /* errors, rare emphasis */

  /* Colour — neutrals (warm-biased toward saffron) */
  --chalk: #fdfbf7;            /* page */
  --dune: #f5eedf;             /* alternate band */
  --line: #e6dccb;
  --stone: #6b6358;            /* muted text */
  --ink: #221e19;              /* body text */
  --white: #ffffff;

  /* Semantic */
  --bg: var(--chalk);
  --fg: var(--ink);
  --muted: var(--stone);
  --link: var(--henna);
  --focus: #2f6fe0;

  /* Amazigh flag colours (cultural element only) */
  --amazigh-blue: #0a71b3;
  --amazigh-green: #3a9d3f;
  --amazigh-yellow: #f5d400;
  --amazigh-red: #d4202a;

  /* Type */
  --font-display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-tifinagh: "Noto Sans Tifinagh", "Ebrima", sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);
  --fs-hero: clamp(2.7rem, 1.6rem + 4.6vw, 5.4rem);

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --tracking-label: 0.14em;

  /* Space (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Layout */
  --wrap: 76rem;
  --wrap-text: 42rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  /* Shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-pill: 999px;
  --arch: 0;     /* the logo arch */

  /* Elevation */
  --shadow-1: 0 1px 2px rgb(34 30 25 / .06), 0 2px 8px rgb(34 30 25 / .05);
  --shadow-2: 0 10px 30px -10px rgb(23 34 58 / .28);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t-med: 380ms;

  /* Lattice texture from the logo (diagonal diamond grid) */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 0L56 56M56 0L0 56' stroke='%23cf8a00' stroke-opacity='.18' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  --lattice-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 0L56 56M56 0L0 56' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1' fill='none'/%3E%3C/svg%3E");

  color-scheme: light;
}
