:root {
  color-scheme: light;
  --bg: #f2efe8;
  --surface: #fbfaf5;
  --surface-strong: #ffffff;
  --text: #1e2524;
  --muted: #626b67;
  --border: #d9d2c7;
  --teal: #0f766e;
  --teal-dark: #245f59;
  --copper: #9a3f37;
  --sage: #e7e1d8;
  --ink: #20292b;
  --shadow: 0 18px 45px rgba(38, 44, 52, 0.11);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(242, 239, 232, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100% - 2rem, var(--max-width));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 4.4rem;
  height: 3.2rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(34, 54, 70, 0.14);
  border-radius: 6px;
  background: #fffdf8;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 0.55rem 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--sage);
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: 620px;
  height: calc(100svh - 80px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, #fbfaf5 0%, #fbfaf5 48%, rgba(251, 250, 245, 0) 64%),
    #ede8df;
}

.hero-content {
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(540px, 1.08fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: stretch;
  padding: 0 0 0 max(1rem, calc((100vw - var(--max-width)) / 2));
  color: var(--text);
}

.hero-copy {
  max-width: 660px;
  align-self: center;
  padding: 5.25rem 0 4.3rem;
}

.hero-art {
  min-height: 0;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  overflow: hidden;
  border-left: 1px solid rgba(83, 70, 61, 0.12);
  background: #e5e0d7;
  box-shadow: -18px 0 36px rgba(31, 37, 38, 0.08);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 54% 40%;
  filter: contrast(1.04) saturate(0.88) brightness(1.02);
}

.hero-art figcaption {
  margin: 0;
  border-top: 1px solid rgba(154, 63, 55, 0.28);
  background: rgba(251, 250, 245, 0.9);
  color: #5c5750;
  font-size: 0.82rem;
  font-style: italic;
  padding: 0.5rem 0.75rem 0.58rem;
  text-align: right;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--copper);
}

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

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.9rem;
  font-size: 4.25rem;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 2rem;
}

h3 {
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: 1.12rem;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 700;
}

.hero-email {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
}

.hero-email a {
  color: #285d58;
}

.hero-summary {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions,
.contact-links,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.button,
.inline-actions a {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 750;
  padding: 0.62rem 0.9rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible,
.inline-actions a:hover,
.inline-actions a:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.hero .button {
  background: #fffdf8;
  color: var(--ink);
}

.hero .button:hover,
.hero .button:focus-visible {
  background: #f1c29f;
}

.button.secondary {
  border-color: var(--teal);
  background: transparent;
  color: var(--teal-dark);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--sage);
}

.section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 5rem 0;
}

.section-tight {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-left: max(1rem, calc((100% - var(--max-width)) / 2));
  padding-right: max(1rem, calc((100% - var(--max-width)) / 2));
  background: #ece6da;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading.with-control {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.7fr);
  gap: 2.8rem;
  align-items: start;
}

.snapshot-grid,
.card-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-item,
.info-card,
.resource-card,
.publication-item,
.cv-panel,
.cv-group,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.snapshot-item {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1.2rem;
}

.snapshot-item strong {
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1;
}

.snapshot-item span {
  color: var(--muted);
  font-weight: 650;
}

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

.timeline li {
  position: relative;
  border-left: 2px solid var(--border);
  padding: 0 0 1.45rem 1.35rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  left: -0.44rem;
  top: 0.14rem;
  width: 0.72rem;
  height: 0.72rem;
  content: "";
  border: 2px solid var(--surface-strong);
  border-radius: 50%;
  background: var(--copper);
}

.timeline time,
.publication-meta,
.resource-meta,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline p {
  margin: 0.15rem 0 0;
}

.info-card,
.resource-card,
.publication-item,
.cv-panel,
.cv-group {
  padding: 1.35rem;
}

.info-card p,
.resource-card p,
.publication-item p,
.cv-panel p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag {
  border: 1px solid #b7d0c7;
  border-radius: 999px;
  background: #eef7f1;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 750;
  padding: 0.2rem 0.58rem;
}

.segmented-control {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.22rem;
}

.segmented-control button {
  min-width: 4rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0.48rem 0.7rem;
}

.segmented-control button[aria-pressed="true"] {
  background: var(--ink);
  color: #ffffff;
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.education-list {
  display: grid;
  gap: 1rem;
}

.education-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.education-item p {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.item-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.25rem;
}

.item-header h3 {
  margin-bottom: 0.25rem;
}

.publication-item {
  display: grid;
  gap: 0.35rem;
}

.publication-item h3 {
  margin-bottom: 0.15rem;
}

.publication-item p {
  margin-bottom: 0.2rem;
}

.authors {
  color: var(--text) !important;
  font-weight: 650;
}

.authors em {
  font-style: italic;
}

.two-column-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1rem;
}

.simple-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.simple-list ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.simple-list li + li {
  margin-top: 0.55rem;
}

.inline-actions {
  margin-top: 0.65rem;
}

.inline-actions a {
  min-height: 2.2rem;
  background: transparent;
  border-color: var(--border);
  color: var(--teal-dark);
  padding: 0.4rem 0.68rem;
}

.inline-actions a:hover,
.inline-actions a:focus-visible {
  border-color: var(--teal);
  background: var(--sage);
  color: var(--teal-dark);
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.55fr);
  gap: 1rem;
}

.cv-list {
  display: grid;
  gap: 1rem;
}

.cv-group ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 4rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
}

.contact-line {
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 1rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    min-height: 70svh;
    height: auto;
  }

  .hero-content {
    width: min(100% - 2rem, var(--max-width));
    min-height: auto;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
  }

  .hero-copy {
    padding: 4.5rem 0 0;
  }

  .hero-art {
    min-height: 420px;
    height: 420px;
    justify-content: flex-start;
  }

  .hero-art img {
    max-height: none;
    object-position: center left;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .split-section,
  .section-heading.with-control,
  .cv-layout,
  .contact-card,
  .item-header,
  .two-column-content {
    display: block;
  }

  .simple-list + .simple-list {
    margin-top: 1rem;
  }

  .section-heading.with-control .segmented-control {
    margin-top: 1rem;
  }

  .snapshot-grid,
  .card-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-panel {
    margin-bottom: 1rem;
  }

  .contact-links {
    margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .hero {
    min-height: 68svh;
  }

  .hero-overlay {
    display: none;
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-tight {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .snapshot-grid,
  .card-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
  }

  .segmented-control button {
    flex: 1 0 auto;
  }
}
