/* Continuous, understated layout based on the previous Option 1. */
:root {
  color-scheme: light;
  --ink: #343b43;
  --muted: #69737b;
  --blue: #405e73;
  --blue-dark: #30495b;
  --rose: #b77b72;
  --line: #e3e9ec;
  --canvas: #fcfdfd;
  --header-bg: rgb(235 241 244 / 96%);
  --body-texture: radial-gradient(rgb(80 113 132 / 6%) .8px, transparent .9px);
  --body-texture-size: 22px 22px;
  --nav-gradient: linear-gradient(90deg, #6f929b, #b77b72, #c5a785);
  --nav-hover-bg: #dce8ee;
  --profile-bg: transparent;
  --profile-border: 0;
  --profile-shadow: none;
  --profile-radius: 0;
  --profile-padding: 0;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background-color: var(--canvas);
  background-image: var(--body-texture);
  background-size: var(--body-texture-size);
  color: var(--ink);
  font-family: Avenir, "Avenir Next", Optima, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--rose); }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-nav {
  width: min(1160px, calc(100% - 40px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

.site-nav li { margin: 0; }

.site-nav li a {
  position: relative;
  display: inline-block;
  padding: 7px 12px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue-dark);
  font-size: .9rem;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, transform .2s ease, box-shadow .18s ease;
}

.site-nav li a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  background: var(--nav-gradient);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.site-nav li a:hover,
.site-nav li a:focus-visible {
  color: var(--blue-dark);
  background: var(--nav-hover-bg);
  box-shadow: 0 4px 12px rgb(48 73 91 / 11%);
  transform: translateY(-3px);
}

.site-nav li a:hover::after,
.site-nav li a:focus-visible::after { transform: scaleX(1); }

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 38px auto 70px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(205px, 250px) minmax(0, 1fr);
  align-items: start;
  gap: 52px;
}

.profile-card {
  position: sticky;
  top: 86px;
  padding: var(--profile-padding);
  text-align: center;
  background: var(--profile-bg);
  border: var(--profile-border);
  border-radius: var(--profile-radius);
  box-shadow: var(--profile-shadow);
  transform: none;
}

.profile-name {
  margin: 0 0 17px;
  color: var(--blue-dark);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.portrait {
  width: min(172px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 17px;
  overflow: hidden;
  border: 1px solid #d5e0e5;
  border-radius: 50%;
  background: #edf2f4;
  box-shadow: none;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details {
  color: var(--muted);
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.profile-details p { margin: 0 0 12px; }

.sidebar-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 7px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sidebar-links li { margin: 0; }

.sidebar-links a {
  padding: 0;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-links a:hover { color: var(--rose); }

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

.content-section {
  margin: 0;
  padding: 0 0 24px;
  scroll-margin-top: 78px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.content-section + .content-section { padding-top: 25px; }

.content-section h2,
.page-article h2 {
  margin: 0 0 15px;
  padding: 0;
  color: var(--blue-dark);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.3;
  border: 0;
}

.content-section h3 {
  margin: 21px 0 8px;
  color: #4d5d69;
  font-family: "Courier New", Courier, monospace;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.content-section p,
.page-article p { margin: 0 0 13px; }

.lead {
  color: var(--blue-dark);
  font-size: 1.04rem;
  font-weight: 600;
}

.section-label {
  margin: 12px 0 4px !important;
  color: var(--blue-dark);
  font-weight: 700;
}

.interest-list {
  margin: 0 0 8px;
  padding-left: 1.25rem;
  list-style: disc;
}

.interest-list li,
.content-section li,
.page-article li { padding-left: 2px; }

.interest-list li::marker,
li::marker { color: var(--rose); }

.content-section ul:not(.interest-list),
.page-article ul { padding-left: 1.2rem; }

.content-section li + li,
.page-article li + li { margin-top: 2px; }

.publication-list { padding-left: 1.15rem; }
.publication-list li { margin-bottom: 4px; padding-left: 2px; }

.publications-section {
  font-size: .94rem;
  line-height: 1.58;
}

.older-news {
  margin: 0;
  padding: 0 0 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.older-news summary {
  padding: 15px 0;
  color: var(--blue);
  cursor: pointer;
  font-weight: 650;
}

.older-news-content { padding: 0; }
.older-news-content ul { padding-left: 1.15rem; }
.older-news + .publications-section { padding-top: 25px; }
.links-section p:last-child { margin-bottom: 0; }
.phd-section { margin-top: 0; }
.phd-section h2 { margin-bottom: 14px; }
.funding-details { margin-top: 10px; }

.funding-details summary {
  width: max-content;
  max-width: 100%;
  color: var(--blue);
  cursor: pointer;
  font-weight: 650;
  text-underline-offset: 3px;
}

.funding-details summary:hover { color: var(--rose); }
.funding-details[open] summary { margin-bottom: 13px; }
.funding-details p { max-width: 75ch; }
.funding-details ul { margin-bottom: 0; }

@media (max-width: 800px) {
  .site-nav { width: min(100% - 28px, 680px); min-height: 58px; }
  .site-nav ul { gap: 18px; }
  .page-shell { width: min(100% - 28px, 680px); margin-top: 27px; }
  .page-layout { grid-template-columns: 1fr; gap: 27px; }
  .profile-card {
    position: static;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 0 19px;
    text-align: left;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .profile-name { grid-column: 2; grid-row: 1; margin: 0 0 6px; }
  .portrait { grid-column: 1; grid-row: 1 / 3; width: 108px; margin: 0; }
  .profile-details { grid-column: 2; grid-row: 2; font-size: .86rem; }
  .profile-details p { margin-bottom: 6px; }
  .sidebar-links { justify-content: start; margin-top: 8px; }
  .content-section { padding-bottom: 20px; }
  .content-section + .content-section { padding-top: 21px; }
  .older-news + .publications-section { padding-top: 21px; }
}

@media (max-width: 480px) {
  .site-nav { width: calc(100% - 20px); }
  .site-nav ul { gap: 8px 14px; }
  .site-nav li a { font-size: .82rem; }
  .page-shell { width: calc(100% - 26px); }
  .profile-card { grid-template-columns: 82px minmax(0, 1fr); gap: 0 14px; }
  .profile-name { font-size: 1.7rem; }
  .portrait { width: 80px; }
  .profile-details { font-size: .8rem; }
  .content-section h2 { font-size: 1.2rem; }
  .publications-section { font-size: .89rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

:root { --header-bg: rgb(235 241 244 / 96%); }

.academic-links { margin-bottom: 13px; }

.academic-links { margin: 12px 0 8px; }
.news-month {
  margin: 14px 0 3px;
  color: var(--blue-dark);
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
}
.news-month:first-of-type { margin-top: 0; }
.news-month + ul { margin-top: 0; }

/* Month labels use the news text font; section headings remain unchanged. */
.content-section .news-month,
.older-news-content .news-month { font-family: inherit; }
