/* =============================================================
   Pearl Pilates — Colors & Type
   ============================================================= */

/* Webfonts — using Google Fonts substitutes (see README → caveats):
   • Display script  → "Petit Formal Script" (substitute for the logo's custom hand-script "Pearl" wordmark)
   • Serif           → "Cormorant Garamond" (elegant editorial serif for headlines)
   • Sans            → "Jost"               (geometric sans for "PILATES" tracking + UI)
   • Mono            → "JetBrains Mono"     (utility only — not used in marketing)
*/
@import url('https://fonts.googleapis.com/css2?family=Petit+Formal+Script&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* -------------------------------------------------------------
     COLOR — primitive scale
     The brand sits in a warm, low-chroma stone/pearl palette.
     Names follow a stone/cream nomenclature.
     ------------------------------------------------------------- */

  /* Pearl — primary brand neutral, sampled from the logo's metallic letterforms */
  --pp-pearl-50:  #f6f3ee;   /* lightest tint, near-cream */
  --pp-pearl-100: #ebe5db;
  --pp-pearl-200: #d8cdbe;
  --pp-pearl-300: #c0b29f;
  --pp-pearl-400: #a89880;
  --pp-pearl-500: #8a7c66;   /* primary brand mark color */
  --pp-pearl-600: #6f6453;
  --pp-pearl-700: #564d40;
  --pp-pearl-800: #3d362d;
  --pp-pearl-900: #25211c;

  /* Cream — backgrounds, walls, soft surfaces (sampled from studio interior) */
  --pp-cream-50:  #fbf8f3;
  --pp-cream-100: #f5efe6;   /* default page bg */
  --pp-cream-200: #ede4d4;
  --pp-cream-300: #e2d5bf;
  --pp-cream-400: #d4c2a6;

  /* Oak — pale wood accent (reformer frames, reception millwork) */
  --pp-oak-100:   #ecddc5;
  --pp-oak-300:   #d8bf95;
  --pp-oak-500:   #b9986a;
  --pp-oak-700:   #8d6f48;

  /* Ink — deep charcoal accent (dark feature wall in reception) */
  --pp-ink-700:   #2e2a26;
  --pp-ink-800:   #1f1c19;
  --pp-ink-900:   #14120f;

  /* Mother-of-Pearl — single soft accent for highlights, dots, beads */
  --pp-pearl-shimmer: #f3ebde;
  --pp-pearl-bead:    #e8dcc6;

  /* Botanic — muted sage from studio palms (used VERY sparingly) */
  --pp-botanic-300: #b8c3a8;
  --pp-botanic-600: #6e7c5d;

  /* Semantic statuses (use only for app/booking UI — keep restrained) */
  --pp-success: #6e7c5d;     /* booking confirmed (botanic) */
  --pp-warning: #b9863a;     /* waitlist (warm amber, in palette) */
  --pp-error:   #9c4a3a;     /* terracotta — never bright red */
  --pp-info:    #6f6453;     /* pearl-600 */

  /* -------------------------------------------------------------
     COLOR — semantic
     Use these in components. Avoid raw primitives outside tokens.
     ------------------------------------------------------------- */
  --bg:           var(--pp-cream-100);   /* page background */
  --bg-elevated:  #ffffff;               /* cards */
  --bg-sunken:    var(--pp-cream-200);   /* recessed panels */
  --bg-dark:      var(--pp-ink-800);     /* dark sections / footers */
  --bg-overlay:   rgba(31, 28, 25, 0.55);

  --fg:           var(--pp-ink-800);     /* primary text on cream */
  --fg-muted:     var(--pp-pearl-600);
  --fg-subtle:    var(--pp-pearl-500);
  --fg-on-dark:   var(--pp-cream-100);
  --fg-on-pearl:  #ffffff;

  --line:         rgba(46, 42, 38, 0.12); /* hairlines */
  --line-strong:  rgba(46, 42, 38, 0.22);
  --line-on-dark: rgba(245, 239, 230, 0.16);

  --accent:       var(--pp-pearl-500);   /* primary CTA */
  --accent-hover: var(--pp-pearl-600);
  --accent-press: var(--pp-pearl-700);

  /* -------------------------------------------------------------
     TYPE — primitive families
     ------------------------------------------------------------- */
  --font-script:  'Petit Formal Script', 'Snell Roundhand', cursive;
  --font-serif:   'Cormorant Garamond', 'Cormorant', 'EB Garamond', Georgia, serif;
  --font-sans:    'Jost', 'Futura', 'Avenir Next', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* -------------------------------------------------------------
     TYPE — scale (modular, ratio ~1.25, rounded to even px)
     ------------------------------------------------------------- */
  --fs-xs:    12px;
  --fs-sm:    14px;
  --fs-base:  16px;
  --fs-md:    18px;
  --fs-lg:    22px;
  --fs-xl:    28px;
  --fs-2xl:   36px;
  --fs-3xl:   48px;
  --fs-4xl:   64px;
  --fs-5xl:   84px;
  --fs-6xl:   112px;

  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.45;
  --lh-loose:  1.7;

  /* Brand tracking — widely spaced sans for "PILATES" feel */
  --ls-eyebrow:  0.28em;
  --ls-button:   0.16em;
  --ls-tight:    -0.01em;
  --ls-display: -0.02em;

  /* -------------------------------------------------------------
     SPACE — 4px base, with a couple of fractional steps for editorial whitespace
     ------------------------------------------------------------- */
  --s-0:  0;
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;
  --s-11: 192px;

  /* -------------------------------------------------------------
     RADIUS — generous arches; the brand leans on the arch motif
     ------------------------------------------------------------- */
  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  40px;
  --r-arch: 999px 999px 0 0;     /* the "arch" — used on hero blocks, image masks */
  --r-pill: 999px;

  /* -------------------------------------------------------------
     SHADOW — soft, low-spread, never harsh. Think morning light.
     ------------------------------------------------------------- */
  --shadow-xs:  0 1px 2px rgba(31, 28, 25, 0.04);
  --shadow-sm:  0 2px 8px rgba(31, 28, 25, 0.05);
  --shadow-md:  0 8px 24px rgba(31, 28, 25, 0.07);
  --shadow-lg:  0 24px 60px rgba(31, 28, 25, 0.10);
  --shadow-glow:0 0 0 1px var(--pp-pearl-shimmer), 0 20px 50px rgba(138, 124, 102, 0.18);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.6);

  /* -------------------------------------------------------------
     MOTION — slow, breath-paced. No bounces.
     ------------------------------------------------------------- */
  --ease-out:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast:    180ms;
  --d-base:    320ms;
  --d-slow:    600ms;
  --d-breath:  1200ms;
}

/* =============================================================
   SEMANTIC TYPE — element-level defaults
   ============================================================= */
html {
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: 400;
}

/* "Pearl" — the script wordmark style. Use ONLY for the wordmark and very large editorial flourishes. */
.pp-script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

/* Display + headings use the elegant serif, mostly light weight */
.pp-display,
h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

h4, .h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}

/* Italic serif — Pearl's editorial voice. Use for pull quotes and emphasized phrases */
.pp-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Eyebrow — small, widely-tracked sans uppercase. Used over headings, on buttons, nav items */
.pp-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Body */
p, .pp-body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: var(--lh-loose);
  color: var(--fg);
  text-wrap: pretty;
}

.pp-body-sm { font-size: var(--fs-sm); line-height: var(--lh-normal); }
.pp-body-lg { font-size: var(--fs-lg); line-height: var(--lh-loose); font-weight: 300; }

/* Button label */
.pp-button-label {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }

code, kbd, .pp-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
