/*
 * Design Tokens — CSS Custom Properties
 * All brand values live here. Override via WordPress Customizer → Brand Settings.
 */

/* @font-face declarations */
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Josefin Sans';
  src: url('../fonts/JosefinSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Josefin Sans';
  src: url('../fonts/JosefinSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ── Colors ── */
  --color-verdigris:    #1DADAD;
  --color-poppy:        #DB3A34;
  --color-wisteria:     #A996C5;
  --color-purple-dark:  #3A2449;
  --color-prussian:     #003049;

  /* Accessible "ink" variants — for text/links/buttons on LIGHT backgrounds.
     The vivid brand colors above stay reserved for dark sections and large
     decorative use, where they already pass WCAG AA. These darker variants
     meet AA (>=4.5:1) as normal text on white. */
  --color-verdigris-ink: #0E6E6E;   /* 6.0:1 on white */
  --color-poppy-ink:     #B92D28;   /* 6.0:1 on white */
  --color-wisteria-ink:  #6E5593;   /* 6.2:1 on white */

  /* Button state + tint variants (single source of truth for the darkened
     shades that used to be hardcoded inline on :hover rules). */
  --color-verdigris-hover: #0b5c5c;  /* primary button :hover (darker than -ink) */
  --color-poppy-btn:       #c4302a;  /* secondary/CTA button base (white labels meet AA) */
  --color-poppy-hover:     #a72924;  /* secondary button :hover (darker than base) */
  --color-poppy-light:     #F07167;  /* lighter poppy for small tag text on dark grounds */

  --color-white:        #ffffff;
  --color-off-white:    #f8f7f5;
  --color-gray-100:     #f2f2f2;
  --color-gray-200:     #e5e5e5;
  --color-gray-400:     #a0a0a0;
  --color-gray-600:     #666666;
  --color-gray-800:     #333333;
  --color-black:        #0d0d0d;

  /* Derived / semantic aliases */
  --color-bg:           var(--color-white);
  --color-text:         var(--color-gray-800);
  --color-text-muted:   var(--color-gray-600);
  --color-accent:       var(--color-verdigris);
  --color-accent-hover: #17c5c5;
  --color-cta:          var(--color-poppy-ink);
  --color-dark-bg:      var(--color-purple-dark);
  --color-dark-bg-2:    var(--color-prussian);
  --color-border:       var(--color-gray-200);
  --color-link:         var(--color-poppy-ink);
  --color-link-hover:   #8f231f;

  /* ── Typography ── */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-heading:  'Josefin Sans', 'Trebuchet MS', sans-serif;
  --font-body:     'Montserrat', 'Segoe UI', system-ui, sans-serif;

  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;

  /* ── Type Scale ── */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */
  --text-8xl:  6rem;       /* 96px */
  --text-9xl:  8rem;       /* 128px */

  /* ── Spacing ── */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;
  --space-40:  10rem;
  --space-48:  12rem;

  /* Semantic spacing */
  --section-gap:      var(--space-24);
  --section-gap-lg:   var(--space-32);
  --container-px:     var(--space-8);
  --header-height:    80px;   /* fixed .site-header height — inner-page heroes clear this */

  /* ── Layout widths ── */
  --container-max:    1280px;  /* wide tier: grids, card rows, split layouts       */
  --container-narrow:  860px;  /* single-column reading width: prose pages, CTAs   */
  --container-wide:   1440px;  /* extra-wide tier                                  */

  /* ── Measure (max line length) ── */
  --measure:     76ch;  /* main body prose — fills the narrow container, shorter pages */
  --measure-sm:  60ch;  /* secondary prose: intros, hero subtitles, bios, sub-copy     */

  /* Canonical breakpoint scale (CSS vars can't drive @media — documented for
     authors): 480 / 640 / 768 / 1024 / 1280, plus 900 as the shared two-column→
     one-column collapse point (inner-page hero split + home about/coaching grids).
     Component-nav and WP-admin-bar breakpoints (header.css 600/1150/782) are the
     intentional exceptions. */

  /* ── Borders & Radius ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.20), 0 8px 24px rgba(0,0,0,0.10);
  --shadow-card: 0 4px 24px rgba(58, 36, 73, 0.12);

  /* ── Transitions ── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-slower: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Z-index scale ── */
  --z-below:   -1;
  --z-base:     0;
  --z-raised:   10;
  --z-overlay:  100;
  --z-nav:      200;
  --z-modal:    300;
  --z-top:      400;

  /* ── Letter spacing ── */
  --tracking-tight:  -0.025em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;
  --tracking-widest:  0.2em;
}
