@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --bg:        oklch(98.5% 0.006 240);
  --bg-alt:    oklch(96%   0.009 240);
  --bg-card:   oklch(97%   0.008 240);
  --fg:        oklch(14%   0.015 245);
  --fg-muted:  oklch(48%   0.020 240);
  --accent:    oklch(44%   0.130 248);
  --accent-hi: oklch(60%   0.110 248);
  --rule:      oklch(87%   0.012 240);
  --serif:     'Spectral', Georgia, serif;
  --sans:      'IBM Plex Sans', system-ui, sans-serif;
  --max-w:     74rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        oklch(12%   0.015 245);
    --bg-alt:    oklch(17%   0.015 245);
    --bg-card:   oklch(16%   0.015 245);
    --fg:        oklch(93%   0.007 240);
    --fg-muted:  oklch(62%   0.018 240);
    --accent:    oklch(63%   0.115 248);
    --accent-hi: oklch(72%   0.090 248);
    --rule:      oklch(25%   0.015 240);
  }
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ───────────────────────────────────────────── */
.outer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.site-header .outer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg);
}
.wordmark .accent { color: var(--accent); }

nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  margin-left: 2rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
nav a:hover { color: var(--fg); }
nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--fg);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: oklch(98% 0.006 240);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-primary:hover { background: var(--accent-hi); }

.btn-ghost {
  display: inline-block;
  color: var(--fg-muted);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.7rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.18s, border-color 0.18s;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-muted); }

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-aside p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 36ch;
}
.hero-aside p + p { margin-top: 1rem; }
.cta-group {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Section headers ──────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── Activities ───────────────────────────────────────── */
.activities {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.activity-card {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  border: 1px solid var(--rule);
}
.activity-card:first-child { border-radius: 3px 0 0 3px; }
.activity-card:last-child  { border-radius: 0 3px 3px 0; }
.activity-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.activity-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.activity-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── About teaser ─────────────────────────────────────── */
.about-teaser {
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}
.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.about-teaser h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ── CTA strip ────────────────────────────────────────── */
.cta-strip { padding: 4.5rem 0; }
.cta-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 55ch;
}

/* ── Page hero ────────────────────────────────────────── */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.page-hero .sub {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 50ch;
}

/* ── Prose sections ───────────────────────────────────── */
.prose-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}
.prose-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.25rem;
}
.prose-body p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 62ch;
}
.prose-body p + p { margin-top: 1.25rem; }
.prose-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: opacity 0.18s;
}
.prose-body a:hover { opacity: 0.75; }
.prose-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.prose-body h3:first-child { margin-top: 0; }
.prose-body ul {
  padding-left: 1.25rem;
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose-body li + li { margin-top: 0.35rem; }

/* ── Contact ──────────────────────────────────────────── */
.contact-section { padding: 4rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-intro h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.contact-intro p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: 0.9375rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--fg);
  padding: 0.65rem 0.9rem;
  transition: border-color 0.18s;
  outline: none;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 120px; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
}
.site-footer .outer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-nav a:hover { color: var(--fg); }
.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.social-link:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner            { grid-template-columns: 1fr; gap: 2rem; }
  .hero-aside p          { max-width: 100%; }
  .activities-grid       { grid-template-columns: repeat(2, 1fr); }
  .about-teaser-inner    { grid-template-columns: 1fr; gap: 2rem; }
  .cta-strip-inner       { grid-template-columns: 1fr; }
  .prose-grid            { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid          { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .outer                 { padding: 0 1.25rem; }
  .hero                  { padding: 3rem 0; }
  .activities-grid       { grid-template-columns: 1fr; }
  .activity-card:first-child { border-radius: 3px 3px 0 0; }
  .activity-card:last-child  { border-radius: 0 0 3px 3px; }
  nav                    { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 1.25rem;
    gap: 0.5rem;
    z-index: 100;
  }
  nav.open a             { margin-left: 0; }
  .nav-toggle            { display: flex; }
  .site-header           { position: relative; }
}
