/* ==========================================================================
   FORMA 40+ — ATHLETIC ARCHIVE DESIGN TOKENS
   European Editorial Magazine for Men 40+
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Editorial Color Palette */
  --bg-canvas: #F8F6F0;          /* Warm off-white / tactile editorial paper */
  --bg-surface: #FFFFFF;         /* Pure sheet white */
  --bg-subtle: #F0EDE6;          /* Concrete pale warm */
  --bg-dark: #121314;            /* Graphite black */
  --bg-dark-surface: #1B1D1F;    /* Graphite surface */
  --bg-dark-elevated: #24272A;   /* Industrial grey dark */
  
  --text-main: #131415;          /* Deep graphite text */
  --text-body: #2B2C2E;          /* Reading body text */
  --text-muted: #6C6B67;         /* Editorial secondary caption */
  --text-subtle: #989690;        /* Technical timestamp / metadata */
  --text-inverse: #F8F6F0;       /* On dark backgrounds */
  --text-inverse-muted: #A3A29D;
  
  /* Accents */
  --accent-blue: #0038A8;        /* Deep athletic cobalt blue — main accent */
  --accent-blue-bright: #0D4ED9; /* Active cobalt */
  --accent-blue-subtle: rgba(0, 56, 168, 0.08);
  --accent-orange: #FF4D00;      /* Safety orange — only for rare punch/emphasis */
  --accent-orange-subtle: rgba(255, 77, 0, 0.08);

  /* Architectural Borders & Rules */
  --border-light: #E0DDD5;       /* Hairline border on light canvas */
  --border-strong: #C4C1B8;      /* Strong rule */
  --border-dark: #2A2D30;        /* Hairline border on dark background */
  --border-dark-strong: #3D4146;

  /* Typography Scales */
  --font-display: 'Bebas Neue', 'Space Grotesk', -apple-system, sans-serif;
  --font-editorial: 'Newsreader', 'Georgia', serif;
  --font-ui: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid Type Scale */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.82rem, 0.8rem + 0.15vw, 0.92rem);
  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
  --text-xl: clamp(1.4rem, 1.3rem + 0.6vw, 1.75rem);
  --text-2xl: clamp(1.8rem, 1.6rem + 1vw, 2.4rem);
  --text-3xl: clamp(2.4rem, 2.1rem + 1.6vw, 3.4rem);
  --text-4xl: clamp(3.2rem, 2.7rem + 2.5vw, 4.8rem);
  --text-monument: clamp(4.5rem, 3.8rem + 5vw, 9rem);
  --text-number-giant: clamp(5.5rem, 4.5rem + 8vw, 13rem);

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1360px;
  --container-narrow: 840px;
  --container-pad: clamp(1rem, 3.5vw, 3.5rem);

  /* Transition & Technical Details */
  --transition-snappy: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-none: 0px; /* Sharp architectural borders, no soft rounded pill cards */
  --radius-sm: 2px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-snappy);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}
