@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "STIX Two Text";
  src: url("/assets/fonts/stix-two-text-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "STIX Two Text";
  src: url("/assets/fonts/stix-two-text-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Source Sans 3", system-ui, sans-serif;
  --ink: #1d252e;
  --muted: #4f5965;
  --accent: #224a71;
  --rule: #dce1e7;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 1.0625rem;
}

main {
  max-width: 50rem;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 4rem;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  align-items: center;
  gap: 1.3rem 2rem;
  margin-bottom: 1.7rem;
}

.profile-photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #abb5c0;
  color: var(--muted);
  font-size: .875rem;
}

h1, h2, h3 {
  font-family: "STIX Two Text", Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
}

h1 {
  margin: 0 0 .2rem;
  font-size: clamp(2.45rem, 7vw, 3.3rem);
  letter-spacing: -.035em;
}

h2 {
  margin: 0 0 .55rem;
  font-size: 1.65rem;
  letter-spacing: -.018em;
}

h3 {
  margin: 0 0 .4rem;
  font-size: 1.24rem;
}

p { margin: 0 0 .75rem; }

.affiliation, .note { color: var(--muted); }
.affiliation { margin-bottom: .35rem; font-size: 1.125rem; }
.profile-email { margin-bottom: .4rem; overflow-wrap: anywhere; }

a {
  color: var(--accent);
  text-decoration-thickness: .055em;
  text-underline-offset: .18em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

section {
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

.research-topic { margin-top: 1.15rem; }

figure {
  margin: .9rem 0 1rem;
  max-width: 43rem;
}

.panels {
  display: grid;
  align-items: center;
  gap: .65rem;
}

.stacking-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doping-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; }

.panels img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: .45rem;
  font-size: .875rem;
  color: var(--muted);
}

.citations {
  margin: 0;
  padding-left: 1.4rem;
}

.citations li + li { margin-top: .7rem; }

.citations span {
  display: block;
  color: var(--muted);
  font-size: .9375rem;
}

sup {
  font-size: .74em;
  line-height: 0;
}

@media (max-width: 33rem) {
  main { padding: 1.75rem 1.125rem 2.5rem; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile-photo { width: min(100%, 8.5rem); }
  .stacking-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stacking-panels img:first-child { grid-column: 1 / -1; width: min(100%, 17rem); }
}
