/* ============================================================
   Powerpferd Design System — design tokens
   Brand: Dr. Sandra Löckener | Powerpferd
   Palette and logo confirmed by client (2026-05-18).
   ============================================================ */

/* Google-Fonts — confirmed by client (2026-05-18):
   - Tenor Sans:  main brand face (display, body, wordmark) — single weight (400)
   - Great Vibes: script accent for "Dr. Sandra Löckener" signature & eyebrow flourishes
*/
@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Great+Vibes&display=swap');

:root {
  /* ---------- Color: raw brand palette (client-supplied) ---------- */
  --pp-red:        #a01c23;   /* primary CTA, headlines, arrows in logo */
  --pp-gold:       #da9807;   /* warm accent, the "S" in logo, highlights */
  --pp-olive-dark: #383c23;   /* primary text — warm forest green */
  --pp-olive:      #707744;   /* secondary text / tag fill */
  --pp-cream:      #f2e2ca;   /* hay-color block bg */
  --pp-paper:      #faf5ee;   /* default page bg, off-white */

  /* ---------- Tints & shades (derived) ---------- */
  --red-50:   #fbeeee;
  --red-100:  #f4d3d4;
  --red-200:  #e6a3a6;
  --red-300:  #d57175;
  --red-400:  #ba434a;
  --red-500:  #a01c23;        /* = --pp-red */
  --red-600:  #87171d;
  --red-700:  #6c1218;
  --red-800:  #500d11;

  --gold-50:  #fdf5e0;
  --gold-100: #fbe7ac;
  --gold-200: #f5cf68;
  --gold-300: #ebb734;
  --gold-400: #e2a31a;
  --gold-500: #da9807;        /* = --pp-gold */
  --gold-600: #b27c05;
  --gold-700: #856004;
  --gold-800: #5a4302;

  --olive-50:  #f1f1e6;
  --olive-100: #dcdfc3;
  --olive-200: #bcc197;
  --olive-300: #9aa370;
  --olive-400: #818a55;
  --olive-500: #707744;       /* = --pp-olive */
  --olive-700: #4f5630;
  --olive-900: #383c23;       /* = --pp-olive-dark */

  --cream-50:  #faf5ee;       /* = --pp-paper */
  --cream-100: #f5ead8;
  --cream-200: #f2e2ca;       /* = --pp-cream */
  --cream-300: #e6cfa6;
  --cream-400: #d4b683;

  /* ---------- Color: semantic ---------- */
  --bg-page:        var(--cream-50);
  --bg-surface:     #ffffff;
  --bg-alt:         var(--cream-100);
  --bg-band:        var(--cream-200);
  --bg-inverse:     var(--olive-900);

  --fg-default:     var(--olive-900);
  --fg-muted:       var(--olive-500);
  --fg-subtle:      #8a8970;
  --fg-on-brand:    #ffffff;
  --fg-on-inverse:  var(--cream-50);
  --fg-on-gold:     var(--olive-900);

  --brand-primary:        var(--red-500);
  --brand-primary-hover:  var(--red-600);
  --brand-primary-press:  var(--red-700);
  --brand-on-primary:     #ffffff;

  --brand-secondary:      var(--gold-500);
  --brand-secondary-hover: var(--gold-600);

  --border-default: rgba(56, 60, 35, 0.12);
  --border-strong:  rgba(56, 60, 35, 0.24);
  --border-brand:   var(--red-500);

  --focus-ring:     var(--red-600);

  /* Status (derived from brand where possible — never invent loud new hues) */
  --status-success-fg: var(--olive-700);
  --status-success-bg: var(--olive-50);
  --status-warning-fg: var(--gold-700);
  --status-warning-bg: var(--gold-50);
  --status-danger-fg:  var(--red-700);
  --status-danger-bg:  var(--red-50);

  /* ---------- Type: families ----------
     Tenor Sans is THE Powerpferd font — main face for display AND body.
     Single weight (400) only — use size, case and tracking for hierarchy,
     never font-weight. Allura is kept solely for Sandra's signature.
  */
  --font-display:  'Tenor Sans', 'Optima', 'Avenir Next', system-ui, sans-serif;
  --font-wordmark: 'Tenor Sans', 'Optima', 'Avenir Next', system-ui, sans-serif;
  --font-body:     'Tenor Sans', 'Optima', 'Avenir Next', system-ui, sans-serif;
  --font-script:   'Great Vibes', 'Brush Script MT', cursive;
  --font-mono:     ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ---------- Type: scale (fluid where useful) ---------- */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-40: clamp(2rem, 1.4rem + 2.4vw, 2.5rem);
  --fs-56: clamp(2.5rem, 1.6rem + 4vw, 3.5rem);
  --fs-72: clamp(3rem, 2rem + 5vw, 4.5rem);

  --lh-tight: 1.08;
  --lh-snug:  1.2;
  --lh-base:  1.55;
  --lh-loose: 1.7;

  --tracking-tight:  -0.015em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;
  --tracking-caps:   0.14em;   /* "POWERPFERD" wordmark — wide caps */

  /* ---------- Spacing (8-pt grid) ---------- */
  --space-0: 0;
  --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: clamp(64px, 8vw, 120px);

  /* ---------- Radius ---------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---------- Shadow ---------- */
  --shadow-card: 0 4px 14px rgba(56, 30, 16, 0.08);
  --shadow-lift: 0 12px 32px rgba(56, 30, 16, 0.14);
  --shadow-pop:  0 20px 48px rgba(56, 30, 16, 0.18);
  --shadow-inset-hair: inset 0 0 0 1px var(--border-default);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-med:  220ms;
  --dur-slow: 420ms;
}

/* ============================================================
   Semantic element styles
   ============================================================ */

html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--fg-default);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.65;             /* Tenor Sans needs a bit more leading */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;            /* Tenor Sans only ships in 400 */
  letter-spacing: 0;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  color: var(--fg-default);
  text-wrap: balance;
}

h1 { font-size: var(--fs-56); letter-spacing: -0.005em; }
h2 { font-size: var(--fs-40); letter-spacing: -0.005em; }
h3 { font-size: var(--fs-32); }
h4 { font-size: var(--fs-24); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-20); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
h6 {
  font-size: var(--fs-14);
  font-weight: 400;
  font-family: var(--font-wordmark);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand-primary);
}

p {
  margin: 0 0 var(--space-4);
  max-width: 65ch;
  text-wrap: pretty;
}

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

/* Script eyebrow — mirrors "Dr. Sandra Löckener" sign-off */
.eyebrow-script {
  display: inline-block;
  font-family: var(--font-script);
  font-size: var(--fs-32);
  font-weight: 400;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

/* Wordmark utility — chunky condensed caps in red/gold, like the logo */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  line-height: 1;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--brand-primary-hover); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

small, .text-small { font-size: var(--fs-14); }
.text-caption { font-size: var(--fs-12); color: var(--fg-subtle); letter-spacing: 0.02em; }

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-24);
  line-height: var(--lh-snug);
  color: var(--olive-700);
  border-left: 3px solid var(--brand-primary);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  margin: var(--space-6) 0;
  max-width: 60ch;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--cream-200);
  padding: 0.12em 0.4em;
  border-radius: var(--radius-sm);
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-default);
  margin: var(--space-7) 0;
}

/* ============================================================
   Components — buttons, cards, chips, inputs
   ============================================================ */

/* Primary CTA — flat red, ALL CAPS, Tenor Sans for typographic continuity */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--brand-on-primary);
  background: var(--brand-primary);
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover  { background: var(--brand-primary-hover); color: var(--brand-on-primary); text-decoration: none; }
.btn:active { background: var(--brand-primary-press); transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.btn--gold {
  background: var(--brand-secondary);
  color: var(--olive-900);
}
.btn--gold:hover { background: var(--brand-secondary-hover); }

.btn--ghost {
  background: transparent;
  color: var(--brand-primary);
  box-shadow: inset 0 0 0 1.5px var(--brand-primary);
}
.btn--ghost:hover { background: var(--red-50); color: var(--brand-primary-hover); }

.btn--inverse {
  background: var(--olive-900);
  color: var(--cream-50);
}
.btn--inverse:hover { background: var(--olive-700); }

.btn--sm { padding: 10px 16px; font-size: var(--fs-14); }
.btn--lg { padding: 18px 32px; font-size: var(--fs-18); }

/* ALL-CAPS text link — the brand's secondary CTA */
.linkcaps {
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--brand-primary);
}
.linkcaps:hover { color: var(--brand-primary-hover); text-decoration: underline; }

/* Card */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--dur-med) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-lift); }

/* Chip / tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--olive-50);
  color: var(--olive-700);
  border-radius: var(--radius-pill);
}
.chip--gold { background: var(--gold-50); color: var(--gold-700); }
.chip--red  { background: var(--red-50);  color: var(--red-700); }

/* Form input */
.input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--fg-default);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: var(--fg-subtle); }
.input:focus {
  outline: 0;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--red-100);
}

/* Section helpers */
.section { padding-block: var(--section-y); }
.section--alt  { background: var(--bg-alt); }
.section--band { background: var(--bg-band); }
.section--ink  { background: var(--bg-inverse); color: var(--fg-on-inverse); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--cream-50); }

.container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
