/* ==========================================================================
   HUMARIA ACADEMY — DESIGN TOKENS
   Single source of truth for colour, type, spacing and motion.
   Change a value here and the whole site follows.
   ========================================================================== */

/* Fonts are self-hosted (no Google request, faster, GDPR-friendly).
   Instrument Serif (serif, headings; one weight, regular + italic), Crimson Pro (serif, descriptions and running text)
   and DM Sans (sans-serif, navigation, buttons, labels), all SIL Open Font License. Latin + Latin Extended subsets, which cover ë, ç, Ç and all Albanian text.
   Instrument Serif has a single weight, so every serif rule uses weight 400 and nothing is ever faux-bolded. */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/crimson-pro-latin.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-latin.woff") format("woff");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Palette (exact values, approved by the founder) ------------------ */
  --ivory: #F3EFE3;       /* main background */
  --beige: #D9D2BA;       /* secondary sections, hairlines, quiet surfaces */
  --olive: #9B9A6A;       /* delicate accents: rules, frames. Never body text on ivory/beige */
  --terracotta: #B56B49;  /* buttons, selected highlights, large numerals on ivory */
  --brown: #463B2E;       /* typography, strong contrast, footer */

  /* ---- Roles ------------------------------------------------------------ */
  --bg: var(--ivory);
  --text: var(--brown);
  --rule: var(--beige);
  --accent: var(--terracotta);

  /* ---- Typography ------------------------------------------------------- */
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Georgia, serif; /* descriptions: elegant, one weight (400) */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale (min at 360px, max at 1440px) */
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  /* Description text (Crimson Pro has a smaller x-height than DM Sans, so its sizes are larger: 20 to 22px, lead 23 to 28px) */
  --text-1: clamp(1.25rem, 1.19rem + 0.22vw, 1.375rem);
  --text-2: clamp(1.4375rem, 1.3rem + 0.55vw, 1.75rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.7rem + 4.6vw, 5.5rem);
  --step-5: clamp(4rem, 1.8rem + 9vw, 9.5rem);

  /* ---- Spacing ---------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --container: 75rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 4.5rem;

  /* ---- Shape & motion --------------------------------------------------- */
  --radius: 2px;          /* deliberately almost square: editorial, not "app-like" */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.25s;
}
