:root {
  --ink: #0E1B2C;
  --ink-2: #3A4656;
  --muted: #4A5565;
  --line: #DCDCD6;
  --ground: #F6F6F3;
  --accent: #0B6E69;
  --accent-light: #7FD1C8;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ground); line-height: 1.55; }
a { color: var(--ink); }
a:hover { color: #0B5F5B; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: #fff; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.serif { font-family: var(--serif); font-weight: 400; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }

.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 14px 26px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #095a56; color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); }
.btn-white { background: #fff; color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .btn { background: var(--ink); color: #fff; padding: 12px 20px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-end; padding-top: 96px; padding-bottom: 88px; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.015em; }
.hero .lede { margin-top: 28px; font-size: 20px; max-width: 640px; color: var(--ink-2); }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-side { flex: 1 1 300px; border-left: 1px solid var(--line); padding-left: 32px; display: flex; flex-direction: column; gap: 24px; }
.hero-side h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.hero-side p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 2px solid var(--ink); margin-top: 48px; }
.theme { padding: 28px 28px 32px; border-right: 1px solid var(--line); }
.theme:first-child { padding-left: 0; }
.theme:last-child { border-right: 0; padding-right: 0; }
.theme .num { font-size: 14px; color: var(--accent); font-weight: 600; }
.theme h3 { margin: 12px 0 10px; font-family: var(--serif); font-weight: 600; font-size: 24px; }
.theme p { color: var(--muted); font-size: 16px; }

/* Global */
.global { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.global > div { flex: 1 1 440px; min-width: 0; }
.global .eyebrow { color: var(--accent-light); }
.global h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 48px); line-height: 1.08; }
.global .lede { margin-top: 24px; font-size: 18px; color: #C9D1DC; max-width: 540px; }
.global .btn { margin-top: 36px; }
.steps { display: flex; flex-direction: column; gap: 1px; background: #2A3A50; }
.step { background: #142538; padding: 24px 28px; display: flex; gap: 20px; align-items: baseline; }
.step .n { font-family: var(--serif); font-size: 28px; color: var(--accent-light); }
.step strong { display: block; }
.step span.d { display: block; margin-top: 4px; color: #AEB8C6; font-size: 15px; }

/* Latest */
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { text-decoration: none; background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card:hover { border-color: var(--ink); }
.card .tag { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.card .title { font-family: var(--serif); font-size: 23px; line-height: 1.25; color: var(--ink); }
.card .sum { font-size: 15px; color: var(--muted); }
.card .meta { font-size: 14px; color: #5A6575; margin-top: auto; }

/* Split sections */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > .left { flex: 1 1 340px; min-width: 0; }
.split > .right { flex: 2 1 520px; min-width: 0; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.principles h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.principles p { color: var(--muted); }
.bio { border-top: 2px solid var(--ink); padding-top: 24px; }
.bio .name { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.bio .role { margin: 4px 0 20px; color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.bio p + p { margin-top: 16px; }
.bio p:not(.name):not(.role) { font-size: 18px; color: var(--ink-2); }

/* Subscribe */
.subscribe { background: var(--accent); color: #fff; }
.subscribe .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; padding-top: 80px; padding-bottom: 80px; }
.subscribe .intro { flex: 1 1 420px; min-width: 0; }
.subscribe .intro p { margin-top: 14px; font-size: 18px; color: #E3F2F0; }
.signup { flex: 1 1 420px; min-width: 0; }
.signup .fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.signup .field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.signup label { font-size: 14px; font-weight: 600; }
.signup input[type=email] { font: inherit; padding: 12px 14px; min-height: 48px; border: 0; color: var(--ink); width: 100%; }
.signup button { font: inherit; font-weight: 600; background: var(--ink); color: #fff; border: 0; padding: 0 26px; min-height: 48px; cursor: pointer; }
.signup button:hover { background: #000; }
.consent { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #E3F2F0; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.consent a { color: #fff; }
.form-note { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D1DC; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: #fff; }

/* Simple content page (privacy) */
.prose { max-width: 760px; margin: 0 auto; padding: 72px 32px 96px; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; margin-bottom: 12px; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose li { font-size: 17px; color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; }

@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 56px; gap: 40px; }
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .theme, .theme:first-child, .theme:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { gap: 18px; }
}

/* Articles and research library */
.article { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; }
.article .kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.article h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1; margin: 12px 0 16px; }
.article .byline { color: var(--muted); font-size: 15px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 44px 0 12px; }
.article p { font-size: 18px; color: var(--ink-2); line-height: 1.65; }
.article p + p { margin-top: 16px; }
.article figure { margin: 32px 0; }
.article figure svg { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
.article figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.article .notes ol { padding-left: 24px; }
.article .notes li, .article .bib p { font-size: 14px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.article .notes li + li { margin-top: 6px; }
.article .bib p { padding-left: 24px; text-indent: -24px; }
.article .bib p + p { margin-top: 8px; }
.library { list-style: none; padding: 0; margin: 32px 0 0; border-top: 2px solid var(--ink); }
.library li { border-bottom: 1px solid var(--line); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.library .date { width: 150px; color: var(--muted); font-size: 14px; flex: none; }
.library .what { flex: 1 1 400px; min-width: 0; }
.library .what a, .library .what span.t { font-family: var(--serif); font-size: 21px; text-decoration: none; display: block; }
.library .what .tag { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.library .soon { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters button { font: inherit; font-size: 14px; border: 1.5px solid var(--ink); background: #fff; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.card-soon { opacity: 0.75; }

/* Page transitions: slow fade on every page and every menu tab; the header stays still */
main, .site-footer { animation: page-fade-in 900ms ease backwards; }
main, .site-footer { transition: opacity 550ms ease; }
body.is-leaving main, body.is-leaving .site-footer { opacity: 0; }
body.is-refading main, body.is-refading .site-footer { animation: none; opacity: 0; transition: none; }
@keyframes page-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  main, .site-footer { animation: none !important; transition: none !important; }
}

.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
main > section:first-child.dark, main > section:first-child.white, main > section:first-child.subscribe { min-height: 52vh; display: flex; align-items: center; }
main > section:first-child.dark > .wrap, main > section:first-child.white > .wrap, main > section:first-child.subscribe > .wrap { width: 100%; }

/* Sticky top bar: the menu stays visible while scrolling */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 246, 243, 0.985); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow 250ms ease; }
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(14, 27, 44, 0.08); }
html { scroll-padding-top: 96px; }
@media (max-width: 720px) {
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand svg { width: 26px; height: 26px; }
  .nav { gap: 14px; font-size: 14px; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
  .nav .btn { padding: 6px 12px; min-height: 36px; }
}
@media (max-width: 720px) {
  .site-header .wrap { position: relative; }
  .nav .btn { position: absolute; right: 20px; top: 9px; }
  .brand { font-size: 16px; }
}
@media (max-width: 420px) {
  .brand svg { display: none; }
}

.bio-photo { display: block; width: 100%; max-width: 300px; height: auto; margin-top: 28px; border-radius: 4px; box-shadow: 0 8px 24px rgba(14, 27, 44, 0.12); }
@media (max-width: 720px) { .bio-photo { max-width: 220px; margin-top: 20px; } }

/* About page */
.about-hero { padding: 72px 0 80px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 72px; align-items: center; }
.about-photo { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 12px 32px rgba(14, 27, 44, 0.14); }
.about-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 24px; }
.about-text .name { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.about-text .role { margin: 4px 0 20px; color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.about-text p:not(.name):not(.role):not(.eyebrow):not(.about-contact) { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.about-text p + p { margin-top: 14px; }
.about-text .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.about-contact { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .about-hero { padding: 40px 0 56px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-photo { max-width: 260px; }
}
