/* ─── Design Tokens — Everstrength "Soft Strength" ───────────────────────────
   Every color is a Customizer variable (wps_inline_styles()) or a
   color-mix() derivation of one — never a literal. The :root base values
   below are only the pre-inline-style fallback (same as functions.php seeds).

   Role map (design name → token):
     clay  → --primary-color     sage-d → --secondary-color
     cocoa → --text-color        muted  → --text-muted
     sand  → --bg-color          cream  → --surface-color / --bg-light
     line  → --border-color
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Base colors — sourced from the Customizer */
  --primary-color: #c2623a;
  --secondary-color: #566c52;
  --text-color: #2f2620;
  --text-muted: #7a6d63;
  --bg-light: #fbf7f1;
  --bg-color: #f3ece2;
  --surface-color: #fbf7f1;
  --border-color: #e3d8ca;
  --positive-color: #566c52;
  --negative-color: #c94f3d;

  /* Pure neutral (contrast text on clay/dark surfaces) */
  --white: #ffffff;

  /* Fonts (overridden by wps_inline_styles() from the Customizer) */
  --font-title: 'Instrument Serif', Georgia, serif;
  --font-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ─── Design roles, derived ─── */
  --clay: var(--primary-color);
  --clay-d: color-mix(in srgb, var(--primary-color) 84%, black);
  --clay-soft: color-mix(in srgb, var(--primary-color) 22%, var(--surface-color));
  --clay-light: color-mix(in srgb, var(--primary-color) 45%, var(--surface-color));
  --sage-d: var(--secondary-color);
  --sage: color-mix(in srgb, var(--secondary-color) 68%, var(--surface-color));
  --sage-soft: color-mix(in srgb, var(--secondary-color) 16%, var(--surface-color));
  --sage-line: color-mix(in srgb, var(--secondary-color) 28%, var(--surface-color));
  --cocoa: var(--text-color);
  --cocoa-2: color-mix(in srgb, var(--text-color) 85%, var(--surface-color));
  --cocoa-deep: color-mix(in srgb, var(--text-color) 80%, black);
  --muted: var(--text-muted);
  --sand: var(--bg-color);
  --cream: var(--surface-color);
  --line: var(--border-color);

  /* Dark band (footer + newsletter box) and the text tones that sit on it */
  --dark: var(--footer-bg-color, var(--text-color));
  --on-dark: var(--surface-color);
  --on-dark-2: color-mix(in srgb, var(--surface-color) 82%, var(--dark));
  --on-dark-3: color-mix(in srgb, var(--surface-color) 66%, var(--dark));
  --on-dark-4: color-mix(in srgb, var(--surface-color) 52%, var(--dark));
  --on-dark-line: color-mix(in srgb, var(--surface-color) 16%, transparent);
  --on-dark-fill: color-mix(in srgb, var(--surface-color) 8%, transparent);
  --on-dark-accent: color-mix(in srgb, var(--primary-color) 50%, var(--surface-color));
  --on-dark-sage: color-mix(in srgb, var(--secondary-color) 30%, var(--surface-color));

  /* Shadows */
  --shadow-card: 0 30px 50px -36px color-mix(in srgb, var(--text-color) 40%, transparent);
  --shadow-lift: 0 30px 60px -36px color-mix(in srgb, var(--text-color) 45%, transparent);
  --shadow-clay: 0 14px 28px -16px color-mix(in srgb, var(--primary-color) 90%, transparent);

  /* Shape language: very round — cards 28px, bands 40px, pills, arches */
  --r: 28px;
  --r-lg: 40px;
  --r-md: 24px;
  --pill: 999px;
  --radius-sm: 14px;
  --radius: var(--r);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --hover-duration: 0.3s;
  --duration: 1s;
  --timing: var(--ease);

  /* Section rhythm */
  --section-y: 96px;
  --gutter: 18px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }
}

@media (min-width: 992px) {
  :root {
    --section-y: 120px;
  }
}
