:root {
  color-scheme: light;

  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Chakra Petch", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-width: 980px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  /* professional light gray palette */
  --bg: #f4f6f8;
  --bg-soft: #eceff3;
  --panel: #ffffff;
  --panel-strong: #f8fafc;
  --panel-hover: #f1f4f8;

  --text: #2b2f33;
  --muted: #6b737b;

  --accent: #4a5f78;
  --accent-strong: #32465e;

  --line: #9aa5b1;
  --border: #dbe2ea;

  --shadow: 0 8px 20px rgba(30, 40, 50, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 140ms ease;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--line);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  z-index: 999;
}

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

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.masthead {
  padding: 40px 0 24px;
}

.masthead-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: start;
}

.portrait {
  margin: 12px;
  width: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

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

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.role {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.contact-icons {
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease,
    color 160ms ease;
}

.contact-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--accent-strong);
  text-decoration: none;
}

.contact-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.icon-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lede {
  margin: 0;
  max-width: 780px;
  font-size: 1.02rem;
}

/* research tags: no boxes */
.research-tags {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.research-tags li {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
}

.research-tags li:not(:last-child)::after {
  content: "•";
  margin: 0 14px;
  color: var(--line);
}

/* section nav: no boxes */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(58, 66, 80, 0.72);
  backdrop-filter: blur(10px);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 14px 0;
}

.nav-row a {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.nav-row a:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  padding: 28px 0 56px;
}

.section {
  padding: 24px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  scroll-margin-top: 76px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
  color: var(--accent-strong);
}

.definition-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.definition-row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(205, 215, 225, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(30, 40, 50, 0.03);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.definition-row:hover {
  border-color: rgba(185, 195, 208, 1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 18px rgba(30, 40, 50, 0.06);
}

.definition-row dt {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.definition-row dd {
  margin: 0;
  color: var(--muted);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(205, 215, 225, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(30, 40, 50, 0.03);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.news-item:hover {
  border-color: rgba(185, 195, 208, 1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 18px rgba(30, 40, 50, 0.06);
}

.news-date {
  font-family: var(--font-mono);
  color: var(--muted);
  font-weight: 500;
}

.pub-list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.pub-list li + li {
  margin-top: 12px;
}

.pub-item {
  padding: 18px 20px;
  border: 1px solid rgba(205, 215, 225, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(30, 40, 50, 0.03);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pub-item:hover {
  border-color: rgba(185, 195, 208, 1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 18px rgba(30, 40, 50, 0.06);
}

.pub-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.pub-venue {
  color: var(--muted);
  font-size: 0.95rem;
}

.archive-block {
  margin-top: 16px;
}

.archive-block summary {
  cursor: pointer;
  color: var(--accent);
}

.archive-block summary:hover {
  color: var(--accent-strong);
}

.footer {
  padding: 24px 0 32px;
  background: transparent;
}

.footer-grid {
  color: var(--muted);
  font-size: 0.92rem;
}

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

  .portrait {
    width: 130px;
  }

  .definition-row,
  .news-item {
    grid-template-columns: 1fr;
  }

  .nav-row {
    gap: 18px;
  }

  .research-tags {
    gap: 8px 0;
  }
}
