:root {
  --paper: #f7f3ea;
  --paper-strong: #fffaf0;
  --ink: #111816;
  --muted: #5f6863;
  --quiet: #d9d3c7;
  --line: rgba(17, 24, 22, 0.15);
  --green: #0f6b55;
  --green-deep: #123c35;
  --amber: #b87521;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(17, 24, 22, 0.1);
  --max: 1180px;
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 22, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 22, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 18%, rgba(36, 104, 242, 0.1), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(15, 107, 85, 0.1), transparent 22%);
  pointer-events: none;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
dl {
  margin-top: 0;
}

p {
  color: var(--muted);
}

strong {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 20;
  transform: translateY(-180%);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(36, 104, 242, 0.48);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, 0.9);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-name,
.brand-affiliation {
  display: block;
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 760;
  line-height: 1.1;
}

.brand-affiliation {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(15, 107, 85, 0.1);
  color: var(--green-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.78);
  color: var(--ink);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.page-hero {
  padding-top: 86px;
}

.home-intro {
  padding-top: 86px;
  padding-bottom: 56px;
}

.home-intro h1 {
  max-width: none;
  margin-bottom: 0;
  white-space: nowrap;
  font-size: clamp(1.6rem, 5vw, 3.8rem);
}

.home-banner {
  margin: 36px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  padding: 12px;
}

.home-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.intro-copy,
.join-copy {
  max-width: none;
}

.intro-copy {
  margin: 44px 0 0;
}

.join-block {
  padding-top: 22px;
}

.intro-copy p + p,
.join-copy p + p {
  margin-top: 18px;
}

.intro-copy p,
.join-copy p {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.62;
}

.intro-copy .hero-lede {
  max-width: none;
  font-size: 1.2rem;
}

.page-hero {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 72px;
}

.section-block {
  padding-top: 84px;
  padding-bottom: 84px;
  border-top: 1px solid var(--line);
}

.compact-top {
  padding-top: 48px;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.45vw, 4.6rem);
  font-weight: 640;
  letter-spacing: 0;
  line-height: 0.98;
}

.page-hero h1 {
  max-width: 920px;
}

h2 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.18;
}

.hero-lede {
  max-width: 760px;
  font-size: 1.13rem;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-top: 86px;
  padding-bottom: 64px;
}

.research-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(1.95rem, 3.3vw, 3.05rem);
  line-height: 1.04;
}

.research-hero .hero-lede {
  margin-bottom: 0;
}

.research-figure {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  padding: 22px;
}

.research-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.direction-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: directions;
}

.direction-list > li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.direction-list > li:last-child {
  border-bottom: 1px solid var(--line);
}

.direction-list > li::before {
  counter-increment: directions;
  content: counter(directions, decimal-leading-zero);
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.direction-list h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.direction-list p {
  max-width: 760px;
  margin-bottom: 0;
}

.profile-section {
  padding-top: 86px;
  padding-bottom: 72px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 216px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.profile-media {
  max-width: 216px;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--paper-strong);
}

.profile-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.58);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(15, 107, 85, 0.1);
  box-shadow: 0 10px 24px rgba(17, 24, 22, 0.12);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.profile-body .section-kicker {
  display: block;
  margin-bottom: 8px;
}

.profile-body h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.02;
}

.profile-title {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
}

.profile-affiliation {
  margin-bottom: 22px;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-body p {
  max-width: 720px;
}

.profile-body p + p {
  margin-top: 16px;
}

.publication-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: publications;
}

.publication-list li {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.publication-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.pub-cite {
  margin: 0;
}

.pub-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pub-link:hover {
  color: var(--green-deep);
}

.pub-coverage {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.pub-coverage a {
  color: var(--green);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pub-coverage a:hover {
  color: var(--green-deep);
}

.pub-section-title {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.pub-coming {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.pub-note {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pubs-hero {
  max-width: var(--max);
  padding-bottom: 16px;
}

.pubs-intro {
  padding-top: 8px;
  padding-bottom: 56px;
}

.position-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.position {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.position:last-child {
  border-bottom: 1px solid var(--line);
}

.position h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.position > p {
  max-width: 760px;
}

.submit-label {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submit-list {
  max-width: 760px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.submit-list li {
  margin-bottom: 4px;
}

.submit-list li:last-child {
  margin-bottom: 0;
}

.apply-card {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--green-deep);
  box-shadow: var(--shadow);
  padding: 32px;
  color: var(--paper);
}

.apply-card .section-kicker {
  margin-bottom: 10px;
  color: #9fe3c7;
}

.apply-line {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(247, 243, 234, 0.86);
  font-size: 1.2rem;
}

.apply-line a {
  color: #9fe3c7;
  font-weight: 760;
}

/* Emphasized apply card — larger, lighter-green variant (Team recruiting + Join "How to Apply") */
.recruit-card {
  background: var(--green);
  padding: 48px;
}

.recruit-card .section-kicker {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.recruit-card .apply-line {
  font-size: 1.45rem;
  color: rgba(247, 243, 234, 0.94);
}

/* Join "How to Apply" section — drop the redundant top divider (the position
   list already ends in one) and tighten the gap above the card */
.apply-section {
  border-top: none;
  padding-top: 36px;
}

/* Join hero — match the full content width of the sections below (the base
   .page-hero caps at 980px, which left it indented past "Open positions"),
   and tighten the gap between the intro lede and the first divider */
.join-hero {
  max-width: var(--max);
  padding-bottom: 36px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 34px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--green-deep);
  font-weight: 760;
}

@media (max-width: 930px) {
  .profile-layout,
  .research-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand-affiliation {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 6px;
    padding: 12px;
  }

  .page-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .page-hero {
    padding-top: 72px;
    padding-bottom: 62px;
  }

  .home-intro {
    padding-top: 72px;
  }

  .home-intro h1 {
    white-space: normal;
    font-size: clamp(1.85rem, 7.4vw, 2.6rem);
  }

  .intro-copy {
    margin-top: 26px;
  }

  .home-banner {
    margin-top: 22px;
    padding: 10px;
  }

  .research-hero {
    gap: 30px;
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .section-block {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .apply-section {
    padding-top: 28px;
  }

  .join-hero {
    padding-bottom: 30px;
  }

  .compact-top {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.08rem, 10.2vw, 2.72rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .apply-card {
    padding: 20px;
  }

  .position {
    padding: 26px 0;
  }

  .apply-line {
    font-size: 1.08rem;
  }

  .recruit-card {
    padding: 28px;
  }

  .recruit-card .apply-line {
    font-size: 1.2rem;
  }

  .research-figure {
    padding: 14px;
  }

  .direction-list > li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }

  .direction-list > li::before {
    font-size: 2rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
