:root {
  color: #202a33;
  background: #fcfbf8;
  font: 16px/1.7 system-ui, sans-serif;
  --muted: #53616b;
  --rule: #dedfd9;
  --accent: #185b50;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: .25rem; }
.site-header, main, footer { width: min(68rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.brand { color: inherit; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
nav { display: flex; gap: .5rem clamp(1rem, 3vw, 2.2rem); flex-wrap: wrap; }
nav a { color: var(--muted); font-size: .94rem; text-decoration: none; }
nav a[aria-current] { color: var(--accent); font-weight: 680; text-decoration: underline; }
main { padding-block: clamp(2.5rem, 6vw, 5.2rem); overflow-wrap: break-word; }
h1, h2, h3, h4 { line-height: 1.18; text-wrap: balance; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.055em; margin: 0; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); letter-spacing: -.035em; }
p, li { max-width: 75ch; }
.page-label, .date { color: var(--muted); font-size: .875rem; }
.page-label { margin: 0 0 .65rem; font-weight: 650; }
.page-heading { margin-bottom: 2.25rem; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 27%); align-items: start; gap: clamp(1.8rem, 6vw, 5rem); }
.profile .page-heading { margin-bottom: 1.1rem; }
.profile-copy > :last-child { margin-bottom: 0; }
.profile-photo { margin: .25rem 0 0; overflow: hidden; border-radius: .4rem; }
.profile-photo img { width: 100%; }
.profile-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 3rem; }
.profile-section { border-top: 1px solid var(--rule); padding-top: 1rem; }
.profile-section > :first-child { margin-top: 0; }
.feature-section, .profile-section:last-child { grid-column: 1 / -1; }
.feature-section { max-width: 53rem; }
.profile-section li + li { margin-top: .55em; }
.research-group + .research-group { margin-top: 3rem; }
.section-title { padding-bottom: .8rem; border-bottom: 1px solid var(--rule); }
.research-item { display: grid; grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr); align-items: center; gap: 1.4rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.research-image { display: grid; place-items: center; margin: 0; border-radius: .3rem; aspect-ratio: 4/3; }
.research-image img { width: 100%; height: 100%; max-height: 10rem; object-fit: contain; }
.research-copy > :first-child { margin-top: 0; }
.research-copy > :last-child { margin-bottom: 0; }
.research-copy :is(h2,h3,h4) { font-size: 1.2rem; text-wrap: wrap; }
.blog-list { border-top: 1px solid var(--rule); }
.post { display: grid; grid-template-columns: 7rem minmax(0, 1fr); column-gap: 1.2rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); }
.post h2 { margin: 0; font-size: clamp(1.25rem, 2.7vw, 1.7rem); }
.post h2 a { color: inherit; text-decoration: none; }
.post h2 a:hover { color: var(--accent); text-decoration: underline; }
.post .date { grid-row: span 2; margin: .15rem 0 0; font-variant-numeric: tabular-nums; }
.post p:not(.date) { grid-column: 2; color: var(--muted); margin: .55rem 0 0; }
.contact-panel { padding: .9rem 0; border-block: 1px solid var(--rule); max-width: 34rem; }
.article-page { max-width: 48rem; }
.article-page h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
.article-page .page-heading { padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.article-page :is(pre, table) { display: block; max-width: 100%; overflow: auto; }
.article-page pre { padding: 1rem; background: #eef0ec; border-radius: .35rem; }
figure { margin: 1.5rem 0; }
img, video { display: block; max-width: 100%; height: auto; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.wp-block-column { flex: 1 1 16rem; min-width: 0; }
footer { color: var(--muted); padding: 1.15rem 0 2rem; border-top: 1px solid var(--rule); font-size: .9rem; }
@media (max-width: 43rem) {
  .site-header, main, footer { width: calc(100% - 2rem); }
  .profile, .profile-sections { grid-template-columns: 1fr; }
  .profile-photo { width: min(14rem, 62%); }
  .profile-sections { gap: 1.3rem; margin-top: 2rem; }
  .research-item { grid-template-columns: minmax(5.5rem, 26%) minmax(0, 1fr); gap: .8rem; align-items: start; }
  .post { display: block; }
  .post .date { margin: 0 0 .3rem; }
}
