:root {
  color-scheme: light;
  --ink: #202c32;
  --muted: #48575f;
  --accent: #224b8d;
  --accent-bright: #527bbd;
  --header: #f0f5fc;
  --line: #c9d8ed;
  --subtle-line: #e7eef7;
  --paper: #fff;
  --sidebar-width: 11rem;
  --column-gap: 1.75rem;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 system-ui, sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.24; }
h1 { font-size: clamp(1.8rem, 4vw, 2.25rem); letter-spacing: -.025em; }
h2 { font-size: 1.3rem; letter-spacing: -.012em; }
h3 { font-size: 1rem; font-weight: 650; }
a { color: var(--accent); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(68rem, calc(100% - 2.5rem)); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: .5rem;
  transform: translateY(-150%);
  padding: .4rem .65rem;
  background: var(--paper);
  z-index: 1;
}
.skip:focus { transform: none; }
.top { background: var(--header); border-bottom: 2px solid var(--accent-bright); }
.top .wrap {
  display: grid;
  align-items: baseline;
  row-gap: .35rem;
  padding-block: .7rem;
}
.brand { justify-self: start; color: var(--accent); font-weight: 750; white-space: nowrap; }
.top a { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .9rem; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }
nav a[aria-current="page"] { font-weight: 700; }

.top .wrap, .page-layout {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  column-gap: var(--column-gap);
}

.page-layout {
  display: grid;
  padding-block: 1.2rem 1.65rem;
}
.profile {
  align-self: start;
  border-inline-end: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.portrait {
  display: block;
  width: 7.5rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 43%;
  border-radius: .2rem;
}
.profile-details { margin-top: .5rem; padding-inline-end: 1rem; }
.profile-role { font-weight: 700; color: var(--ink); }
.profile-links { display: flex; flex-wrap: wrap; gap: .15rem .65rem; margin-top: .4rem; }

.page-heading { margin-bottom: 1rem; }
.page-heading p { margin-top: .35rem; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin-top: .4rem; }
.button { font-weight: 650; }

.section { border-top: 1px solid var(--line); padding-block: .75rem; }
.section h2 { margin-bottom: .4rem; color: var(--accent-bright); }
.content > p + p { margin-top: .45rem; }
.rows p, .meta { color: var(--muted); }
.rows { list-style: none; padding: 0; margin: 0; }
.rows > li { padding-block: .36rem; border-bottom: 1px solid var(--subtle-line); }
.rows > li:first-child { padding-top: 0; }
.rows > li:last-child { padding-bottom: 0; border-bottom: 0; }
.meta { font-size: .9rem; line-height: 1.4; }
.pub { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .4rem; }
.year, .numbered-list > li::marker { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 650; }
.numbered-list { list-style: decimal; padding-inline-start: 2rem; }

@media (max-width: 600px) {
  .wrap { width: calc(100% - 1.5rem); }
  .top .wrap, .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-layout { row-gap: .9rem; padding-top: .85rem; }
  .profile {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: .65rem;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 .6rem;
  }
  .portrait { width: 100%; }
  .profile-details { margin-top: 0; padding-inline-end: 0; }
}

.research-summary { margin-bottom: .5rem; }

.profile-contact { margin-top: .45rem; font-style: normal; overflow-wrap: anywhere; }

.profile-email { margin-top: .35rem; }

/* The email image has nine pixels below the text baseline in its 34px canvas. */
.email-image { width: auto; height: .95em; max-width: 100%; object-fit: contain; vertical-align: -.25em; }
/* Research overview: paper figures alongside the original topic keywords. */
.research-topic { padding-block: 1.15rem; }
.research-topic h2 { margin-bottom: .85rem; }
.research-topic h2 a { text-decoration: none; }
.research-topic h2 a:hover { text-decoration: underline; }
.research-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.25rem; align-items: center; }
.research-figure { margin: 0; min-width: 0; }
.research-figure img { display: block; width: 100%; height: auto; max-height: 12rem; object-fit: contain; background: white; }
.research-description { min-width: 0; }
.research-more { margin-top: .85rem; font-size: .9rem; }
.topic-intro { margin: 1.5rem 0 2rem; }
.topic-intro .research-figure { width: 100%; max-width: 30rem; margin-inline: auto; }
.topic-intro .research-figure img { width: auto; max-width: 100%; height: auto; max-height: 18rem; margin-inline: auto; }
.topic-intro .physics-examples { max-width: 36rem; }
.topic-intro .physics-examples img { width: 100%; max-height: none; }
.topic-intro > p { margin-top: .65rem; }
.page-heading h1 { margin-top: .6rem; }
@media (max-width: 700px) {
  .research-grid { gap: .75rem; }
  .research-description { font-size: .9rem; overflow-wrap: anywhere; }
  .research-figure { max-width: 30rem; }
}

/* Slightly smaller temperature plot, with its original aspect ratio. */
.research-grid .research-image-compact { width: 85%; margin-inline: auto; }
.topic-intro .research-image-compact { max-width: min(85%, 24rem); max-height: 15rem; }

/* Secondary resources sit quietly beside publication titles. */
.publication-resource {
  display: inline-block;
  margin-inline-start: .5rem;
  padding: .12rem .42rem;
  border-radius: .25rem;
  background: #f0f5fc;
  color: #486080;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: baseline;
  white-space: nowrap;
  text-decoration: none;
}
.publication-resource:hover {
  background: #e3ecf8;
  color: var(--accent);
  text-decoration: underline;
}

.software-resources .publication-resource { margin-inline-start: 0; }

.publication-resources .publication-resource { margin-inline-start: 0; }
