:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e7e2d9;
  --accent: #265d73;
  --accent-2: #9c6b30;
  --accent-soft: #e6f0f3;
  --shadow: 0 20px 50px rgba(31, 41, 51, 0.08);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(38, 93, 115, 0.13), transparent 34rem),
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 45%, #f3efe7 100%);
  line-height: 1.58;
}

a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: #183f4f; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: .6rem .8rem;
  border-radius: 999px;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 244, 239, 0.78);
  border-bottom: 1px solid rgba(231, 226, 217, 0.8);
}
.topbar {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: .9rem;
}
.site-menu { display: flex; align-items: center; gap: .2rem; }
.site-menu a {
  color: var(--ink);
  text-decoration: none;
  padding: .55rem .78rem;
  border-radius: 999px;
  font-size: .95rem;
}
.site-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.menu-button { display: none; }

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 54px 0;
  scroll-margin-top: 84px;
}
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr);
  align-items: center;
  gap: 2rem;
  padding-top: 86px;
}
.eyebrow {
  margin: 0 0 .65rem;
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .13em;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; }
h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); }
h2 { margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.55rem); }
h3 { font-size: 1.25rem; }
.lead { max-width: 760px; font-size: clamp(1.15rem, 2vw, 1.55rem); color: #3d4a55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31,41,51,.08); }

.link-logo {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}
.profile-link {
  color: var(--accent);
  border-color: rgba(86, 120, 137, .32);
}
.profile-link:hover {
  border-color: rgba(86, 120, 137, .62);
}


.profile-card,
.content-card,
.overview-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(231,226,217,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profile-card { padding: 1rem; }
.profile-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius) - 8px);
  background: var(--surface-soft);
}
.profile-card h2 { margin: 1rem 0 .35rem; font-size: 1.15rem; }
.profile-card p { color: var(--muted); margin-top: 0; }

.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 0; }
.overview-card { padding: 1.2rem; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.overview-card:hover { transform: translateY(-3px); }
.overview-card span { color: var(--accent-2); font-weight: 800; font-size: .82rem; }
.overview-card strong { display: block; margin: .45rem 0; font-size: 1.1rem; }
.overview-card p { color: var(--muted); margin: 0; }

.two-column { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.3rem; align-items: start; }
.content-card { padding: clamp(1.1rem, 3vw, 2rem); overflow: hidden; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-heading h2 { margin: 0; }
.search-label { display: grid; gap: .35rem; min-width: min(360px, 100%); color: var(--muted); font-size: .9rem; }
.search-label input {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: .78rem 1rem;
  font: inherit;
  outline: none;
}
.search-label input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

ul { padding-left: 1.15rem; }
li { margin: .55rem 0; }
.compact li { margin: .35rem 0; }
.publications-list ul { margin-top: .5rem; }
.publications-list li { padding: .45rem 0 .65rem; border-bottom: 0; }
.publications-list h2 { margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.publications-list h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.year-divider {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: .75rem 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .14em;
}
.year-divider::before,
.year-divider::after {
  content: "";
  flex: 1;
  border-top: 2px solid #9f9588;
}
.year-divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  padding: .22rem .55rem;
  border: 1px solid #cfc7bc;
  border-radius: 999px;
  background: #fbfaf7;
  color: #5d544a;
}
#editorial .journal-name { font-weight: 780; }
.em, em { font-style: italic; }
.strong, strong, b { font-weight: 760; }
.doi { font-size: .82rem; font-weight: 760; margin-left: .3rem; }
.doi::before { content: "↗ "; }

/* Robust wrapping for long publication titles and URLs */
.content-card, .publications-list { overflow-wrap: anywhere; }


.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 0;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.muted { color: var(--muted); }

@media (max-width: 860px) {
  .menu-button {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    padding: .55rem .8rem;
    font: inherit;
    font-weight: 700;
  }
  .site-menu {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-menu.open { display: flex; }
  .site-menu a { padding: .8rem 1rem; }
  .hero, .two-column { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 52px; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  .overview-grid { grid-template-columns: 1fr; }
  .section { width: min(100% - 1rem, var(--max)); padding: 36px 0; }
  .content-card { border-radius: 18px; }
}

@media print {
  .site-header, .hero-actions, .search-label, .menu-button { display: none !important; }
  body { background: white; color: black; }
  .section { width: 100%; padding: 1rem 0; }
  .content-card, .profile-card, .overview-card { box-shadow: none; border: 1px solid #ddd; }
}


.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 1.4rem;
  align-items: start;
}
.contact-card h3 { margin-top: 0; }
.contact-details {
  display: grid;
  gap: .75rem;
}
.contact-details p {
  margin: 0;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}
.contact-details span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .15rem;
}
@media (max-width: 760px) {
  .contact-card { grid-template-columns: 1fr; }
}

.publications-list li + .year-divider, .publications-list .year-divider + li { margin-top: .75rem; }
