/* Design tokens: change these to update the whole site's palette. */
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #202a35;
  --muted: #62676b;
  --accent: #a7472c;
  --orange: #c65b3a;
  --line: #e2e1dd;
  --sage: #f0efeb;
  --gutter: 5%;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Base: content stays readable even when JavaScript is unavailable. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 Arial, Helvetica, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { background: #edd8cb; color: var(--ink); }
section[id], .detail[id] { scroll-margin-top: 24px; }
.skip-link { position: absolute; z-index: 10; left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 12px 18px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: block; flex-shrink: 0; text-decoration: none; }
.brand img { width: 210px; height: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 13px; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); }
.nav-pill { border: 1px solid #b8bfae; padding: 11px 20px; border-radius: 30px; transition: background .2s; }
.nav-pill:hover { background: var(--sage); }
.menu-toggle[hidden] { display: none; }
.menu-toggle { display: none; align-items: center; gap: 12px; border: 1px solid #b8bfae; background: transparent; color: var(--ink); border-radius: 30px; padding: 10px 15px; cursor: pointer; font-size: 12px; }
.menu-icon { display: grid; gap: 4px; width: 14px; }
.menu-icon i { display: block; height: 1px; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* Hero and conceptual observatory */
.hero { padding: 64px var(--gutter) 0; }
.eyebrow, .section-label, .chart-caption, .chart-label, .program-meta, .status, .map-caption, .map-index { font-family: var(--mono); text-transform: uppercase; }
.eyebrow { margin: 0; font-size: 10px; letter-spacing: 1.3px; }
h1 { margin: 32px 0 40px; font-size: clamp(66px, 8.1vw, 130px); line-height: 1; letter-spacing: -.06em; font-weight: 400; }
.hero-subtitle { margin: 0 0 32px; font-size: 25px; line-height: 1.4; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; }
.intro { max-width: 650px; font-size: 18px; line-height: 1.7; margin: 0 0 28px; }
.button { display: inline-flex; gap: 12px; align-items: center; flex-shrink: 0; margin-bottom: 28px; padding: 18px 25px; background: var(--ink); color: var(--paper); border-bottom: 3px solid var(--orange); border-radius: 4px; font-size: 14px; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { background: #34414f; transform: translateY(-2px); }
.observatory { padding: 22px 26px; border-radius: 5px; background: var(--sage); }
.chart-caption { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.orbits { height: 340px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ring { position: absolute; width: 230px; height: 230px; border: 1px solid #9da6ad; border-radius: 50%; }
.ring-1 { width: 130px; height: 130px; }
.ring-2 { width: 230px; height: 230px; }
.ring-3 { width: 340px; height: 340px; }
.ring-4 { width: 500px; height: 500px; }
.core { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); z-index: 1; }
.axis { position: absolute; height: 1px; width: 100%; background: #c7c8c5; transform: rotate(-15deg); }
.chart-label { position: absolute; right: 0; bottom: 25px; font-size: 9px; letter-spacing: 1px; }

/* Shared section layout */
.section { display: grid; grid-template-columns: 1fr 3fr; gap: 45px; padding: 110px var(--gutter); border-bottom: 1px solid var(--line); }
.section-content { min-width: 0; }
.section-label { color: var(--accent); font-size: 10px; letter-spacing: 1px; margin: 10px 0 0; }
h2 { font-weight: 400; font-size: clamp(42px, 4.31vw, 68px); line-height: 1.08; letter-spacing: -.048em; margin: 0 0 32px; }
h3 { font-weight: 400; font-size: 32px; line-height: 1.25; letter-spacing: -1px; margin: 28px 0 16px; }
.statement { margin: 0 0 40px; color: #727272; font-size: 32px; line-height: 1.4; letter-spacing: -1px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.copy { font-size: 17px; line-height: 1.7; margin: 0 0 20px; }
.small { font-size: 14px; line-height: 1.8; margin: 0 0 20px; }
.commitment { border-left: 2px solid var(--orange); margin-top: 32px; padding-left: 24px; }
.commitment .copy { margin-top: 14px; }
.section-sage { background: var(--sage); }
.subheading { font-size: 23px; letter-spacing: -.5px; margin: 22px 0 18px; line-height: 1.3; }

/* Research program cards */
.program { display: grid; grid-template-columns: 1fr 1.1fr; margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.program-art { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.program-body { padding: 32px; }
.program-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 9px; letter-spacing: .5px; }
.status { display: inline-block; background: #ecece8; border-radius: 3px; padding: 5px 8px; color: #555d64; font-size: 9px; letter-spacing: .4px; }
.text-link { display: inline-block; color: var(--accent); border-bottom: 1px solid var(--orange); margin-top: 10px; padding-bottom: 7px; text-decoration: none; font-size: 13px; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* Publications and the Atlas explainer */
.forthcoming { border-block: 1px solid #d2dac9; padding: 32px 0; margin-top: 40px; }
.detail { max-width: 680px; padding-top: 60px; }
.atlas-overview { margin: 32px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--sage); }
.map-caption { margin: 0 0 22px; color: var(--muted); font-size: 10px; letter-spacing: 2px; }
.map-flow { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.map-flow li { display: flex; flex: 1 1 140px; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid var(--orange); }
.map-index { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.map-flow strong { font-size: 18px; line-height: 1.25; font-weight: 400; }
.map-flow li > span:last-child { color: #555; font-size: 13px; line-height: 1.5; }
.atlas-overview figcaption { font-size: 11px; color: var(--muted); margin-top: 24px; line-height: 1.5; }
.atlas-overview .text-link { font-size: 14px; margin-top: 18px; padding-bottom: 4px; }

/* People, contact, and footer */
.people-list { list-style: none; padding: 0; margin: 24px 0 0; }
.people-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid #d9dad6; font-size: 23px; line-height: 1.4; letter-spacing: -.5px; text-decoration: none; }
.people-list a:hover { color: var(--accent); }
.people-list a span { font-size: 17px; padding-top: 3px; transition: transform .2s; }
.people-list a:hover span { transform: translate(2px, -2px); }
.contact-note { color: #666; font-size: 12px; margin: 36px 0 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px var(--gutter); }
.site-footer .small { max-width: 440px; margin: 0; }
.footer-link { color: var(--accent); font-size: 13px; text-decoration: none; white-space: nowrap; }

/* A single entrance animation, with full reduced-motion support. */
@media (prefers-reduced-motion: no-preference) {
  h1 { animation: enter .7s ease-out both; }
  @keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}

@media (min-width: 1700px) {
  :root { --gutter: max(5%, calc((100vw - 1530px) / 2)); }
}

@media (max-width: 991px) {
  .section { gap: 25px; }
  .program { grid-template-columns: 1fr; }
  .program-art { height: 360px; min-height: 0; }
}

@media (max-width: 767px) {
  :root { --gutter: 6%; }
  .site-header { padding-block: 22px; flex-wrap: wrap; }
  .brand img { width: 180px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12px; }
  .nav-pill { padding: 8px 12px; }
  .hero { padding-top: 44px; }
  h1 { font-size: clamp(50px, 9.4vw, 72px); letter-spacing: -.06em; margin-top: 28px; }
  .hero-subtitle { font-size: 21px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .intro { font-size: 16px; }
  .chart-caption { font-size: 8px; gap: 16px; }
  .chart-caption span:last-child { text-align: right; }
  .orbits { height: 270px; }
  .chart-label { font-size: 8px; }
  .section { grid-template-columns: 1fr; gap: 28px; padding-block: 64px; }
  .section-label { margin-top: 0; }
  h2 { font-size: clamp(36px, 6vw, 46px); }
  .statement { font-size: 26px; }
  .two-columns { grid-template-columns: 1fr; gap: 12px; }
  .program-art { height: 340px; }
  .site-footer { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .site-header { position: relative; gap: 18px; }
  .brand img { width: 168px; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 16px 22px; }
  .js .nav-links { display: none; }
  .js .nav-links.is-open { display: flex; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-links a { font-size: 14px; padding-block: 10px; }
  .nav-links .nav-pill { border: 0; padding-inline: 0; }
  h1 { font-size: clamp(44px, 11.2vw, 62px); }
  .hero-subtitle { max-width: 290px; }
  .observatory { padding: 20px 16px; }
  .chart-caption { font-size: 7px; letter-spacing: .5px; }
  .chart-caption span:last-child { max-width: 120px; }
  .chart-label { bottom: 14px; left: 0; right: auto; font-size: 7px; }
  .program-body { padding: 25px; }
  .program-art { height: 280px; }
  h3 { font-size: 29px; }
  .copy { font-size: 16px; }
  .atlas-overview { padding: 20px; }
  .map-flow { flex-direction: column; gap: 24px; }
  .map-flow li { flex-basis: auto; }
  .site-footer { gap: 28px; }
  .site-footer .small { width: 100%; order: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
