:root {
  --paper: #f6f7f1;
  --ink: #17211e;
  --muted: #5b665f;
  --accent: #0f766e;
  --accent-2: #c2410c;
  --accent-3: #f4d35e;
  --line: rgb(0 0 0 / 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  margin: 0 auto;
  max-width: 1160px;
  padding-inline: 24px;
}

.site-header {
  background: rgb(246 247 241 / 0.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  z-index: 5;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
}

.brand {
  font-size: 0.9rem;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding-bottom: 82px;
  padding-top: 80px;
}

.hero-copy {
  align-self: center;
}

.location {
  background: rgb(255 255 255 / 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  font-size: 0.9rem;
  margin: 0 0 28px;
  padding: 8px 12px;
}

.location::before {
  content: "⌖";
  color: var(--accent-2);
  margin-right: 7px;
}

.eyebrow,
.section-heading > p,
.card-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 760;
  line-height: 0.98;
  margin: 16px 0 0;
  max-width: 820px;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 28px 0 0;
  max-width: 760px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgb(0 0 0 / 0.15);
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 650;
  min-height: 40px;
  padding: 0 16px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.button:hover {
  background: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.profile-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid rgb(0 0 0 / 0.14);
  box-shadow: 18px 18px 0 rgb(15 118 110 / 0.18);
  max-height: 480px;
  overflow: hidden;
}

.profile-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 0;
}

.stats div {
  background: rgb(255 255 255 / 0.74);
  border: 1px solid var(--line);
  min-width: 0;
  padding: 14px;
}

.stats dt {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.stats dd {
  font-size: 0.95rem;
  font-weight: 760;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}

.skill-band {
  background: var(--ink);
  border-block: 1px solid var(--line);
  color: white;
}

.skill-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 34px;
  padding-top: 34px;
}

.skill-grid h2 {
  color: var(--accent-3);
  font-size: 0.95rem;
  margin: 0;
}

.skill-grid p {
  color: rgb(255 255 255 / 0.72);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 14px 0 0;
}

.section {
  padding-bottom: 76px;
  padding-top: 76px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 760;
  line-height: 1.04;
  margin: 12px 0 0;
  max-width: 780px;
}

.project-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.project-card,
.research-grid article,
.timeline article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card {
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.04);
  padding: 24px;
}

.project-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-top: 12px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
}

.project-card p:not(.card-kicker),
.research-grid p:not(.card-kicker):not(.links),
.timeline p,
.publications p {
  color: var(--muted);
  line-height: 1.7;
}

ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
}

li {
  display: flex;
  font-size: 0.92rem;
  line-height: 1.6;
}

li::before {
  background: var(--accent-2);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 6px;
  margin: 10px 10px 0 0;
  width: 6px;
}

.tags {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.tags span {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 6px 10px;
}

.white-band {
  background: #fff;
}

.white-band .project-card,
.white-band .research-grid article,
.white-band .timeline article {
  background: var(--paper);
}

.research-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 34px;
}

.research-grid article {
  padding: 28px;
}

.links,
.publications article > p {
  display: flex;
  gap: 18px;
}

.links a,
.publications a,
.contact-list a {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.links a::after,
.publications a::after,
.contact-list a::after {
  content: " ↗";
}

.publications {
  border-block: 1px solid var(--line);
  margin-top: 34px;
}

.publications article {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: 26px 0;
}

.publications article:last-child {
  border-bottom: 0;
}

.publications h3 {
  font-size: 1rem;
}

.publications strong {
  font-size: 0.9rem;
}

.publications article > p {
  justify-content: flex-end;
  margin: 0;
}

.timeline-wrap {
  display: grid;
  gap: 56px;
  grid-template-columns: 330px minmax(0, 1fr);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  display: grid;
  gap: 22px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 22px;
}

.timeline article > p {
  color: var(--accent);
  font-weight: 760;
  margin: 0;
}

.timeline h3 {
  font-size: 1rem;
}

.timeline div p {
  font-size: 0.92rem;
  margin: 8px 0 0;
}

.contact {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.contact h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  margin: 14px 0 0;
  max-width: 720px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  justify-content: space-between;
  padding-bottom: 32px;
  padding-top: 24px;
}

@media (max-width: 880px) {
  nav {
    display: none;
  }

  .hero,
  .project-grid,
  .timeline-wrap,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .profile-frame {
    box-shadow: 10px 10px 0 rgb(15 118 110 / 0.18);
  }

  .skill-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    gap: 18px;
  }

  .publications article {
    grid-template-columns: 1fr;
  }

  .publications article > p {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding-inline: 16px;
  }

  .hero {
    gap: 28px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats div {
    padding: 10px;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}
