:root {

 	/* Fonts */
  --heading-font: 'Heebo', sans-serif;
  --body-font: 'Lato', sans-serif;

  /* Colours — the primary/secondary/grey/white ramps are kept complete on purpose
     (a palette with holes is worse than a few unused steps); most steps are unused
     by components today but are swatched in the styleguide.
     The two brand colours were darkened (Oct 2026: pink from #e70688, purple from
     #918caf) so white text on them passes WCAG AA (4.5:1) — purple 4.53:1. The
     pink was darkened again (Nov 2026, from #e20685) so it's ONE pink for links
     and fills alike: pink text passes AA on white (5.18:1), the page background
     (4.92:1) and grey bands (4.54:1); white on pink 5.18:1. Pink text on the
     -10/-20 tints still fails, hence --primary-on-tint / --secondary-on-tint.
     Each -90…-10 step is the colour mixed with white: c + (255 − c) × (1 − step/100). */
  --primary-color: #d2067c;
  --primary-90: #d71f89;
  --primary-80: #db3896;
  --primary-70: #e051a3;
  --primary-60: #e46ab0;
  --primary-50: #e983be;
  --primary-40: #ed9bcb;
  --primary-30: #f2b4d8;
  --primary-20: #f6cde5;
  --primary-10: #fbe6f2;


  --secondary-color: #777390;
  --secondary-90: #85819b;
  --secondary-80: #928fa6;
  --secondary-70: #a09db1;
  --secondary-60: #adabbc;
  --secondary-50: #bbb9c8;
  --secondary-40: #c9c7d3;
  --secondary-30: #d6d5de;
  --secondary-20: #e4e3e9;
  --secondary-10: #f1f1f4;

  --text-color: #333333;

  /* Brand text on its own pale tint: plain pink on --primary-10 is 4.36:1 and
     purple on --secondary-20 3.55:1, so text there is mixed 30% toward
     --text-color (6.26:1 and 4.76:1). Glyphs and borders can stay plain. */
  --primary-on-tint: color-mix(in srgb, var(--primary-color) 70%, var(--text-color));
  --secondary-on-tint: color-mix(in srgb, var(--secondary-color) 70%, var(--text-color));
  --grey-100: #333333;
  --grey-90: #474747;
  --grey-80: #5b5b5b;
  --grey-70: #707070;
  --grey-60: #848484;
  --grey-50: #999999;
  --grey-40: #adadad;
  --grey-30: #c1c1c1;
  --grey-20: #d6d6d6;
  --grey-10: #eaeaea;

  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.90);
  --white-80: rgba(255, 255, 255, 0.80);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-30: rgba(255, 255, 255, 0.30);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-10: rgba(255, 255, 255, 0.10);

  --background-color: #FAF9F6;

  --error-color: #c0392b;
  --error-10: #f9eae8; /* subtle error tint (matches the --primary-10 pattern) */

  /* Status colours — error / success / warning, each with a -10 tint for
     backgrounds. Text in the -color value passes contrast on white and on its
     own tint. Brand pink is NOT a status colour (don't use it for success). */
  --success-color: #2e7d32;
  --success-10: #e8f3e9;
  --warning-color: #9a5b00;
  --warning-10: #fdf1dc;

  /* Container */
  --container-width: 75rem;

  /* Typography */
  /* Heading scale — fluid sizes, tighter leading and negative tracking as sizes
     grow (large bold type looks dated at default tracking). ALWAYS use these
     tokens for a heading; never a literal size, even inside a section. */
  --display-fs: clamp(2.5rem, 1.879rem + 2.652vw, 4rem); /* hero-jumbo only: 40 → 64 (both ends land at 375 / 1280px) */
  --display-lh: 1.05;
  --display-ls: -0.015em;
  --h1-fs: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);         /* page titles from desktop (--page-title-fs; below 62rem they take the section-title step): 32 → 44 */
  --h1-lh: 1.1;
  --h1-ls: -0.01em;
  --h2-fs: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);      /* secondary headings: 24 → 30 */
  --h2-lh: 1.2;
  --h2-ls: -0.01em;
  /* Section titles — every homepage section heading (they're h2 elements). Their
     own step between h2 and h1 (26 → 36px); tune the whole homepage here rather
     than per section. Display, h1 and section title are spread so each step is
     at least ×1.2 at every width (phones: 40 / 32 / 26) — the floors were 36 /
     32 / 28, which read as one size at three weights. Keep that if retuning. */
  --section-title-fs: clamp(1.625rem, 1.366rem + 1.105vw, 2.25rem);
  --section-title-lh: 1.25; /* a touch looser than --h2-lh (1.2): 1.2 read tight at this size */
  --section-title-ls: -0.01em;
  --h3-fs: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);       /* 20 → 24 */
  --h3-lh: 1.3;
  --h3-ls: -0.01em;
  /* Page-title band (.internal-header + .page-title: icon disc or member avatar
     + h1 on every internal page — Figma "WIBN — Components" › Internal Header,
     Nov 2026). Fixed steps, set at tablet and desktop in the media queries
     below: disc 75 → 75 → 95, avatar 95 → 115 → 150, disc → title gap
     16 → 20 → 32. The title (still bold) is the section-title step below
     desktop — no smaller than the section headings under it (Figma drew the
     h2 step, 24px on phones, which put the page's h1 under a 26px section
     title) — and the h1 step from 62rem. Every page h1 uses these: the band,
     and a Media and Text heading set to H1 with or without its disc. */
  --page-title-gap: 1rem;
  --page-title-icon-size: 4.6875rem;
  --page-title-avatar-size: 5.9375rem;
  --page-title-fs: var(--section-title-fs);
  --page-title-lh: var(--section-title-lh);
  --page-title-ls: var(--section-title-ls);
  /* Member avatar initials: 0.3 of the avatar, so they keep the card avatar's
     proportions at every step (28.5 → 34.5 → 45px). */
  --page-title-initials-fs: calc(var(--page-title-avatar-size) * 0.3);
  --h4-h5-fs: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem); /* 18 → 20 */
  --h4-h5-lh: 1.35;
  --h6-fs: 1rem;

  --font-sm: 0.875rem;
  --font-xs: 0.75rem;   /* compact meta text (mega menu descriptions/labels) */
  --date-day-fs: 3.375rem; /* info card date numeral: 54px at every width */

  /* Header */
  --logo-size: 185px;
  --logo-size-shrunk: 125px;

  /* Border radius */

  --br-sm: 0.25rem;
  --br-md: 0.5rem;
  --br-lg: 1rem;
  --br-rounded: 999px;

  /* Border widths. --border-width (the "md" step) is the button border (.button,
     .cta-button). -sm = pills; -lg = the outline icon disc + every avatar ring. */
  --border-width-sm: 1px;
  --border-width: 1.5px;
  --border-width-lg: 2px;

  /* Open-section marker down the left of the mobile menu (open row + its panel).
     A marker, not a border — kept apart from the border-width steps. */
  --indicator-width: 4px;

  /* Misc */
  --shadow: 0px 0px 10px 0px rgba(51, 51, 51, 0.1);
  --shadow-hover: 0px 0px 10px 5px rgba(51, 51, 51, 0.1);
  --button-shadow: 0px 0px 5px 0px rgba(51, 51, 51, 0.1);
  --shadow-up: 0 -6px 20px rgba(51, 51, 51, 0.15);    /* sticky bottom bars (event booking, map panel) */
  --shadow-drawer: -10px 0 30px rgba(0, 0, 0, 0.15);  /* mobile menu drawer */
  --pin-shadow: drop-shadow(0 1px 2px rgba(51, 51, 51, 0.4)); /* map / venue pin — a filter, not a box-shadow */
  --overlay: rgba(0, 0, 0, 0.5);                      /* modal + drawer backdrop */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.2s;   /* colour / border / opacity / small icon moves */
  --duration: 0.35s;       /* transforms, sizing, shadows, drawers */

  /* Grid splits — asymmetric two-column desktop layouts.
     Use as `grid-template-columns: var(--grid-wide) var(--grid-narrow)`
     (or reversed for wide-right). Ratio only; gap/breakpoint stay per-component. */
  --grid-wide: 2fr;
  --grid-narrow: 1fr;

  /* Standard form width (forms.css); also the Large CTA intro above its form. */
  --form-width: 42rem;

  /* Icon + text "fact" rows — the shared glyph-then-label row used by the event
     fact cards, group venues, info cards and group stat rows. Reference these so
     the rows line up consistently instead of each component picking its own
     numbers. Rows are top-aligned with the icon in a one-line-tall box
     (height: 1lh), so the glyph stays centred on the FIRST line of a wrapping label.
     Label text is --text-color and regular weight; a label that is a link is
     bold (no underline, no resize on hover) so it still reads as clickable.
     Card rows are always body size (16px) — only form hints use .icon-row--sm. */
  --row-gap: 0.6rem;         /* space between the icon and its text */
  --row-icon-size: 1.25rem;  /* glyph box (20px) */

  /* The standard member avatar (.avatar / .initials, elements.css): one fixed
     95px at every width — member cards, the contact person, team cards.
     Smaller and larger contexts set their own size. */
  --avatar-size: 5.9375rem;

  /* Small-uppercase label (.card-label et al.) — shared tracking so the label
     family doesn't drift (colour/background stay per-context). */
  --label-letter-spacing: 0.05em;

  /* Media Queries (For reference only) */
  --tablet: 48rem;
  --desktop: 62rem;
  --xl: 75rem;

    /* Spacing
     The sm/md floors were raised (Oct 2026) — at 0.5rem/1rem every phone gap,
     card padding and gutter bottomed out together and pages read squished.
     sm is now a flat 0.75rem (its old ceiling); md holds 1.25rem until the
     fluid value overtakes it (~1200px), so wide desktop is unchanged. */
  --space-xs: clamp(0.25rem, 0.2rem + 0.15vw, 0.375rem);
  --space-sm: 0.75rem;
  --space-md: clamp(1.25rem, 0.8rem + 0.6vw, 1.5rem);
  --space-lg: clamp(2rem, 1.5rem + 1vw, 3rem);
  --space-xl: clamp(3rem, 2rem + 2vw, 5rem);
  --space-xxl: clamp(4rem, 3rem + 3vw, 5rem);

  /* Responsive spacing — steps up the scale at a breakpoint.
     Read the name as  from → to, and the suffix as WHERE it grows:
       -t  grows at tablet  (48rem)
       -d  grows at desktop (62rem)
     The value below is the small-screen size; the media queries bump it.
     Only the steps the theme actually uses are defined — add a sibling
     (e.g. --space-lg-xl-d, or a "grows twice" triple) when a component needs it. */
  --space-sm-md-t: var(--space-sm);
  --space-sm-md-d: var(--space-sm);
  --space-md-lg-d: var(--space-md);

  /* The ONE card-to-card gap — every card grid, carousel and card stack
     (archive grids, section card grids, carousels, single-page columns,
     map results). Tight on mobile, medium from tablet. */
  --card-gap: var(--space-sm-md-t);

  /* The ONE section-heading → its copy gap (section titles, the hero blocks,
     the Large CTA). Between --space-sm and --space-md: seen from baseline to
     the copy's cap height it sits level with the gap between paragraphs
     (`* + p`, --space-md). Card titles keep --space-sm. */
  --heading-gap: 1rem;
}

@media (min-width: 48rem) {
  :root {
    --space-sm-md-t: var(--space-md);
    --page-title-gap: 1.25rem;
    --page-title-avatar-size: 7.1875rem;
  }
}

@media (min-width: 62rem) {
  :root {
    --space-sm-md-d: var(--space-md);
    --space-md-lg-d: var(--space-lg);
    --page-title-gap: 2rem;
    --page-title-icon-size: 5.9375rem;
    --page-title-avatar-size: 9.375rem;
    --page-title-fs: var(--h1-fs);
    --page-title-lh: var(--h1-lh);
    --page-title-ls: var(--h1-ls);
  }
}
