/* ==========================================================================
   Base: design tokens, reset and element defaults
   ========================================================================== */

:root {
  /* Colour */
  --color-bg-base: #0b0405;
  --color-bg-deep: #3a0b0b;
  --color-accent: #9b2c22;
  --color-text: #fff;
  --color-line: #fff;
  --color-on-light: #000;
  --color-overlay: rgba(0, 0, 0, 0.55);

  /* Alpha scale */
  --white-08: rgba(255, 255, 255, 0.08);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-35: rgba(255, 255, 255, 0.35);
  --white-45: rgba(255, 255, 255, 0.45);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-55: rgba(255, 255, 255, 0.55);
  --white-75: rgba(255, 255, 255, 0.75);
  --black-35: rgba(0, 0, 0, 0.35);
  --black-60: rgba(0, 0, 0, 0.6);
  --black-94: rgba(0, 0, 0, 0.94);

  /* Typography */
  --font-display: "Josefin Sans", sans-serif;
  --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Montserrat", sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  /* Radius */
  --radius: 6px;
  --radius-sm: 4px;
  --radius-xs: 2px;

  /* Stacking: local stacking inside a section uses small literals (0 to 3) */
  --z-behind: -1;
  --z-skip-link: 100;
  --z-to-top: 999;
  --z-header: 1000;
  --z-toggle: 1001;

  /* Motion */
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-350: 350ms;
  --duration-400: 400ms;
  --ease-reveal: cubic-bezier(0.445, 0.05, 0.55, 0.95);

  /* Canvas: fluid below 1024px, 980px on desktop (see layout.css) */
  --canvas-width: 100%;
  --zoom: 1;

  --page-image: none; /* set by the theme from AFC Site > Images */
}

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

html {
  overflow-x: clip;
  background: var(--color-bg-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  font: 300 14px/1.7 var(--font-body);
}

/* Page image stays fixed behind the content so it never ends early */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-behind);
  background:
    var(--page-image) center top / cover no-repeat,
    linear-gradient(180deg, var(--color-bg-deep), var(--color-bg-base)) var(--color-bg-base);
}

/* Base elements */
img {
  display: block;
  max-width: none;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* Explicit weight: the UA default is "bolder", which compounds inside headings */
b {
  font-weight: 700;
}

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