/*
 * FC Purmerend huisstijl tokens — shared by the public site and the CMS.
 * Fonts are self-hosted (SIL OFL, see fonts/OFL-*.txt): no third-party requests.
 * Contrast rule (WCAG 2.2 AA): never put yellow text on white or light grey;
 * yellow is a background/accent, or text on black.
 */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Club colours. Yellow is a surface/accent (or text on black), never text on white/grey. */
  --color-yellow: #faec15;
  --color-yellow-tint: #fff8b3; /* selected options, highlights; black text 18:1 */
  --color-black: #000000;
  --color-ink: #141414; /* dark surfaces that sit next to pure black */
  --color-white: #ffffff;
  --color-bg: #e5e5e5;
  --color-surface-2: #f3f3f3; /* panels inside a white block */
  --color-text: #111111;
  --color-muted: #4a4a4a; /* 8.9:1 on white, 7.0:1 on #e5e5e5, 7.2:1 on yellow */
  --color-line: #c7c7c7; /* decorative dividers only */
  --color-control: #4a4a4a; /* input borders: ≥3:1 against white (WCAG 1.4.11) */
  --color-focus: #000000;
  --color-success: #17602a; /* 7.7:1 on white */
  --color-error: #b00020; /* 7.3:1 on white, 6.0:1 on yellow */
  --color-error-bg: #fdecee;
  --color-error-ink: #6b0012;

  --font-heading: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --radius: 4px; /* controls */
  --radius-block: 10px; /* white blocks, cards */
  --shadow-block: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 28px -18px rgb(0 0 0 / 0.35);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.08), 0 20px 36px -18px rgb(0 0 0 / 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --content-width: 46rem; /* forms: one readable column */
  --wide-width: 68rem; /* header, footer, homepage */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 9vw, 4.25rem);
}
h2 {
  font-size: clamp(1.875rem, 5vw, 2.375rem);
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.375rem;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
