/* ==========================================================================
   Pilates by Elahe — Design tokens
   Every colour, size, radius and shadow used on the site lives here.
   Change a value here and it updates everywhere.
   ========================================================================== */

/* ---------- Fonts (self-hosted: no Google requests, GDPR friendly) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Palette: raw colours ---------- */
  /* Periwinkle — the logo colour (#A7B8E0 = 300) */
  --periwinkle-50: #f4f6fb;
  --periwinkle-100: #e8ecf7;
  --periwinkle-200: #d2daf0;
  --periwinkle-300: #a7b8e0;
  --periwinkle-400: #8a9dd2;
  --periwinkle-500: #6d81bf;
  --periwinkle-600: #5164a6;
  --periwinkle-700: #404f87;
  --periwinkle-800: #323d69;
  --periwinkle-900: #252c4a;
  --periwinkle-950: #1a1f35;

  /* Sand — warm cream from the old site (#F5EBDD = 200) */
  --sand-50: #fdfbf8;
  --sand-100: #f9f4ec;
  --sand-200: #f5ebdd;
  --sand-300: #eadbc5;
  --sand-400: #d8c1a0;
  --sand-500: #b89a72;

  /* Ink — warm neutrals for text and borders */
  --ink-50: #faf8f5;
  --ink-100: #f1ece5;
  --ink-200: #e5dfd6;
  --ink-300: #cec7bd;
  --ink-400: #a8a198;
  --ink-500: #807970;
  --ink-600: #625c55;
  --ink-700: #47423c;
  --ink-800: #2f2b27;
  --ink-900: #1f1c19;
  --ink-950: #161412;

  /* Feedback */
  --green-50: #edf7f1;
  --green-600: #2e7d59;
  --green-700: #22613f;
  --red-50: #fdf0ee;
  --red-600: #b42318;
  --red-700: #8f1c13;
  --amber-50: #fdf6e7;
  --amber-600: #a15c07;
  --amber-700: #7a4505;

  /* ---------- Semantic colours: use these in components ---------- */
  --color-bg: var(--sand-50);
  --color-surface: #ffffff;
  --color-surface-alt: var(--sand-100);
  --color-surface-warm: var(--sand-200);
  --color-surface-cool: var(--periwinkle-50);
  --color-surface-inverse: var(--periwinkle-950);

  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-600);
  --color-text-subtle: var(--ink-500);
  --color-text-inverse: #f6f4ef;
  --color-text-inverse-muted: #c9cbd8;

  --color-heading: var(--ink-950);
  --color-border: var(--ink-200);
  --color-border-strong: var(--ink-300);

  --color-primary: var(--periwinkle-600);
  --color-primary-hover: var(--periwinkle-700);
  --color-primary-active: var(--periwinkle-800);
  --color-primary-soft: var(--periwinkle-100);
  --color-on-primary: #ffffff;
  --color-accent: var(--periwinkle-300);

  --color-link: var(--periwinkle-700);
  --color-link-hover: var(--periwinkle-900);
  --color-focus: var(--periwinkle-500);

  --color-success: var(--green-600);
  --color-success-bg: var(--green-50);
  --color-error: var(--red-600);
  --color-error-bg: var(--red-50);
  --color-warning: var(--amber-600);
  --color-warning-bg: var(--amber-50);
  --color-info: var(--periwinkle-700);
  --color-info-bg: var(--periwinkle-50);

  /* ---------- Typography ---------- */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

  /* Fluid type scale: min at 360px → max at 1280px */
  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1.0625rem; /* 17px */
  --fs-md: 1.1875rem;   /* 19px */
  --fs-lg: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-h4: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.22rem + 0.65vw, 1.75rem);
  --fs-h2: clamp(1.875rem, 1.5rem + 1.6vw, 2.875rem);
  --fs-h1: clamp(2.25rem, 1.65rem + 2.6vw, 3.75rem);
  --fs-display: clamp(2.625rem, 1.75rem + 3.8vw, 5rem);

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-base: 1.65;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.12em;

  /* ---------- Spacing (4px grid) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --section-space: clamp(4rem, 2.6rem + 5.5vw, 7.5rem);
  --section-space-sm: clamp(3rem, 2.2rem + 3vw, 4.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --grid-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);

  /* ---------- Layout ---------- */
  --container: 76rem;        /* 1216px */
  --container-narrow: 46rem; /* 736px  */
  --container-wide: 88rem;   /* 1408px */
  --header-height: 4.5rem;

  /* ---------- Shape ---------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* ---------- Elevation (warm-tinted shadows) ---------- */
  --shadow-xs: 0 1px 2px rgb(31 28 25 / 0.06);
  --shadow-sm: 0 1px 2px rgb(31 28 25 / 0.05), 0 2px 8px rgb(31 28 25 / 0.05);
  --shadow-md: 0 2px 4px rgb(31 28 25 / 0.04), 0 10px 28px rgb(31 28 25 / 0.08);
  --shadow-lg: 0 4px 8px rgb(31 28 25 / 0.04), 0 24px 56px rgb(31 28 25 / 0.12);
  --shadow-focus: 0 0 0 3px var(--sand-50), 0 0 0 5px var(--color-focus);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 600ms;

  /* ---------- Layers ---------- */
  --z-dropdown: 50;
  --z-header: 100;
  --z-drawer: 110;
  --z-toast: 200;
}
