/* =========================================================================
   The Model Body — Design Tokens
   Foundation CSS variables for color & type.
   Import this file in any HTML artifact via:
     <link rel="stylesheet" href="colors_and_type.css">
   ========================================================================= */

/* ---- Webfonts (Google Fonts) ----
   DM Serif Display  → editorial display serif (headlines, italic accents)
   Manrope           → body / UI sans
   Archivo           → tracked ALL-CAPS labels (mirrors PDF section headers)
   NOTE: original brand fonts are not available; these are the closest free
   matches and should be confirmed with Kassy.
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@300;400;500;600;700&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  /* ============ COLOR — RAW PALETTE ============ */

  /* Cherry — the signature 🍒. Deep, confident, slightly warm red. */
  --cherry-900: #5C0A14;
  --cherry-700: #8E0E1F;
  --cherry-600: #B5132A;   /* primary cherry */
  --cherry-500: #D11C36;
  --cherry-300: #F0A4B0;
  --cherry-100: #FBE4E7;
  --cherry-50:  #FDF2F3;

  /* Blush — soft feminine wash. */
  --blush-300: #F4CFC9;
  --blush-200: #F9E4DF;
  --blush-100: #FCF1ED;

  /* Cream — warm paper. Primary background. */
  --cream-100: #F8F3EB;    /* main bg */
  --cream-200: #EFE7D9;    /* card / panel */
  --cream-300: #E3D7C2;    /* divider */

  /* Ink — warm near-black for text. Never pure #000. */
  --ink-900: #1A1410;
  --ink-700: #3D332B;
  --ink-500: #6B5F58;
  --ink-300: #A89C92;

  /* Stone — neutral cool greys (use sparingly, mostly for UI chrome). */
  --stone-100: #F5F5F4;
  --stone-200: #E7E5E2;
  --stone-300: #D6D3CD;

  /* Pure */
  --white: #FFFFFF;
  --paper: #FAF7F1;       /* same family as cream but a tick lighter */

  /* ============ COLOR — SEMANTIC ============ */
  --bg:            var(--cream-100);
  --bg-elevated:   var(--paper);
  --bg-inverse:    var(--ink-900);
  --bg-accent:     var(--cherry-600);
  --bg-soft:       var(--blush-100);

  --fg:            var(--ink-900);
  --fg-muted:      var(--ink-500);
  --fg-subtle:     var(--ink-300);
  --fg-inverse:    var(--cream-100);
  --fg-accent:     var(--cherry-600);
  --fg-on-accent:  var(--cream-100);

  --border:        var(--cream-300);
  --border-strong: var(--ink-900);
  --border-accent: var(--cherry-600);

  /* Status — kept subtle, never overpowers cherry */
  --success: #4F7A4A;
  --warning: #C68A2E;
  --danger:  var(--cherry-600);

  /* ============ TYPOGRAPHY — RAW ============ */
  --font-display: 'DM Serif Display', 'Recoleta', 'Cormorant Garamond', Georgia, serif;
  --font-label:   'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Manrope', 'Halyard', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Scale — fluid-ish, but kept simple */
  --t-xs:   12px;
  --t-sm:   14px;
  --t-base: 16px;
  --t-md:   18px;
  --t-lg:   22px;
  --t-xl:   28px;
  --t-2xl:  36px;
  --t-3xl:  48px;
  --t-4xl:  64px;
  --t-5xl:  88px;
  --t-6xl:  120px;

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

  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.08em;
  --tracking-widest:  0.18em;   /* used on ALL CAPS labels — the PDF feel */

  /* ============ SPACING / RADII / SHADOW ============ */
  --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;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Subtle, paper-soft. Never glossy. */
  --shadow-xs: 0 1px 2px rgba(26,20,16,0.04);
  --shadow-sm: 0 2px 8px rgba(26,20,16,0.06);
  --shadow-md: 0 8px 24px rgba(26,20,16,0.08);
  --shadow-lg: 0 20px 60px rgba(26,20,16,0.12);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.7);
}

/* =========================================================================
   SEMANTIC TYPE STYLES — apply directly or use as templates
   ========================================================================= */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

.tmb-display, .tmb-h1, h1.tmb {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  text-wrap: balance;
}

.tmb-h2, h2.tmb {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.tmb-h3, h3.tmb {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
}

/* ALL-CAPS section labels — the most distinctive type pattern in the brand.
   Used everywhere in the PDFs ("GYM WORKOUT GUIDE", "ACTIVATION", "MAIN
   WORKOUT", "FINISHER", etc.). */
.tmb-eyebrow, .tmb-label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--t-xs);
  line-height: 1;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.tmb-eyebrow--accent { color: var(--fg-accent); }
.tmb-eyebrow--lg { font-size: var(--t-sm); }

.tmb-body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--lh-normal);
  color: var(--fg);
}

.tmb-body-lg {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
  text-wrap: pretty;
}

.tmb-caption {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}

/* The "italic editorial" treatment — used sparingly on display headlines
   for emotional emphasis (e.g. "*FREE* Lean & Balanced"). */
.tmb-italic {
  font-family: var(--font-display);
  font-style: italic;
}

/* Solid, confident button — flat, no gradients. */
.tmb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 14px 28px;
  background: var(--bg-accent);
  color: var(--fg-on-accent);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.tmb-btn:hover  { background: var(--cherry-700); }
.tmb-btn:active { transform: scale(0.98); }

.tmb-btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.tmb-btn--ghost:hover { background: var(--ink-900); color: var(--fg-inverse); }

/* The PDF "section divider" — repeated em-dashes. We recreate as a thin rule
   with cherry accent dots. */
.tmb-rule {
  border: none;
  height: 1px;
  background: var(--ink-900);
  opacity: 0.9;
  margin: var(--space-6) 0;
}
.tmb-rule--soft {
  background: var(--border);
  opacity: 1;
}
