/* ==========================================================================
   Baystead Care: design tokens
   Coastal Editorial Luxury. Change values here; every other file reads them.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-400.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/manrope-var.woff2") format("woff2");
}

:root {
  /* Colour: brand palette */
  --ivory: #f8f5ee;
  --sand: #e5d8c5;
  --sage: #a8b4a3;
  --eucalyptus: #30483f;
  --ocean: #72949a;
  --charcoal: #292e2b;

  /* Colour: channel versions for translucent shades */
  --eucalyptus-rgb: 48 72 63;
  --charcoal-rgb: 41 46 43;
  --deep-rgb: 31 45 39; /* eucalyptus pushed toward charcoal: the veranda shade */
  --shade-warm-rgb: 38 44 38; /* warmer floor shade for portrait cuts */
  --ivory-rgb: 248 245 238;

  /* Colour: roles */
  --text-on-film: var(--ivory);
  --text-on-film-soft: var(--sand);
  --text-on-ivory: var(--eucalyptus);
  --rule-on-ivory: var(--sage);
  --focus-on-film: var(--ivory);
  --focus-on-ivory: var(--ocean);
  --selection-bg: var(--sand);
  --selection-text: var(--charcoal);

  /* Type: families */
  --font-display: "Cormorant Garamond", "Cormorant", "Garamond", "Baskerville",
    "Times New Roman", serif;
  --font-text: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;

  /* Type: scale (fluid between 360px and 1920px) */
  --step-display: clamp(3rem, 1.9rem + 4vw, 6rem);
  --step-lead: clamp(1rem, 0.94rem + 0.28vw, 1.1875rem);
  --step-label: 0.75rem;
  --step-small: 0.8125rem;

  --leading-display: 0.98;
  --leading-text: 1.5;
  --tracking-display: -0.025em;
  --tracking-label: 0.2em;
  --tracking-button: 0.14em;

  /* Space */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --edge: clamp(1.25rem, 0.6rem + 3.2vw, 4.5rem); /* page margin */

  /* Radii */
  --radius-tag: 0 0 2px 2px;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Motion: durations */
  --dur-press: 120ms;
  --dur-hover: 320ms;
  --dur-toggle: 220ms;
  --dur-film-fade: 900ms;
  --dur-enter-lead: 1100ms;
  --dur-enter-support: 800ms;
  --dur-enter-quiet: 700ms;
  --dur-settle: 2000ms;

  /* Motion: easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* expo out: entrances */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1); /* quint out: hovers */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* film fade */

  /* Layers */
  --z-film: 0;
  --z-content: 1;
}
