:root {
  --bg: #f6f0e6;
  --bg-deep: #eadbc8;
  --panel: rgba(255, 251, 245, 0.78);
  --panel-strong: rgba(255, 252, 248, 0.92);
  --ink: #1d2220;
  --muted: #5d625b;
  --line: rgba(29, 34, 32, 0.12);
  --teal: #194d5f;
  --rust: #ab5b3f;
  --rust-soft: rgba(171, 91, 63, 0.1);
  --gold: #d1a35f;
  --shadow: 0 28px 70px rgba(67, 43, 25, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(209, 163, 95, 0.2), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(25, 77, 95, 0.12), transparent 20%),
    linear-gradient(180deg, #fdf9f4 0%, var(--bg) 52%, #ebdfcf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.15;
  pointer-events: none;
}

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

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

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.5;
  pointer-events: none;
}

.orb-one {
  top: 88px;
  right: 4vw;
  width: 180px;
  height: 180px;
  background: rgba(25, 77, 95, 0.18);
}

.orb-two {
  bottom: 72px;
  left: 6vw;
  width: 220px;
  height: 220px;
  background: rgba(171, 91, 63, 0.16);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(29, 34, 32, 0.05);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a::before,
.icon-link::before,
.button::before,
.lightbox-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.4) 50%, transparent 82%);
  transform: translateX(-130%);
  transition: transform 280ms ease;
  pointer-events: none;
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-color: rgba(25, 77, 95, 0.14);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(29, 34, 32, 0.08);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.icon-link:hover,
.icon-link:focus-visible,
.button:hover,
.button:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: translateY(-2px);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.icon-link:hover::before,
.icon-link:focus-visible::before,
.button:hover::before,
.button:focus-visible::before,
.lightbox-close:hover::before,
.lightbox-close:focus-visible::before {
  transform: translateX(130%);
}

.site-nav a:focus-visible,
.icon-link:focus-visible,
.button:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid rgba(25, 77, 95, 0.24);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 18px;
  align-items: start;
  padding: 58px 0 28px;
}

.hero-copy {
  padding-top: 4px;
  min-width: 0;
}

.eyebrow,
.entry-type,
.lightbox-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rust);
}

.hero h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.92;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.3rem);
}

.hero-role,
.hero-text,
.entry-detail,
.publication-summary,
.other-paper-authors,
.other-paper-meta,
.contact-text,
.site-footer p,
.news-item p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-role {
  margin: 16px 0 0;
  font-size: 1rem;
  font-weight: 500;
}

.hero-role-secondary {
  margin-top: 4px;
  color: var(--teal);
}

.hero-location {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.hero-text {
  max-width: 74ch;
  margin: 14px 0 0;
  font-size: 1rem;
}

.availability-line {
  margin: 16px 0 0;
  color: var(--teal);
  font-weight: 700;
  line-height: 1.6;
}

.availability-line strong {
  color: var(--ink);
}

.link-row,
.publication-actions {
  display: flex;
  flex-wrap: wrap;
}

.link-row {
  gap: 10px;
  margin-top: 18px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background: var(--panel-strong);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(29, 34, 32, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: rgba(25, 77, 95, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(29, 34, 32, 0.12);
}

.icon-link svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--teal);
}

.icon-link span {
  position: relative;
  z-index: 1;
}

.hero-side {
  display: flex;
  width: min(100%, 188px);
  justify-self: end;
}

.portrait-card,
.news-panel,
.entry-card,
.publication-card,
.other-paper,
.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--panel);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.portrait-card {
  width: 100%;
  padding: 10px;
}

.portrait-frame {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #cae1ee 0%, #ebf2f6 100%);
  aspect-ratio: 5 / 6;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.entry-type {
  margin: 0 0 10px;
  color: var(--rust);
}

.section {
  padding: 38px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading-compact {
  margin-bottom: 14px;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  max-width: 20ch;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.news-panel {
  padding: 10px 26px;
}

.news-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.news-item:first-child {
  border-top: 0;
}

.news-date {
  padding-top: 2px;
  color: var(--rust);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-item p,
.entry-card p,
.publication-body p,
.other-paper p,
.contact-panel p {
  margin: 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1000px;
}

.entry-card {
  padding: 24px;
}

.entry-card h3,
.publication-card h3,
.other-paper h3 {
  margin: 0 0 12px;
}

.entry-card h3 {
  font-size: 1.36rem;
}

.entry-meta,
.publication-meta,
.other-paper-meta {
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 700;
}

.publication-stack,
.other-publications {
  display: grid;
  gap: 22px;
}

.publication-card {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
}

.publication-figure {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.publication-figure img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  transition: transform 220ms ease;
}

.publication-figure-interactive {
  cursor: zoom-in;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.publication-figure-interactive:hover,
.publication-figure-interactive:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(25, 77, 95, 0.24);
  box-shadow: 0 14px 32px rgba(25, 77, 95, 0.12);
  outline: none;
}

.publication-figure-interactive:hover img,
.publication-figure-interactive:focus-visible img {
  transform: scale(1.035);
}

.figure-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(29, 34, 32, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.publication-figure-interactive:hover .figure-zoom-badge,
.publication-figure-interactive:focus-visible .figure-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

.publication-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.publication-card h3 {
  font-size: clamp(1.68rem, 3vw, 2.16rem);
  line-height: 1.04;
}

.publication-authors {
  color: var(--muted);
}

.publication-summary {
  margin-top: 12px;
}

.publication-actions {
  gap: 12px;
  margin-top: 20px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(29, 34, 32, 0.08);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 16px 32px rgba(29, 34, 32, 0.12);
}

.button:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 6px 14px rgba(29, 34, 32, 0.12);
}

.button:focus-visible {
  box-shadow: 0 16px 32px rgba(29, 34, 32, 0.12);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #27302d;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(25, 77, 95, 0.2);
  background: rgba(255, 255, 255, 0.96);
}

.other-paper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.other-paper h3 {
  font-size: 1.12rem;
  line-height: 1.4;
}

.other-paper-authors {
  margin-bottom: 4px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(25, 77, 95, 0.12), rgba(255, 252, 248, 0.84)),
    var(--panel-strong);
}

.contact-copy {
  min-width: 0;
}

.contact-panel h2 {
  max-width: none;
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.contact-text {
  max-width: 72ch;
  margin-top: 16px;
}

.contact-actions {
  display: flex;
  justify-self: end;
  padding: 0;
}

.contact-mail-button {
  width: 72px;
  height: 72px;
  min-width: 72px;
  padding: 0;
  border-color: rgba(25, 77, 95, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(29, 34, 32, 0.1);
}

.contact-mail-button svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(14, 19, 23, 0.74);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  width: min(1100px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(250, 247, 241, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-title {
  margin: 0 0 12px;
  color: var(--rust);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero,
  .publication-card,
  .contact-panel,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-side {
    width: min(100%, 172px);
    justify-self: start;
  }

  .section-heading h2,
  .contact-panel h2 {
    max-width: none;
  }

  .contact-actions {
    justify-self: start;
  }

  .publication-figure img {
    height: 240px;
  }

  .other-paper {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 22px, 1120px);
    padding-top: 16px;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .site-nav {
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.6rem);
  }

  .hero-side {
    width: min(100%, 158px);
  }

  .portrait-card {
    width: 100%;
  }

  .availability-line {
    display: block;
  }

  .news-panel {
    padding: 8px 20px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .portrait-card,
  .entry-card,
  .publication-card,
  .other-paper,
  .contact-panel {
    padding: 20px;
  }

  .publication-figure {
    min-height: 200px;
  }

  .publication-figure img {
    height: 180px;
  }

  .figure-zoom-badge {
    opacity: 1;
    transform: translateY(0);
  }

  .image-lightbox {
    padding: 18px;
  }

  .lightbox-dialog {
    width: min(100vw - 24px, 1100px);
    padding: 14px;
  }

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