:root {
  --paper: #f7f3ea;
  --paper-deep: #ece4d3;
  --ink: #1e2523;
  --muted: #64706c;
  --line: #d6cab6;
  --teal: #1f6f68;
  --teal-deep: #173f3a;
  --rust: #9a4d2f;
  --blue: #2f5d8c;
  --gold: #b59c68;
  --white: #fffdf8;
  --shadow: 0 16px 50px rgba(30, 37, 35, 0.1);
}

@font-face {
  font-family: "Local Math";
  src:
    local("Latin Modern Math"),
    local("Latin Modern Roman"),
    local("STIX Two Math"),
    local("STIXGeneral");
}

* {
  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;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: rgba(31, 111, 104, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  background: var(--teal-deep);
}

.topbar {
  align-items: center;
  background: rgba(23, 63, 58, 0.92);
  color: var(--white);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255, 253, 248, 0.86);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links .nav-cv {
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 6px;
  color: var(--white);
  font-weight: 700;
  padding: 3px 10px;
}

.hero {
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(17, 34, 31, 0.82), rgba(17, 34, 31, 0.28) 52%, rgba(247, 243, 234, 0.1)),
    url("assets/research-visual.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: flex;
  min-height: 620px;
  padding: 88px 32px 104px;
}

.hero-content {
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

.eyebrow,
.section-kicker,
.paper-meta,
.updated {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.3rem;
  line-height: 1;
  margin: 0 0 18px;
  max-width: 760px;
}

.role {
  color: rgba(255, 253, 248, 0.88);
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0;
  max-width: 520px;
}

main,
.footer {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 32px;
}

.section-grid,
.papers {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.about-section {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.section-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.45fr);
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 14px;
}

h3 a {
  text-decoration-color: rgba(31, 111, 104, 0.35);
}

.prose p {
  margin: 0 0 18px;
}

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

.about-text {
  font-size: 1.08rem;
  margin: 0;
  max-width: 820px;
}

.section-heading {
  margin-bottom: 28px;
}

.paper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 28px;
}

.paper.featured {
  border-top: 5px solid var(--teal);
}

.paper p {
  color: #39423f;
  margin: 0;
}

.paper .draft-note {
  color: var(--teal-deep);
  font-weight: 700;
  margin-top: 18px;
}

.paper-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status {
  background: rgba(31, 111, 104, 0.11);
  border: 1px solid rgba(31, 111, 104, 0.22);
  border-radius: 999px;
  color: var(--teal-deep);
  padding: 4px 9px;
}

.compact-list {
  background: transparent;
}

.compact-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compact-list li {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding-bottom: 56px;
  padding-top: 48px;
}

.footer h2 {
  font-size: 1.45rem;
}

.address {
  color: var(--muted);
  margin: 14px 0 24px;
}

.updated {
  color: var(--muted);
  margin: 0;
  text-transform: none;
}

.article-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 34, 31, 0.9), rgba(17, 34, 31, 0.64)),
    url("assets/research-visual.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
  padding: 86px 32px 94px;
}

.article-hero-content {
  margin: 0 auto;
  max-width: 980px;
}

.article-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.7rem;
  line-height: 1.05;
  margin: 0 0 18px;
}

.article-hero p:last-child {
  color: rgba(255, 253, 248, 0.9);
  font-size: 1.1rem;
  margin: 0;
  max-width: 720px;
}

.article-main {
  max-width: 980px;
}

.abstract-article {
  border-top: 1px solid var(--line);
  padding: 58px 0 24px;
}

.abstract-article section {
  margin-bottom: 40px;
}

.abstract-article p {
  margin: 0 0 16px;
  max-width: 820px;
}

.abstract-article .section-kicker {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.result-list {
  display: grid;
  gap: 14px;
}

.result-list div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.result-list h2 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}

.result-list p {
  margin-bottom: 0;
}

.math {
  font-family: "Local Math", "Latin Modern Math", "STIX Two Math", "STIXGeneral", "Cambria Math", serif;
  font-size: 1.02em;
  line-height: 1;
  vertical-align: -0.04em;
}

.abstract-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 42px;
  padding: 18px;
}

.abstract-figure img {
  display: block;
  height: auto;
  width: 100%;
}

.abstract-figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 12px;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 18px 22px;
    position: static;
  }

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

  .hero {
    min-height: 560px;
    padding: 72px 22px 88px;
  }

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

  .role {
    font-size: 1rem;
    max-width: 100%;
  }

  main,
  .footer {
    padding-left: 22px;
    padding-right: 22px;
  }

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

  .section-grid,
  .about-section,
  .papers {
    padding: 52px 0;
  }

  .paper {
    padding: 22px;
  }

  .article-hero {
    padding: 64px 22px 72px;
  }

  .article-hero h1 {
    font-size: 2.45rem;
  }

  .result-list div,
  .abstract-figure {
    padding: 18px;
  }

}
