:root {
  --blue: #0081c8;
  --yellow: #f4c300;
  --black-ring: #1a1a2e;
  --green: #009f3d;
  --red: #df0024;

  --gold: #c9a24d;
  --gold-light: #e8d9b0;
  --silver: #9ba8b5;
  --silver-light: #d0d7de;
  --bronze: #b07d56;
  --bronze-light: #d9c1ab;

  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8b8da3;
  --border: #e8e6e1;
  --accent: #0b3d6b;
}

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Hero ---- */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.hero-rings {
  display: block;
  width: 80px;
  margin-bottom: 24px;
  opacity: 0.8;
}

/* ---- Olympic stripe ---- */
.olympic-stripe {
  display: flex;
  height: 5px;
  width: 120px;
  margin: 10px 0 16px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.8;
}

.olympic-stripe span {
  flex: 1;
}

.olympic-stripe span:nth-child(1) { background: var(--blue); }
.olympic-stripe span:nth-child(2) { background: var(--yellow); }
.olympic-stripe span:nth-child(3) { background: var(--black-ring); }
.olympic-stripe span:nth-child(4) { background: var(--green); }
.olympic-stripe span:nth-child(5) { background: var(--red); }

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--text);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.standfirst {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0;
  font-weight: 300;
}

/* ---- Content ---- */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ---- Article blocks ---- */
.article-block {
  margin-top: 56px;
}

.article-header {
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.article-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.article-intro {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 560px;
}

/* ---- Charts ---- */
.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.chart-container--large {
  height: 360px;
}

.chart-container--small {
  height: 200px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-caption {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  padding-left: 2px;
}

/* ---- Separator ---- */
.separator {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 0;
}

.separator-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

/* ---- Comparison list ---- */
.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.comparison-cell {
  display: flex;
  flex-direction: column;
}

.comparison-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.comparison-title {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--text);
  padding-left: 2px;
  flex-shrink: 0;
}

.comparison-title--gold   { color: var(--gold); }
.comparison-title--silver { color: var(--silver); }
.comparison-title--bronze { color: var(--bronze); }

/* ---- Comparison stats ---- */
.stat-paragraph {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.stat-badge {
  display: inline-block;
  font-weight: 600;
  color: var(--surface);
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 0.88rem;
}

.stat-badge--total  { background: var(--text); }
.stat-badge--gold   { background: var(--gold); }
.stat-badge--silver { background: var(--silver); }
.stat-badge--bronze { background: var(--bronze); }

.stat-past {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chart-container--medium {
  height: 320px;
  max-width: 640px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-rings {
  display: block;
  width: 48px;
  opacity: 0.65;
  margin-bottom: 10px;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px;
}

.footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer code {
  font-size: 0.8rem;
  background: #f0eeeb;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---- Animations ---- */
.article-block {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}

.article-block:nth-child(1) { animation-delay: 0.1s; }
.article-block:nth-child(3) { animation-delay: 0.25s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .standfirst {
    font-size: 1rem;
  }

  .chart-container--large {
    height: 280px;
  }

  .chart-container--small {
    height: 180px;
  }

  .chart-container {
    padding: 14px;
  }
}
