/* =========================================================
   Repère Pilates :Colors & Type
   Design system tokens. Import this on any artifact to
   inherit the brand foundations.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ---------- Palette :raw brand colors ---------- */
  --porcelain-sand: #F6F0E8;   /* primary background :warm off-white */
  --soft-linen:     #E9DED1;   /* secondary background, cards, tonal shift */
  --warm-taupe:     #CDB8A4;   /* muted mid-tone, borders, dividers */
  --natural-oak:    #B6906E;   /* wood / accent warm, subtle hover */
  --walnut-clay:    #7B604C;   /* secondary text, premium titles */
  --espresso-ink:   #352A24;   /* primary text, headlines, solid fills */
  --amber-glow:     #E8BE87;   /* primary CTA accent (warm honey) */
  --muted-sage:     #7C8A78;   /* secondary accent (botanical / tag) */

  /* Derived with transparency */
  --ink-12:         rgba(53, 42, 36, 0.12);
  --ink-08:         rgba(53, 42, 36, 0.08);
  --ink-15:         rgba(53, 42, 36, 0.15);
  --ink-60:         rgba(53, 42, 36, 0.60);
  --ink-40:         rgba(53, 42, 36, 0.40);
  --linen-60:       rgba(233, 222, 209, 0.60);

  /* ---------- Semantic roles ---------- */
  --bg:             var(--porcelain-sand);
  --bg-alt:         var(--soft-linen);
  --bg-elev:        #FBF7F1;            /* slightly lifted surface */
  --surface-deep:   var(--espresso-ink); /* footer / dark blocks */
  --fg:             var(--espresso-ink);
  --fg-muted:       var(--walnut-clay);
  --fg-subtle:      var(--ink-60);
  --fg-on-dark:     var(--porcelain-sand);
  --border:         var(--warm-taupe);
  --border-soft:    var(--ink-12);
  --accent:         var(--amber-glow);
  --accent-ink:     var(--espresso-ink);
  --accent-alt:     var(--muted-sage);

  /* ---------- Typography ---------- */
  --font-display: 'Instrument Serif', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Type scale :editorial, tight on display, airy on body */
  --fs-display-xl: clamp(56px, 8vw, 128px);
  --fs-display-lg: clamp(44px, 6vw, 88px);
  --fs-display-md: clamp(36px, 4.2vw, 64px);
  --fs-display-sm: clamp(28px, 3vw, 44px);
  --fs-h1:         clamp(40px, 5vw, 72px);
  --fs-h2:         clamp(32px, 3.6vw, 52px);
  --fs-h3:         clamp(24px, 2.4vw, 34px);
  --fs-h4:         20px;
  --fs-lead:       20px;
  --fs-body:       16px;
  --fs-small:      14px;
  --fs-overline:   12px;

  --lh-display:    1.05;
  --lh-heading:    1.15;
  --lh-body:       1.6;
  --lh-tight:      1.3;

  --tracking-overline: 0.22em;
  --tracking-caps:     0.08em;
  --tracking-display: -0.015em;

  /* ---------- Radii ---------- */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   16px;   /* inputs */
  --r-lg:   24px;   /* cards */
  --r-xl:   32px;   /* feature cards */
  --r-2xl:  48px;   /* hero panels */
  --r-pill: 999px;

  /* ---------- Shadows :soft, warm, never harsh ---------- */
  --shadow-xs:   0 1px 2px rgba(53, 42, 36, 0.04);
  --shadow-sm:   0 4px 12px rgba(53, 42, 36, 0.06);
  --shadow-soft: 0 12px 30px rgba(53, 42, 36, 0.08);
  --shadow-md:   0 18px 40px rgba(53, 42, 36, 0.10);
  --shadow-lg:   0 30px 60px rgba(53, 42, 36, 0.14);
  --shadow-inset: inset 0 0 0 1px rgba(53, 42, 36, 0.06);

  /* ---------- Spacing ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  --section-y-desktop: 96px;
  --section-y-mobile:  56px;

  /* ---------- Layout ---------- */
  --container:       1200px;
  --container-tight: 960px;
  --container-text:  680px;

  /* ---------- Motion ---------- */
  --ease-soft:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in:    cubic-bezier(0.5, 0, 0.75, 0);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   640ms;

  /* ---------- Layout heights ---------- */
  --nav-height:        88px;
  --nav-height-mobile: 72px;
}

/* =========================================================
   Base element styles :semantic map
   ========================================================= */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-heading);
  text-wrap: balance;
  margin: 0 0 0.4em;
}

h1, .display-xl { font-size: var(--fs-display-lg); line-height: var(--lh-display); }
h2             { font-size: var(--fs-h2); }
h3             { font-size: var(--fs-h3); }
h4             { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }

p {
  margin: 0 0 1em;
  text-wrap: pretty;
  max-width: 64ch;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-muted);
}

.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: 500;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--fg-muted);
}

small, .small {
  font-size: var(--fs-small);
  color: var(--fg-subtle);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-soft);
}
a:hover { opacity: 0.7; }

hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: var(--space-7) 0;
}

::selection {
  background: var(--amber-glow);
  color: var(--espresso-ink);
}

/* =========================================================
   Utility primitives :buttons, container
   Included here so artifacts don't need a second stylesheet.
   ========================================================= */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.container-tight { width: min(var(--container-tight), calc(100% - 48px)); margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-soft),
              background var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft),
              opacity var(--dur-fast) var(--ease-soft);
  white-space: nowrap;
}
.btn:hover    { transform: translateY(-1px); }
.btn:active   { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #EFC795;
  box-shadow: var(--shadow-soft);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--ink-15);
}
.btn-secondary:hover {
  background: var(--ink-08);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  padding: 10px 14px;
}
.btn-ghost:hover { background: var(--ink-08); opacity: 1; }

.btn-dark {
  background: var(--espresso-ink);
  color: var(--porcelain-sand);
}
.btn-dark:hover { background: #1f1815; opacity: 1; }
