:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --surface: #ffffff;
  --text: #1c2230;
  --muted: #5b6475;
  --line: #e3ded3;
  --accent: #1f4e79;
  --accent-soft: #e4edf6;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151c;
    --bg-alt: #181c25;
    --surface: #1d2230;
    --text: #e8eaf0;
    --muted: #a1a9b8;
    --line: #2b3242;
    --accent: #7fb2e5;
    --accent-soft: #1f2c3d;
  }
}
:root[data-theme="dark"] {
  --bg: #12151c;
  --bg-alt: #181c25;
  --surface: #1d2230;
  --text: #e8eaf0;
  --muted: #a1a9b8;
  --line: #2b3242;
  --accent: #7fb2e5;
  --accent-soft: #1f2c3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
}

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.6fr 1fr; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column;
}
.stat-num { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 44em; margin: -4px 0 32px; font-size: 1.05rem; }
.two-col { display: grid; gap: 16px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 2.4fr; gap: 48px; } }
.prose p { margin: 0 0 1.1em; }
.sub { margin-top: 32px; }

/* Timeline */
.timeline { list-style: none; margin: 24px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 28px; display: grid; gap: 4px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 160px 1fr; gap: 24px; } }
.tl-when { color: var(--accent); font-weight: 600; font-size: .9rem; padding-top: 2px; }
.tl-body h3 { margin-bottom: 2px; }
.tl-where { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.tl-body p:last-child { margin: 0; }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 400px) { .cards, .cards-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.card.press { display: block; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card.press:hover { border-color: var(--accent); transform: translateY(-2px); }
.card.press h3 { margin-bottom: 12px; }
.card.press p:last-child { color: var(--accent); font-weight: 600; font-size: .9rem; }
.tag { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 10px !important; }

.callout {
  margin-top: 24px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--accent-soft); display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
}
.callout p { margin: 0; }
.callout-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.callout-links a { text-decoration: none; }

/* Lists */
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }

/* Contact */
.contact { text-align: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }
