:root {
  color-scheme: light;
  --ink: #171713;
  --muted: #696b62;
  --line: #d9ddd2;
  --paper: #f6f8f4;
  --surface: #ffffff;
  --accent: #17665a;
  --accent-strong: #0e4f45;
  --gold: #b88328;
  --shadow: 0 24px 70px rgba(34, 42, 34, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(23, 102, 90, 0.08), transparent 32rem),
    linear-gradient(315deg, rgba(170, 70, 75, 0.08), transparent 36rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 221, 210, 0.75);
  background: rgba(246, 248, 244, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 102, 90, 0.2);
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  padding: 10px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-strong);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.publications {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: clamp(22px, 2.8vw, 38px);
}

.section-heading {
  position: sticky;
  top: 112px;
  align-self: start;
  justify-self: center;
  padding-left: 0;
  white-space: normal;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.publication-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: publications;
}

.publication {
  counter-increment: publications;
}

.publication article {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(217, 221, 210, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.publication article::before {
  content: counter(publications, decimal-leading-zero);
  position: absolute;
  top: 28px;
  right: 30px;
  color: rgba(23, 23, 19, 0.14);
  font-size: 1.4rem;
  font-weight: 800;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 56px 14px 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.publication-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(23, 102, 90, 0.18);
  border-radius: 999px;
  background: rgba(23, 102, 90, 0.06);
  line-height: 1.25;
}

h3 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(1.28rem, 2.7vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.authors {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--muted);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.button,
summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(23, 102, 90, 0.24);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 800;
}

.button:hover,
.button:focus-visible,
summary:hover,
summary:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  outline: none;
}

details {
  width: fit-content;
  max-width: 100%;
}

details[open] {
  flex-basis: 100%;
  width: min(100%, 740px);
}

summary {
  width: fit-content;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

pre {
  max-width: 100%;
  margin: 12px 0 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(23, 102, 90, 0.14);
  border-radius: 8px;
  background: #20241f;
  color: #f4f0e7;
  font-size: 0.86rem;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (max-width: 760px) {
  .header-inner,
  main {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .section-heading {
    position: static;
    padding-left: 0;
  }

  .publication article::before {
    top: 22px;
    right: 22px;
    font-size: 1rem;
  }
}

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

  .publication-meta {
    margin-right: 34px;
  }

  .publication article {
    padding: 20px;
  }

  pre {
    font-size: 0.78rem;
  }
}

.bio {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: clamp(22px, 2.8vw, 38px);
  padding: clamp(70px, 10vw, 120px) 0;
  border-top: 1px solid rgba(217, 221, 210, 0.9);
}

.bio-content {
  min-width: 0;
}

.bio-intro {
  max-width: 780px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.bio-intro p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

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

.bio-intro .bio-lead {
  color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
}

.bio-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.bio-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 221, 210, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.bio-photo-wide {
  grid-column: 1 / -1;
}

.bio-photo img {
  display: block;
  width: 100%;
  height: clamp(230px, 31vw, 410px);
  object-fit: cover;
}

.bio-photo:not(.bio-photo-wide) img {
  height: clamp(220px, 25vw, 340px);
}

.bio-photo figcaption {
  padding: 14px 16px 16px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.bio-photo figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

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

.bio-detail {
  padding: 20px;
  border: 1px solid rgba(217, 221, 210, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.bio-detail-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bio-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .bio {
    grid-template-columns: 1fr;
  }

  .bio .section-heading {
    position: static;
    justify-self: start;
    padding: 0;
  }
}

@media (max-width: 620px) {
  .bio-gallery,
  .bio-details {
    grid-template-columns: 1fr;
  }

  .bio-photo-wide {
    grid-column: auto;
  }

  .bio-photo img,
  .bio-photo:not(.bio-photo-wide) img {
    height: auto;
    max-height: 420px;
  }
}

.site-footer {
  border-top: 1px solid rgba(217, 221, 210, 0.9);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  gap: 24px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-strong);
}

@media (max-width: 620px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}