:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --text: #171512;
  --muted: #67615a;
  --quiet: #8b857d;
  --line: #ddd8cf;
  --accent: #7a3e2e;
  --accent-soft: #f1e5df;
  --code: #f4efe8;
  --max: 1100px;
  --shadow: 0 18px 60px rgba(42, 30, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(122, 62, 46, 0.35);
  text-underline-offset: 0.22em;
}

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

code {
  border-radius: 4px;
  background: var(--code);
  padding: 0.08rem 0.28rem;
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-180%);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 0.55rem 0.75rem;
  box-shadow: var(--shadow);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(221, 216, 207, 0.8);
  background: rgba(251, 250, 247, 0.92);
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  backdrop-filter: blur(12px);
}

.site-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
}

.section {
  width: min(var(--max), calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 6.5rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 4.2rem);
  padding-top: clamp(3rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.mini-label {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3.25rem, 9vw, 6.8rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

h4 {
  margin: 1.2rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lede {
  margin-bottom: 1.3rem;
  color: #2c2925;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.affiliation,
.section-note,
.venue,
.authors,
.related-work-list {
  color: var(--muted);
}

.affiliation a {
  font-weight: 700;
}

.link-row,
.publication-links,
.publication-filter-controls,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-link,
.button-link,
.publication-links a,
.text-link,
.publication-filter-controls button {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.34rem 0.75rem;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.profile-link:hover,
.button-link:hover,
.publication-links a:hover,
.text-link:hover,
.publication-filter-controls button:hover,
.publication-filter-controls button.is-active {
  border-color: rgba(122, 62, 46, 0.45);
  background: var(--accent-soft);
}

.heading-link {
  text-decoration-thickness: 0.06em;
  text-decoration-color: rgba(122, 62, 46, 0.28);
}

.heading-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.publication-filter-controls {
  margin: -0.6rem 0 1.4rem;
}

.publication-filter-controls button {
  cursor: pointer;
  font: inherit;
}

.hero-aside {
  display: grid;
  gap: 1.15rem;
}

.image-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(122, 62, 46, 0.08), transparent 38%),
    repeating-linear-gradient(45deg, #f4efe8 0 10px, #ede6dd 10px 20px);
}

.portrait-frame {
  aspect-ratio: 6 / 7;
  box-shadow: var(--shadow);
}

.research-image {
  aspect-ratio: 14 / 9;
  align-self: start;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-image img {
  object-fit: contain;
  background: #fff;
}

.image-frame figcaption {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
}

.image-frame.is-missing figcaption {
  display: grid;
}

.image-fallback-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.image-fallback-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  justify-self: center;
  width: min(100%, 36rem);
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-list li,
.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.18rem 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.split-section,
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

#research .section-heading {
  max-width: 980px;
}

.publication-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.item-list,
.news-list,
.cv-grid {
  display: grid;
  gap: 1.1rem;
}

.compact-item,
.news-item,
.cv-section,
.note {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.compact-item p,
.news-item p,
.cv-section li,
.note p {
  color: var(--muted);
}

.news-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
}

.news-item time,
.publication-year {
  color: var(--quiet);
  font-size: 0.86rem;
  font-weight: 700;
}

.prose-section {
  border-top: 1px solid var(--line);
}

.prose {
  max-width: 760px;
}

.prose p {
  font-size: 1.05rem;
}

.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  padding: 1.2rem;
}

.research-list {
  display: grid;
  gap: 2.4rem;
}

.research-item {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
}

.research-copy ul,
.cv-section ul {
  margin: 0;
  padding-left: 1.15rem;
}

.action-link-row {
  margin: 1.1rem 0 1.35rem;
}

.research-copy li,
.cv-section li {
  margin-bottom: 0.35rem;
}

.related-work-list {
  list-style: none;
  padding-left: 0;
}

.related-work-list li {
  margin-bottom: 0.28rem;
}

.related-work-list a {
  text-decoration-thickness: 1px;
}

.publication-list {
  display: grid;
  gap: 0;
}

.publication {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  padding: 1.65rem 0;
}

.publication[hidden] {
  display: none;
}

.publication h3 {
  max-width: 850px;
}

.authors {
  margin-bottom: 0.35rem;
}

.authors strong {
  color: var(--text);
  font-weight: 800;
}

.venue {
  margin-bottom: 0.75rem;
  font-style: italic;
}

.tag-row {
  margin: 0.9rem 0 0.8rem;
}

.contact-section {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.contact-intro {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100vw - 2.5rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--quiet);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .split-section,
  .about-grid,
  .research-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-frame {
    max-width: 420px;
  }

  .publication-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-item,
  .publication {
    grid-template-columns: 1fr;
  }

  .publication-year {
    margin-bottom: -0.4rem;
  }

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

@media (max-width: 520px) {
  .section,
  .site-footer {
    width: min(100% - 1.5rem, var(--max));
  }

  .site-header {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  h1 {
    font-size: clamp(2.9rem, 16vw, 4.4rem);
  }

  .profile-link,
  .button-link,
  .publication-links a,
  .text-link,
  .publication-filter-controls button {
    width: 100%;
    justify-content: center;
  }
}

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