/* Movemend — forest palette, large radius, Spectral + Atkinson Hyperlegible */

:root {
  --paper: #F2F5EE;
  --surface: #FCFEF9;
  --ink: #0F1B14;
  --primary: #1F5C3A;
  --primary-hover: #163F28;
  --muted: #5C6A5E;
  --divider: rgba(15, 27, 20, 0.10);
  --ink-on-paper-90: rgba(15, 27, 20, 0.88);

  --r-card: 14px;
  --r-button: 8px;
  --r-image: 12px;
  --r-pill: 999px;

  --max-w: 1280px;
  --pad-x: 80px;
  --gap: 24px;
  --section-y: 96px;

  --font-head: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 760px) {
  :root {
    --pad-x: 20px;
    --gap: 16px;
    --section-y: 64px;
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
}

main p a, .prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s, text-decoration-thickness 0.15s;
}
main p a:hover, .prose a:hover {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; }
h4 { font-size: 1.25rem; line-height: 1.3; }

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * 0.6) 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 245, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.site-header.scrolled { border-bottom-color: var(--divider); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
@media (max-width: 760px) { .site-header__inner { height: 56px; } }

.brand { display: inline-flex; align-items: center; }
.brand img { height: 32px; width: auto; display: block; image-rendering: -webkit-optimize-contrast; }
@media (max-width: 760px) { .brand img { height: 24px; } }
.site-footer__about .brand img { height: 40px; margin-bottom: 16px; }

.nav { display: flex; gap: 32px; margin-left: 32px; }
.nav a {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--primary); }

.header-right { margin-left: auto; display: inline-flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.lang-switch a { color: var(--muted); padding: 4px 8px; }
.lang-switch a.active { color: var(--ink); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch__sep { color: var(--divider); padding: 0 2px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-button);
  color: var(--ink);
}
.icon-btn:hover { background: var(--divider); }

.menu-toggle { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  padding: 24px var(--pad-x);
  display: none;
  flex-direction: column;
}
.drawer.open { display: flex; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.drawer .nav { display: flex; flex-direction: column; gap: 16px; margin-left: 0; }
.drawer .nav a { font-size: 24px; font-family: var(--font-head); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.eyebrow--solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Hero */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 { margin: 24px 0 24px; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.55; max-width: 60ch; color: var(--ink-on-paper-90); }
.hero__cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--primary);
  padding-left: 24px;
}
.hero__quote cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--font-body); font-size: 14px; color: var(--muted); }

.hero__strip {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.hero__strip span:not(:last-child)::after {
  content: "·";
  margin-left: 24px;
  color: var(--divider);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--r-button);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--primary); color: var(--paper); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Pillar strip */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 880px) { .pillars { grid-template-columns: repeat(2, 1fr); } }

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 28px;
  transition: transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.pillar-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.pillar-card__icon { width: 28px; height: 28px; color: var(--primary); margin-bottom: 16px; }
.pillar-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.pillar-card p { font-size: 16px; color: var(--ink-on-paper-90); margin-bottom: 16px; line-height: 1.5; flex-grow: 1; }
.pillar-card__more { color: var(--primary); font-weight: 700; font-size: 14px; }

/* Section header */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { max-width: 24ch; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip--ghost { background: transparent; color: var(--ink); border: 1px solid var(--divider); }
.chip--ghost:hover { background: var(--ink); color: var(--paper); }

/* Article grid */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 1000px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.article-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.article-card { position: relative; }
.article-card__cover-pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.article-card__cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--paper);
  color: var(--ink);
  z-index: 2;
}
.article-card__body { padding: 20px 24px 24px; }
.article-card__body h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 8px; }
.article-card__meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.article-card__summary { font-size: 15px; color: var(--ink-on-paper-90); line-height: 1.5; }

/* Sport spotlight */
.spotlight { display: grid; grid-template-columns: 6fr 4fr; gap: var(--gap); }
@media (max-width: 880px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight__col-right { display: grid; grid-template-rows: repeat(3, 1fr); gap: var(--gap); }
.spot-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  min-height: 240px;
  border-radius: var(--r-card);
  color: var(--paper);
  background: linear-gradient(135deg, var(--tile-a, #1F5C3A), var(--tile-b, #163F28));
  transition: transform 0.15s;
}
.spot-tile:hover { transform: translateY(-2px); }
.spot-tile--lg { min-height: 100%; padding: 48px; }
.spot-tile h3 { color: var(--paper); font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-bottom: 8px; }
.spot-tile p { font-size: 14px; opacity: 0.9; max-width: 30ch; }

/* Research band */
.research-band {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-y) 0;
}
.research-band .container { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .research-band .container { grid-template-columns: 1fr; } }
.research-band h2 { color: var(--paper); margin: 16px 0 24px; }
.research-band p { color: rgba(242, 245, 238, 0.85); font-size: 18px; line-height: 1.6; max-width: 50ch; }
.research-band .eyebrow { background: transparent; border-color: var(--paper); color: var(--paper); }

.cite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cite-box {
  border: 1px solid rgba(242, 245, 238, 0.20);
  border-radius: var(--r-card);
  padding: 20px;
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.3;
  color: rgba(242, 245, 238, 0.85);
  min-height: 100px;
  display: flex;
  align-items: center;
}

/* Newsletter */
.newsletter { max-width: 720px; margin: 0 auto; text-align: center; }
.newsletter h2 { margin: 16px 0 16px; }
.newsletter > p { color: var(--ink-on-paper-90); font-size: 18px; }
.newsletter form { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.newsletter input[type="email"] {
  flex: 1 1 280px;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-button);
}
.newsletter input[type="email"]:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.newsletter__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.newsletter__lang { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-pill); margin-bottom: 16px; }
.newsletter__lang span { padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; border-radius: var(--r-pill); cursor: pointer; }
.newsletter__lang span.active { background: var(--ink); color: var(--paper); }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); padding: 64px 0 48px; }
.site-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gap); }
@media (max-width: 880px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-footer h4, .site-footer .footer-col-title { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: var(--pad-x); top: 12px; z-index: 1000; padding: 8px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-button); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--ink); font-size: 15px; }
.site-footer li a:hover { color: var(--primary); }
.site-footer__about p { font-size: 15px; color: var(--ink-on-paper-90); margin: 16px 0; max-width: 36ch; }
.site-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }

/* Prose pages (pillar / sport / about) */
.prose { max-width: 720px; margin: 0 auto; }
.prose .eyebrow { margin-bottom: 24px; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { margin-top: 56px; margin-bottom: 16px; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }
.prose p { margin-bottom: 1em; }
.prose .lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--ink-on-paper-90); margin-bottom: 32px; }
.prose ul, .prose ol { margin: 1em 0 1em 1.5em; }
.prose li { margin-bottom: 0.5em; }
.prose hr { border: 0; border-top: 1px solid var(--divider); margin: 48px 0; }

/* Sub-page hero */
.subhero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 6vw, 64px); border-bottom: 1px solid var(--divider); }
.subhero__crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; letter-spacing: 0.04em; }
.subhero__crumbs a { color: var(--muted); }
.subhero__crumbs a:hover { color: var(--ink); }

/* Children listing */
.child-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 48px 0; }
@media (max-width: 880px) { .child-grid { grid-template-columns: 1fr; } }
.child-card {
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 28px;
  background: var(--surface);
  transition: transform 0.15s, border-color 0.15s;
}
.child-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.child-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.child-card p { font-size: 15px; color: var(--ink-on-paper-90); }

/* Article body */
.article-cover { margin: 0 auto; max-width: 960px; }
.article-cover img { border-radius: var(--r-image); width: 100%; height: auto; display: block; }
.article-meta { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; margin-top: 24px; }
.prose-intro { font-size: 1.05rem; line-height: 1.7; padding-bottom: 32px; border-bottom: 1px solid var(--divider); margin-bottom: 32px; }

/* Infographic figure */
.infographic {
  margin: 40px 0 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
}
.infographic picture { display: block; max-width: 720px; margin: 0 auto; }
.infographic img { width: 100%; height: auto; display: block; border-radius: 8px; }
.infographic figcaption {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-on-paper-90);
  text-align: center;
}
.infographic figcaption strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}
.infographic__source { color: var(--muted); font-size: 13px; }
.infographic__embed { margin-top: 16px; text-align: left; max-width: 720px; margin-left: auto; margin-right: auto; }
.infographic__embed summary {
  cursor: pointer;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  list-style: none;
}
.infographic__embed summary::-webkit-details-marker { display: none; }
.infographic__embed[open] summary { background: var(--ink); color: var(--paper); }
.infographic__embed textarea {
  display: block;
  margin-top: 12px;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--divider);
  border-radius: var(--r-button);
  padding: 12px;
  resize: vertical;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq-item { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-card); padding: 20px 24px; transition: border-color 0.15s; }
.faq-item:hover { border-color: var(--ink); }
.faq-item summary { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; cursor: pointer; list-style: none; padding-right: 32px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform 0.15s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-on-paper-90); }

/* Utility */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
