:root {
  --paper: #f8f5ed;
  --paper-deep: #eee7da;
  --ink: #25231f;
  --muted: #6c665d;
  --rule: #d7ccbb;
  --accent: #6f5c3e;
  --accent-2: #285f5b;
  --white: #fffdf8;
  --shadow: 0 18px 40px rgba(50, 43, 32, 0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(111, 92, 62, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(var(--paper), var(--paper));
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif", Georgia, "Songti SC", serif;
  line-height: 1.62;
  letter-spacing: 0;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  left: 0;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 32px 0 44px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 253, 248, 0.58);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
  font-size: 0.96rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

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

.portrait {
  margin: 0;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.eyebrow,
.pub-meta,
.time {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-family: Optima, "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
}

h1 span {
  display: inline-block;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.1rem;
}

.lead {
  max-width: 850px;
  margin: 1.25rem 0 1.35rem;
  color: #3d3932;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  padding: 76px 0;
}

.section-muted {
  background: rgba(238, 231, 218, 0.7);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.section-heading.compact {
  grid-template-columns: 1fr;
  gap: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.research-grid article,
.experience-grid article {
  padding: 26px;
  background: var(--white);
}

.research-grid h3,
.experience-grid h3,
.timeline-item h3 {
  margin-bottom: 0.5rem;
}

.research-grid p,
.experience-grid p,
.timeline-item p,
.publication p {
  margin: 0;
  color: var(--muted);
}

.publication-list {
  display: grid;
  gap: 18px;
}

.publication {
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 26px rgba(47, 41, 31, 0.045);
}

.publication h3 {
  margin-bottom: 0.65rem;
  font-size: 1.12rem;
}

.compact-details {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--rule);
}

.compact-details summary {
  cursor: pointer;
  font-weight: 700;
}

.compact-details ul,
.award-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.compact-details li + li,
.award-list li + li {
  margin-top: 0.55rem;
}

.timeline {
  display: grid;
  gap: 18px;
  border-left: 1px solid var(--rule);
}

.timeline-item {
  position: relative;
  padding: 4px 0 8px 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 11px;
  width: 9px;
  height: 9px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--paper);
}

.section-muted .timeline-item::before {
  box-shadow: 0 0 0 5px var(--paper-deep);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.institution {
  margin-bottom: 0.8rem !important;
  color: #4c4841 !important;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 64px;
}

.timeline.small {
  gap: 12px;
}

.award-list {
  padding: 24px 24px 24px 42px;
  background: var(--white);
  border: 1px solid var(--rule);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.68);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .top-nav,
  .hero,
  .section-heading,
  .split-section {
    grid-template-columns: 1fr;
  }

  .top-nav {
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    gap: 28px;
  }

  .portrait {
    width: min(220px, 72vw);
  }

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

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    padding-top: 22px;
  }

  .nav-links {
    gap: 10px 16px;
    font-size: 0.9rem;
  }

  .section {
    padding: 52px 0;
  }

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

  .publication {
    padding: 20px;
  }

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