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

:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #202d2a;
  --muted: #4b5953;
  --green: #215648;
  --light: #e9eee5;
  --line: #cad0c5;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: fixed; z-index: 2; inset: 12px auto auto 12px; transform: translateY(calc(-100% - 24px)); padding: 10px 14px; background: white; }
.skip:focus { transform: none; }
main:focus { outline-offset: -2px; }
.shell { width: min(1160px, calc(100% - 100px)); margin-inline: auto; }
.top, nav, .actions, .footer { display: flex; align-items: center; }
.top { justify-content: space-between; gap: 24px; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { margin-left: 5px; font-size: .8rem; color: var(--muted); font-weight: 500; }
nav { gap: clamp(14px, 3vw, 36px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: .88rem; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.35fr .9fr; align-items: center; gap: clamp(32px, 7vw, 105px); padding-block: 66px 74px; }
.eyebrow { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--green); }
.eyebrow span { display: inline-block; width: 23px; height: 1px; background: currentColor; margin: 0 10px 4px 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(58px, 6.65vw, 98px); letter-spacing: -.027em; margin-block: 19px 22px; }
h1 em { display: block; color: var(--green); }
.intro { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 33ch; }
.actions { gap: 8px 20px; flex-wrap: wrap; margin-top: 29px; font-size: .88rem; font-weight: 600; }
.actions a, .footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.button { background: var(--green); color: white; padding: 11px 17px; text-decoration: none; }
.button:hover { background: #183e34; }
.button span { margin-left: 3px; }
figure { margin: 0; }
.hero-portrait > img { width: 100%; height: auto; display: block; border-radius: 2px; }
.hero-portrait figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}
.hero-portrait figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}
.hero-portrait figcaption span { display: block; margin-top: 3px; }
.stanford-logo {
  display: block;
  width: 265px;
  max-width: 100%;
  height: auto;
}
.research, .about { background: var(--light); }
.research, .papers, .about { padding-block: 69px; }
h2 { font-size: clamp(44px, 5.6vw, 72px); margin-bottom: 18px; }
h3 { font-size: clamp(31px, 3.25vw, 46px); }
p { margin: 0 0 1em; }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(22px, 4vw, 46px); color: #f7f7ec; background: #224b40; }
.featured .eyebrow, .award { color: #d2e4d3; }
.featured p:last-child { margin: 0; }
.award { font-size: .84rem; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 29px; }
.themes article { border-top: 1px solid #aebbb0; padding-top: 21px; }
.themes p { margin-block: 13px; }
.themes a, .papers > div > a { font-size: .9rem; font-weight: 600; }
.papers, .about-grid { display: grid; grid-template-columns: 1fr 1.65fr; gap: 54px; }
.papers ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.papers li { border-bottom: 1px solid var(--line); }
.papers li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 15px; color: var(--ink); text-decoration: none; }
.papers li a:hover strong, .papers li a:focus-visible strong { text-decoration: underline; }
.papers li strong { display: block; font-weight: 600; }
.papers li a div > span { display: block; color: var(--muted); font-size: .82rem; }
.paper-arrow { color: var(--green); }
.about-grid h3 { margin-bottom: 14px; }
.about-grid p { max-width: 66ch; }
.about-grid p:last-child { margin-bottom: 0; }
footer { background: #203932; color: #f5f5eb; padding-block: 39px; }
.footer { gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.footer h2 { font-size: 42px; margin-bottom: 7px; }
.footer p { margin: 0; }
.footer a { color: inherit; }
@media (max-width: 960px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 34px; padding-block: 46px 52px; }
  h1 { font-size: clamp(54px, 7.7vw, 74px); }
  .featured, .papers, .about-grid { gap: 30px; }
  .themes { gap: 20px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 40px); }
  .top { flex-wrap: wrap; gap: 0; padding-top: 7px; }
  nav { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; }
  .hero, .featured, .themes, .papers, .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-block: 31px 39px; }
  .hero figure { max-width: 420px; }
  .hero-portrait > img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 27%; }
  h1 { font-size: clamp(48px, 12.5vw, 72px); margin-block: 13px 16px; }
  .actions { margin-top: 15px; }
  .research, .papers, .about { padding-block: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}
.media-page { padding-block: 54px 70px; }
.media-page h1 { font-size: clamp(51px, 6.5vw, 90px); margin: 0 0 30px; }
.media-feature { padding: clamp(22px, 4vw, 46px); background: var(--light); }
.media-feature h2 { font-size: clamp(39px, 5vw, 61px); max-width: 23ch; }
.media-feature p:not(.eyebrow) { max-width: 58ch; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 70px);
  margin-top: 45px;
}
.media-videos { margin-top: 45px; }
.media-videos h2, .media-grid h2 { font-size: clamp(38px, 4vw, 55px); }
.media-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.media-list li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.media-list a { display: block; padding-block: 8px; font-weight: 600; }
.media-source { color: var(--muted); font-size: .82rem; margin: 0; }
.profile-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 10px; }

@media (max-width: 640px) {
  .media-page { padding-block: 34px 43px; }
  .media-grid { grid-template-columns: 1fr; }
}
