:root {
  --ivory: #faf7ef;
  --ink: #1e2430;
  --ink-soft: #5b5346;
  --accent: #8a3f2f;
  --accent-dark: #6c2f22;
  --rule: #ddd6c5;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(138, 63, 47, 0.4);
  outline-offset: 3px;
}

main {
  overflow: hidden;
}

.site-header,
.hero,
.highlights,
.section,
.contact-section,
footer {
  width: min(100% - 64px, 1080px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

nav a {
  position: relative;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 200ms ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

nav a.active {
  color: var(--accent-dark);
}

nav a.active::after {
  transform: scaleX(1);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 44px;
}

.page-aside {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.page-aside p {
  position: sticky;
  top: 28px;
}

.content-stack {
  display: grid;
  gap: 28px;
}

.content-stack > section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.content-stack > section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.content-stack h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}

.content-stack h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.clean-list li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}

.clean-list h3 {
  margin: 0 0 3px;
}

.clean-list p {
  margin: 0;
  color: var(--ink-soft);
}

.clean-list p + p {
  margin-top: 2px;
}

.clean-list time {
  color: var(--accent);
  font-style: italic;
  font-size: 0.85rem;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-links a,
.contact-card {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.5);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card h3 {
  margin-bottom: 10px;
}

.contact-card p {
  margin-bottom: 5px;
  color: var(--ink-soft);
}

.publication-summary {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  padding: 40px 0;
  animation: reveal 600ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.2;
}

.intro {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.button.primary {
  background: var(--ink);
  color: var(--ivory);
}

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary:hover {
  background: rgba(138, 63, 47, 0.08);
}

.hero-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #efe6d3;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.highlights div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 32px;
  border-right: 1px solid var(--rule);
}

.highlights div:first-child {
  padding-left: 0;
}

.highlights div:last-child {
  border-right: 0;
}

.highlights strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
}

.highlights span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.section {
  padding-block: 56px;
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 30px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.18;
}

.section-heading > p:last-child {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.research-grid {
  border-top: 1px solid var(--rule);
}

.research-grid article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}

.research-grid article > span {
  grid-column: 1;
  grid-row: 1 / 3;
  padding-top: 2px;
  color: var(--accent);
  font-style: italic;
  font-size: 0.92rem;
}

.research-grid h3 {
  grid-column: 2;
  margin: 0 0 6px;
}

.research-grid p {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
}

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

.text-link {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent-dark);
  font-style: italic;
  font-size: 0.9rem;
}

.publication-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.publication-filters button {
  padding: 7px 15px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: italic 0.85rem var(--serif);
}

.publication-filters button:hover,
.publication-filters button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
}

.publication-list {
  border-top: 1px solid var(--ink);
}

.publication-list article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.3;
}

.publication-meta {
  display: flex;
  gap: 12px;
  color: var(--accent);
  font-style: italic;
  font-size: 0.82rem;
}

.publication-list h3 {
  margin-bottom: 3px;
  font-size: 0.98rem;
  font-weight: 700;
}

.publication-list h3 a {
  text-underline-offset: 2px;
}

.publication-list h3 a:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

.publication-list p {
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.publication-list p:last-child {
  margin-bottom: 0;
}

.publication-list .venue {
  color: var(--ink);
  font-style: italic;
}

.contact-section {
  padding-block: 56px 72px;
}

.contact-section h2 {
  max-width: 760px;
}

.contact-section > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.contact-actions {
  gap: 22px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.85rem;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-aside p {
    position: static;
    max-width: 640px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    padding: 32px 0 8px;
  }

  .intro,
  h1 {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-avatar {
    order: -1;
    margin-inline: auto;
    width: 116px;
    height: 116px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  nav {
    gap: 14px;
    overflow-x: auto;
    width: 100%;
  }

  nav a {
    white-space: nowrap;
  }

  .section {
    padding-block: 40px;
  }

  .contact-section {
    padding-block: 40px 48px;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .highlights div,
  .highlights div:first-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .highlights div:last-child {
    border-bottom: 0;
  }

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

  .publication-filters {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .publication-filters button {
    white-space: nowrap;
  }

  .publication-list article,
  .clean-list li,
  .research-grid article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .research-grid article > span {
    grid-row: 1;
  }

  .profile-links,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
