/* Design tokens for Myosynergy Performance.

   Style direction: Soft Editorial Warmth
   (rivi-rules/design/style-catalog.md), made a little more athletic. Every
   color is sampled from the collage on the home page: its soft whites and
   blush haze for the page, the sea green of the wave for dark sections, the
   yellow of the weight plates for buttons, and the sunset, sand, and sea
   tints for tiles. Rounded shapes echo the
   rounded photo tiles in that collage and the round logo. See style-brief.md.

   This file holds every design setting. styles.css only reads these. */

/* Fonts are hosted in fonts/ (SIL Open Font License). Each is a variable
   font: one file covers every weight used. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/sora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* ---------- Color ----------
     1 neutral base + 1 brand color + 1 accent. Text pairs must pass 4.5:1
     (3:1 for large text, buttons, and focus rings). */
  --color-bg: #fcfaf8; /* page background */
  --color-surface: #f5ece8; /* alternate sections, cards, form panels */
  --color-text: #2d2a27; /* body text and headings */
  --color-muted: #5c5955; /* secondary text; still 4.5:1 on bg and surface */
  --color-border: #e4dcda; /* hairlines and input borders */
  --color-border-strong: #85807b; /* input borders: 3:1 against the page */

  --color-brand: #3d6b69; /* dark sections: proof band, CTA band, footer */
  --color-on-brand: #ffffff; /* text on brand */
  --color-on-brand-muted: #e2eceb; /* secondary text on brand */

  --color-accent: #f0b429; /* main buttons. Keep under 10% of any screen */
  --color-accent-hover: #e0a31a;
  --color-on-accent: #2d2a27; /* text on accent */

  --color-focus: #2f5b59; /* focus ring on light backgrounds */
  --color-focus-on-brand: #f4c95d; /* focus ring on dark backgrounds */
  --color-error: #a32213; /* form error text and borders */

  --color-header-bg: #fcfaf8; /* header once solid */
  --color-header-text: #2d2a27;
  /* Tints from the collage, for tiles and the color strip. Dark text passes
     7:1 on each of them. */
  --color-sun: #f4c95d; /* the weight plates */
  --color-coral: #f2b8a8; /* the sunset */
  --color-sea: #a9c6c1; /* the wave */
  --color-sand: #f4d7ac; /* the track and the studio floor */
  --stripe-height: 0.375rem; /* the four-color strip under the header */
  --table-min-width: 30rem; /* narrower screens scroll a table sideways */

  /* The round logo: a dark version for light backgrounds and a light one for
     the footer. Sizes for the header and the footer. */
  --logo-size: 3rem;
  --logo-size-footer: 8rem;
  --smile-size: 5rem; /* the smile on the thank-you page */

  --color-hero-text: #ffffff; /* text over the hero image or video */
  --color-hero-scrim: rgb(0 0 0 / 0.55); /* darkens the hero behind text */
  --color-hero-scrim-soft: rgb(0 0 0 / 0.2);

  /* ---------- Type ----------
     At most 2 families and 3 weights. */
  --font-display: "Sora", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --weight-regular: 400;
  --weight-medium: 600;
  --weight-bold: 600;
  --weight-display: 700; /* headings */

  /* Fluid scale, ratio 1.25 from an 18px body. Each step grows with the
     screen between the two sizes in its clamp(). */
  --text-xs: 0.8125rem; /* 13px: small uppercase labels */
  --text-sm: 0.9375rem; /* 15px: hints, footer, captions */
  --text-base: clamp(1.0625rem, 1.03rem + 0.16vw, 1.125rem); /* 17 to 18px */
  --text-lg: clamp(1.1875rem, 1.11rem + 0.37vw, 1.40625rem); /* to 22.5px */
  --text-xl: clamp(1.375rem, 1.24rem + 0.65vw, 1.75rem); /* to 28px */
  --text-2xl: clamp(1.625rem, 1.42rem + 1vw, 2.1875rem); /* to 35px */
  --text-3xl: clamp(1.875rem, 1.56rem + 1.56vw, 2.75rem); /* to 44px */
  --text-4xl: clamp(2.125rem, 1.65rem + 2.36vw, 3.4375rem); /* to 55px */
  --text-5xl: clamp(2.5rem, 1.84rem + 3.28vw, 4.3125rem); /* to 69px */

  --leading-tight: 1.1; /* display headings */
  --leading-snug: 1.25; /* smaller headings */
  --leading-body: 1.6; /* body text */

  --tracking-display: -0.02em; /* large headings, slightly tighter */
  --tracking-label: 0.1em; /* small uppercase labels */
  --tracking-normal: 0;

  --measure: 68ch; /* longest comfortable line of body text */
  --measure-narrow: 14ch; /* hero headline */
  --measure-short: 40ch; /* hero subhead and other short lines */

  /* ---------- Space (8-point scale) ---------- */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.5rem; /* 24px */
  --space-6: 2rem; /* 32px */
  --space-7: 3rem; /* 48px */
  --space-8: 4rem; /* 64px */
  --space-9: 6rem; /* 96px */
  --space-10: 8rem; /* 128px */
  --space-11: 10rem; /* 160px */

  /* Section padding: 64px on phones up to 128px on desktop. */
  --space-section: clamp(var(--space-8), 2.5rem + 7.5vw, var(--space-10));
  /* Page gutter: 24px on phones, 40px on desktop. */
  --gutter: clamp(var(--space-5), 1rem + 2vw, 2.5rem);

  /* ---------- Layout ---------- */
  --content-max: 80rem; /* widest content: 1280px */
  --content-narrow: 46rem; /* text pages and narrow sections */
  --header-height: 4.5rem;
  --call-bar-height: 4rem; /* the phone call/quote bar */
  --menu-width: 17rem; /* the drop-down menu on phones and small windows */
  --target-min: 2.75rem; /* 44px: main buttons and menu button */
  --target-small: 1.5rem; /* 24px: the smallest any tap target may be */
  --hero-min-height: 34rem;

  --ratio-hero: 16 / 9;
  --ratio-card: 4 / 3;
  --ratio-feature: 4 / 5;
  --ratio-collage: 3 / 2; /* the home page collage */

  /* ---------- Shape ---------- */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --radius-button: var(--radius-pill);
  --radius-card: var(--radius-lg);
  --radius-input: var(--radius-sm);
  --radius-image: var(--radius-lg);

  --border-width: 1px;
  --border-width-strong: 2px;
  --focus-width: 3px;
  --focus-offset: 3px;

  --shadow-sm: 0 1px 2px rgb(28 36 34 / 0.05), 0 2px 8px rgb(28 36 34 / 0.06);
  --shadow-md: 0 8px 28px rgb(28 36 34 / 0.12), 0 2px 6px rgb(28 36 34 / 0.06);
  --shadow-header: 0 1px 0 var(--color-border);

  /* ---------- Motion ----------
     150 to 250ms for feedback, 300 to 600ms for reveals. */
  --duration-fast: 200ms;
  --duration-slow: 450ms;
  --duration-smile: 600ms; /* the thank-you smile turning upright */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-distance: 1rem; /* how far a section rises as it fades in */
  --stagger: 90ms; /* delay between items that appear one after another */
}
