:root {
  color-scheme: light;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --ink: #18304a;
  --muted: #52667b;
  --accent: #176d85;
  --line: #dce4ee;
  --soft-accent: #eaf3f6;
  --body-font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--soft-accent); color: var(--ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ol, dl { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
p + p { margin-top: 17px; }
strong { font-weight: 600; }
.site-shell { max-width: 1120px; margin: 0 auto; padding: 0 44px; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  background: var(--surface);
  z-index: 10;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  min-height: 98px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.brand-dot { color: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.main-nav a {
  padding: 9px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover { color: var(--accent); text-decoration: underline; }
.eyebrow {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(265px, .85fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  padding: 72px 0 76px;
}
.hero h1 {
  margin: 15px 0 23px;
  font-family: var(--display-font);
  font-size: clamp(43px, 5.7vw, 65px);
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.1;
}
.hero-lead { font-size: 20px; line-height: 1.65; }
.hero-secondary { color: var(--muted); font-size: 16px; }
.affiliation { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 22px; }
.hero-actions, .project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 19px 24px; }
.hero-actions { margin-top: 27px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.text-link { font-size: 14px; font-weight: 600; }
.quiet-link { font-size: 13px; color: var(--muted); }
.workflow-sketch {
  padding: 28px 27px 23px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 7px 25px rgb(24 48 74 / 3%);
}
.sketch-steps { list-style: none; padding: 25px 0 0; }
.sketch-steps li { position: relative; padding: 0 0 25px 22px; }
.sketch-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}
.sketch-steps li:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute;
  top: 7px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.step-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sketch-steps h2 { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 4px 0; }
.sketch-steps p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.sketch-link { display: inline-block; margin: 21px 0 0 22px; font-size: 12px; }
.content-section { padding: 42px 0 45px; border-top: 1px solid var(--line); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 7px 25px; margin-bottom: 31px; }
.section-heading h2 { font-size: 23px; font-weight: 600; line-height: 1.4; letter-spacing: -.45px; }
.section-heading p { color: var(--muted); font-size: 13px; }
.interest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px; }
.interest h3 {
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.35px;
  margin: 11px 0 13px;
}
.interest > p:last-child { color: var(--muted); font-size: 15px; }
.research-note { color: var(--muted); font-size: 13px; margin-top: 28px; max-width: 790px; }
.featured-project { display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 48px; }
.project-copy h3 { margin: 10px 0 12px; font-size: 26px; letter-spacing: -.6px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.project-copy h3 a { color: var(--ink); text-decoration: none; }
.project-copy h3 a:hover { color: var(--accent); text-decoration: underline; }
.project-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.project-actions { margin-top: 21px; }
.project-highlights { border-left: 2px solid var(--accent); padding: 3px 0 3px 23px; align-self: center; }
.project-highlights div + div { margin-top: 15px; }
.project-highlights dt { font-family: var(--mono-font); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.project-highlights dd { margin: 3px 0 0; font-size: 13px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: 62px; }
.about-copy { color: var(--muted); font-size: 15px; }
.about-copy strong { color: var(--ink); }
.contact { padding-top: 2px; }
.contact .eyebrow { margin-bottom: 13px; }
.contact-link { display: block; width: fit-content; font-size: 14px; margin-top: 11px; overflow-wrap: anywhere; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px 30px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 26px 0 33px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer a { color: var(--muted); }
.site-footer p span { margin: 0 5px; }
.back-link { display: inline-block; margin-bottom: 30px; font-size: 13px; color: var(--muted); }
.project-hero { padding: 40px 0 53px; }
.project-hero > .eyebrow { max-width: 100%; overflow-wrap: anywhere; }
.project-hero h1 {
  margin: 15px 0 15px;
  max-width: 820px;
  font-family: var(--display-font);
  font-size: clamp(42px, 5.8vw, 65px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.project-lead { font-size: 21px; color: var(--ink); }
.project-intro { max-width: 765px; font-size: 16px; color: var(--muted); }
.project-layout { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 57px; border-top: 1px solid var(--line); }
.project-toc { align-self: start; padding-top: 37px; position: sticky; top: 25px; }
.project-toc .eyebrow { margin-bottom: 14px; }
.project-toc nav { display: grid; gap: 13px; }
.project-toc a { width: fit-content; font-size: 13px; color: var(--muted); text-decoration: none; }
.project-toc a:hover { color: var(--accent); text-decoration: underline; }
.project-body { min-width: 0; padding-bottom: 25px; }
.article-section { padding: 35px 0; }
.article-section + .article-section { border-top: 1px solid var(--line); }
.article-section h2 { font-size: 26px; font-weight: 600; line-height: 1.35; letter-spacing: -.6px; margin-bottom: 16px; }
.article-section p { color: var(--muted); font-size: 15px; }
.article-section > .text-link { display: inline-block; margin-top: 17px; }
.feature-list { display: grid; gap: 23px; }
.feature-list h3 { font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.experiment-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 22px 0;
  margin: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--soft-accent);
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 11px;
}
.experiment-flow h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.experiment-flow p { font-size: 12px; line-height: 1.75; }
.resource-list { display: grid; }
.resource-list > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  text-decoration: none;
}
.resource-list > a + a { border-top: 1px solid var(--line); }
.resource-list strong { display: block; font-size: 15px; }
.resource-list small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.resource-list > a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.link-note { font-size: 12px; font-weight: 400; }

@media (max-width: 850px) {
  .site-shell { padding: 0 30px; }
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .9fr); gap: 29px; padding: 55px 0; }
  .hero-lead { font-size: 18px; }
  .workflow-sketch { padding: 23px 20px; }
  .interest-grid { gap: 31px; }
  .featured-project { grid-template-columns: minmax(0, 1fr) 195px; gap: 31px; }
  .about-grid { gap: 30px; }
  .project-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 33px; }
  .experiment-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 18px; }
  .site-shell { padding: 0 22px; }
  .site-header { min-height: 106px; gap: 13px; padding: 21px 0 16px; flex-wrap: wrap; }
  .brand { font-size: 26px; }
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 33px; padding: 43px 0 39px; }
  .hero h1 { margin: 14px 0 19px; letter-spacing: -1.2px; }
  .hero-lead { font-size: 19px; }
  .hero-secondary { font-size: 15px; }
  .hero-actions { gap: 16px 21px; margin-top: 23px; }
  .workflow-sketch { padding: 24px; }
  .sketch-steps { padding-top: 21px; }
  .sketch-steps li { padding-bottom: 20px; }
  .sketch-steps li:last-child { padding-bottom: 0; }
  .content-section { padding: 33px 0 36px; }
  .section-heading { margin-bottom: 25px; display: block; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { margin-top: 6px; }
  .interest-grid, .featured-project, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .interest h3 { font-size: 26px; }
  .research-note { margin-top: 23px; }
  .project-copy h3 { font-size: 25px; }
  .project-highlights { padding-left: 20px; }
  .project-highlights div + div { margin-top: 10px; }
  .contact { padding-top: 0; }
  .site-footer { display: block; padding: 24px 0 29px; }
  .site-footer > a { display: inline-block; margin-top: 11px; }
  .project-hero { padding: 30px 0 36px; }
  .back-link { margin-bottom: 25px; }
  .project-lead { font-size: 19px; }
  .project-intro { font-size: 15px; }
  .project-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .project-toc { position: static; padding: 25px 0; border-bottom: 1px solid var(--line); }
  .project-toc nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .project-toc .eyebrow { margin-bottom: 11px; }
  .article-section { padding: 29px 0; }
  .article-section h2 { font-size: 24px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121a24;
    --surface: #1b2635;
    --ink: #e8eff7;
    --muted: #a8b8c9;
    --accent: #79c3d5;
    --line: #35455a;
    --soft-accent: #213f4b;
  }
  .workflow-sketch { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@media (pointer: coarse) {
  .main-nav a, .contact-link, .project-toc a, .back-link, .text-link, .quiet-link, .site-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .contact-link { display: flex; }
}

@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-shell { max-width: none; padding: 0; }
  .main-nav, .hero-actions, .project-toc, .skip-link, .site-footer > a { display: none; }
  .project-layout { display: block; }
  .workflow-sketch { box-shadow: none; }
  .hero, .project-hero { padding: 25px 0; }
  a { color: inherit; }
  .article-section, .interest, .featured-project { break-inside: avoid; }
}
