/* ═══════════════════════════════════════════
   IAAF Design System — Shared Styles
   ═══════════════════════════════════════════ */

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

:root {
  --ink: #1a2a2e;
  --ink-soft: #2a3a3e;
  --parchment: #f7f4ef;
  --warm: #e8e2d8;
  --copper: #b8834a;
  --copper-light: #d4a66a;
  --copper-faint: rgba(184,131,74,0.08);
  --sage: #5a7a6a;
  --sage-light: #7a9a8a;
  --sage-faint: rgba(90,122,106,0.08);
  --muted: #8a8578;
  --faint: #d4cfc6;
  --white: #fefdfb;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
  --shadow-sm: 0 2px 12px rgba(26,42,46,0.05);
  --shadow-md: 0 8px 30px rgba(26,42,46,0.07);
  --shadow-lg: 0 20px 60px rgba(26,42,46,0.09);
  --radius: 8px;
  --content-width: 1280px;
  --narrow-width: 780px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--parchment);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--copper-light); color: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--faint);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 30px rgba(26,42,46,0.06); }
.nav-inner {
  max-width: var(--content-width); margin: 0 auto;
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.5rem; color: var(--ink);
  letter-spacing: -0.02em; text-decoration: none;
}
.logo span { color: var(--copper); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  background: var(--ink) !important; color: var(--parchment) !important;
  padding: 0.6rem 1.5rem !important; border-radius: 4px;
  font-size: 0.8rem !important; letter-spacing: 0.06em !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--copper) !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--ink); color: var(--parchment);
  padding: 1rem 2.2rem; border: none; border-radius: 4px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-primary:hover { background: var(--copper); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--ink);
  padding: 1rem 2.2rem; border: 1.5px solid var(--faint); border-radius: 4px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.78rem; }
.btn-copper { background: var(--copper); }
.btn-copper:hover { background: var(--ink); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 10rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(184,131,74,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner {
  max-width: var(--content-width); margin: 0 auto;
}
.page-header .breadcrumb {
  font-size: 0.78rem; color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.page-header .breadcrumb a {
  color: var(--copper); text-decoration: none;
}
.page-header .breadcrumb a:hover { text-decoration: underline; }
.page-header-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.page-header-label::before {
  content: ''; display: block;
  width: 40px; height: 1px; background: var(--copper);
}
.page-header h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 1.2rem;
  max-width: 700px;
}
.page-header h1 em { font-style: italic; font-weight: 500; color: var(--copper); }
.page-header-desc {
  font-size: 1.1rem; line-height: 1.75;
  color: var(--muted); max-width: 600px;
}

/* ── SECTION BASICS ── */
section, .content-section { padding: 5rem 2.5rem; }
.section-inner, .content-inner { max-width: var(--content-width); margin: 0 auto; }
.narrow-inner { max-width: var(--narrow-width); margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--muted); max-width: 560px;
  margin-bottom: 3rem;
}

/* ── PROSE / ARTICLE ── */
.prose { max-width: var(--narrow-width); margin: 0 auto; }
.prose h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.8rem; color: var(--ink);
  margin: 2.5rem 0 1rem; line-height: 1.25;
}
.prose h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.35rem; color: var(--ink);
  margin: 2rem 0 0.8rem; line-height: 1.3;
}
.prose p {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--ink-soft); margin-bottom: 1.2rem;
}
.prose p.lead {
  font-size: 1.2rem; line-height: 1.75;
  color: var(--muted); font-family: var(--serif);
  font-style: italic; margin-bottom: 2rem;
}
.prose ul, .prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
  font-size: 1.05rem; line-height: 1.85;
  color: var(--ink-soft);
}
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
  border-left: 3px solid var(--copper);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif); font-style: italic;
  font-size: 1.2rem; line-height: 1.6;
  color: var(--ink);
}
.prose .callout {
  background: var(--copper-faint);
  border-left: 3px solid var(--copper);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.prose .callout p { margin-bottom: 0; color: var(--ink); }
.prose .callout-sage {
  background: var(--sage-faint);
  border-left-color: var(--sage);
}
.prose hr {
  border: none; height: 1px;
  background: var(--faint); margin: 3rem 0;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.35s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-flat { border: none; background: var(--parchment); }
.card-dark {
  background: var(--ink);
  border-color: rgba(247,244,239,0.1);
  color: var(--parchment);
}

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 3px;
}
.tag-copper { color: var(--copper); background: var(--copper-faint); }
.tag-sage { color: var(--sage); background: var(--sage-faint); }
.tag-muted { color: var(--muted); background: rgba(138,133,120,0.08); }
.tag-outline {
  background: transparent;
  border: 1px solid var(--faint);
  color: var(--muted);
}

/* ── MANIFESTO BAR ── */
.manifesto-bar {
  padding: 4rem 2.5rem;
  background: var(--ink);
  text-align: center;
}
.manifesto-bar p {
  font-family: var(--serif); font-weight: 300;
  font-size: 1.5rem; line-height: 1.5;
  color: var(--parchment); font-style: italic;
  max-width: 700px; margin: 0 auto;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 4rem 2.5rem 2rem;
  color: rgba(247,244,239,0.5);
}
.footer-inner {
  max-width: var(--content-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,244,239,0.08);
}
.footer-brand {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.3rem; color: var(--parchment);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--copper); }
.footer-desc { font-size: 0.88rem; line-height: 1.65; max-width: 320px; }
.footer-heading {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--parchment); margin-bottom: 1.2rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(247,244,239,0.5);
  text-decoration: none; font-size: 0.88rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--copper-light); }
.footer-bottom {
  max-width: var(--content-width); margin: 0 auto;
  padding-top: 2rem;
  display: flex; justify-content: space-between;
  font-size: 0.78rem;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  section, .content-section { padding: 3rem 1.5rem; }
  .page-header { padding: 7rem 1.5rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
