/*
 * Brand layer: the ONE file a re-brand edits.
 *
 * /css/base.css holds every component and a neutral default for every token;
 * this file sets the Fun Over Fast Training brand on top of it: the tokens
 * every component reads, turquoise main buttons, a bone-white page, rounded
 * system headings, a turquoise band under the header, and the two small
 * helpers the home page uses (the address block and the contact buttons). The
 * admin console reads the same tokens.
 *
 * The brand, as Rebecca chose it (2026-10-11): Medium Turquoise (#48D1CC) as
 * the main color, purple (#663399, the CSS named color rebeccapurple), a
 * bone-white base (#F9F6EE), and a medium dark grey for text (#45454B).
 *
 * One rule keeps it readable: turquoise is a FILL, purple is INK. Turquoise is
 * far too light to be text on the light page (1.73:1 on the bone white), and
 * white text on it fails too (1.84:1). So turquoise fills the hero, the main
 * buttons (with dark grey text), the header band, the soft tint behind icons
 * and the current nav item, and the logo's tile. Purple is everything read as
 * text or as a mark: links, check marks, focus rings, the hero's main button.
 * That is why --color-primary, which base.css uses for links, focus rings, and
 * check marks as well as buttons, is the purple, and .btn-primary is turned
 * turquoise below instead.
 *
 * No web font: headings use the system's rounded face where one exists
 * (ui-rounded on Apple devices) and the system sans everywhere else, so
 * nothing is downloaded and the Content-Security-Policy needs nothing extra.
 *
 * Overriding a neutral here replaces base.css's dark value too, so every
 * neutral set in the light block is set again in the dark one: a charcoal
 * family in place of base.css's navy, which clashed with both colors.
 *
 * Contrast (WCAG AA: 4.5:1 for text, 3:1 for control edges and focus rings),
 * computed with the WCAG relative-luminance formula for the pairings set here
 * (2026-10-11); recompute after changing any of them:
 *   light  #2B2B30 on #48D1CC 7.56:1 (main buttons), on hover #38BFBA 6.26:1;
 *          #663399 (links, focus, check marks) on #F9F6EE 7.78:1,
 *          on #FFFDF8 8.27:1, on #F0EBE0 7.07:1, on #D9F4F3 7.28:1;
 *          #FFFFFF on #663399 8.41:1 (skip link);
 *          text #45454B on #F9F6EE 8.81:1, on #FFFDF8 9.36:1, on #F0EBE0 8.01:1,
 *          on #D9F4F3 8.24:1;
 *          muted #5C5C64 on #F9F6EE 6.13:1, on #FFFDF8 6.52:1, on #F0EBE0 5.57:1;
 *          edges #85808C on #F9F6EE 3.56:1, on #FFFDF8 3.78:1, on #F0EBE0 3.23:1;
 *          base.css status colors on #F0EBE0 all >= 5.11:1
 *   dark   #10302E on #48D1CC 7.59:1 (main buttons), on hover #6FDCD8 8.69:1;
 *          #C5AAEE (links) on #1D1C21 8.35:1, on #26252B 7.50:1,
 *          on #302E36 6.60:1, on #183634 6.41:1; #1E1029 on #C5AAEE 8.92:1;
 *          text #ECE8F1 on #1D1C21 14.01:1, on #302E36 11.07:1;
 *          muted #B3AEBC on #1D1C21 7.82:1, on #302E36 6.18:1;
 *          edges #7C7786 on #1D1C21 3.90:1, on #302E36 3.08:1;
 *          base.css status colors on #302E36 all >= 6.06:1
 *   hero   light: #25252A on #48D1CC 8.18:1, on #33B8B3 6.28:1;
 *          #21403E on #48D1CC 6.03:1, on #33B8B3 4.63:1;
 *          #FFFFFF on #663399 8.41:1 (the hero's main button), which stands
 *          4.51:1 against #48D1CC and 3.46:1 against #33B8B3
 *          dark: #F0FBFA on #145E5A 7.16:1, on #0D403D 10.94:1;
 *          #BFE6E3 on #145E5A 5.63:1, on #0D403D 8.61:1; #1E1029 on #C5AAEE 8.92:1,
 *          which stands 3.73:1 against #145E5A
 *
 * The logo and favicon (/images/) fix their own colors, because an SVG loaded
 * through <img> cannot read these tokens: a purple kettlebell on a turquoise
 * tile (4.51:1), legible on light and dark alike.
 */

:root {
  --brand-turquoise: #48d1cc;
  --brand-turquoise-hover: #38bfba;
  --brand-on-turquoise: #2b2b30;

  --color-primary: #663399;
  --color-primary-hover: #52287d;
  --color-primary-contrast: #ffffff;
  --color-primary-soft: #d9f4f3;

  --color-bg: #f9f6ee;
  --color-surface: #fffdf8;
  --color-surface-alt: #f0ebe0;
  --color-text: #45454b;
  --color-muted: #5c5c64;
  --color-border: #e3ddd0;
  --color-border-strong: #85808c;

  --font-body:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-heading:
    ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system,
    Roboto, 'Helvetica Neue', Arial, sans-serif;

  --hero-bg: linear-gradient(135deg, #48d1cc 0%, #33b8b3 100%);
  --hero-text: #25252a;
  --hero-muted: #21403e;
  --hero-cta-bg: #663399;
  --hero-cta-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-turquoise-hover: #6fdcd8;
    --brand-on-turquoise: #10302e;

    --color-primary: #c5aaee;
    --color-primary-hover: #d9c6f5;
    --color-primary-contrast: #1e1029;
    --color-primary-soft: #183634;

    --color-bg: #1d1c21;
    --color-surface: #26252b;
    --color-surface-alt: #302e36;
    --color-text: #ece8f1;
    --color-muted: #b3aebc;
    --color-border: #3b3942;
    --color-border-strong: #7c7786;

    --hero-bg: linear-gradient(135deg, #145e5a 0%, #0d403d 100%);
    --hero-text: #f0fbfa;
    --hero-muted: #bfe6e3;
    --hero-cta-bg: #c5aaee;
    --hero-cta-text: #1e1029;
  }
}

/* Main buttons are turquoise with dark grey text (see the header: purple stays
   --color-primary because links and focus rings read it). The hero's main
   button keeps its own --hero-cta-* colors: base.css's .hero rule is more
   specific than these. */
.btn-primary {
  background: var(--brand-turquoise);
  color: var(--brand-on-turquoise);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-turquoise-hover);
  color: var(--brand-on-turquoise);
}

/* The turquoise band under the header. It is a fill, never text. */
.site-header {
  border-bottom: 4px solid var(--brand-turquoise);
}

/* ---------- Home page helpers ---------- */

/* The training location's postal address, set as plain text, not italic. */
.place {
  font-style: normal;
  line-height: 1.5;
}

/* The brochure's "Call ..." and "Email ..." buttons. base.css keeps a .btn on
   one line, and "Email" plus a long address is wider than a phone screen, so
   these may wrap, breaking the address anywhere if they must. */
.contact-buttons .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
