:root {
  --green-900: #0d3b2e;
  --green-700: #14684f;
  --green-500: #1d9e75;
  --green-100: #d9f0e7;
  --green-50: #eef8f4;
  --sand-100: #f5f2ea;
  --sand-200: #e8e2d4;
  --ink: #1c1c1a;
  --ink-2: #4a4a46;
  --ink-3: #7a7a74;
  --line: #ddd8ca;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  flex: 0 0 auto;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2);
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { background: var(--sand-100); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--green-700); background: var(--green-50); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  background: var(--sand-100);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 600;
}
.hero .lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 680px;
  margin: 0 0 28px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--sand-100); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { margin-bottom: 32px; max-width: 720px; }
.sec-head h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 600;
}
.sec-head p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.stat .num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--green-700);
  line-height: 1.2;
}
.stat .label { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.stat .src { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--green-500); transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
.card p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; flex: 1; }
.card .go { font-size: 14px; font-weight: 500; color: var(--green-700); }
.card-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 12px; font-weight: 600; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; font-weight: 600; }
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose ul { color: var(--ink-2); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--green-50);
  border-left: 3px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--white); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--sand-100); font-weight: 600; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--green-50); }
td.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ---------- Player cards ---------- */
.player {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
}
.player-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
img.player-avatar,
svg.player-avatar {
  width: 64px; height: 64px; border-radius: 14px;
  flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--sand-100);
}
img.player-avatar { object-fit: cover; }
svg.player-avatar { display: block; }
.player-head h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; font-weight: 600; }
.player-head .role { font-size: 14px; color: var(--ink-2); margin: 0; }
.player-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin: 18px 0; }
.player-rows .pr { border-top: 1px solid var(--line); padding-top: 10px; }
.player-rows .pr .n { font-size: 19px; font-weight: 600; color: var(--green-700); font-variant-numeric: tabular-nums; }
.player-rows .pr .l { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--line); padding-left: 26px; margin: 0; list-style: none; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--green-500);
}
.timeline .yr { font-weight: 600; color: var(--green-700); font-size: 14.5px; letter-spacing: 0.02em; }
.timeline p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Page hero image ---------- */
figure.hero-media {
  position: relative;
  margin: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
figure.hero-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
figure.hero-media figcaption {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 6px;
}
@media (max-width: 700px) {
  figure.hero-media img { height: 200px; }
  .site-header .wrap {
    height: auto; min-height: 60px;
    flex-wrap: wrap; gap: 0 12px;
    padding-top: 10px; padding-bottom: 0;
  }
  .nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    scrollbar-width: none;
    margin-top: 4px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 13.5px; padding: 8px 10px; flex: 0 0 auto; }
}
.img-note {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 10px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #c9ddd5;
  padding: 48px 0 32px;
  font-size: 14.5px;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #9ab8ad; }

/* ---------- Utilities ---------- */
.btn {
  display: inline-block;
  background: var(--green-700);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
.btn:hover { background: var(--green-900); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--green-700); border: 1px solid var(--green-500); }
.btn.ghost:hover { background: var(--green-50); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
/* Breathing room between hero buttons and the illustration below them */
.hero .btn-row { margin: 0 0 40px; }
@media (max-width: 700px) {
  .hero .btn-row { margin-bottom: 28px; }
}

.tag {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--green-100); color: var(--green-700); font-weight: 500; margin-right: 6px; margin-bottom: 6px;
}
.tag.gray { background: var(--sand-200); color: var(--ink-2); }

.src-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
