:root {
  --text: #222222;
  --muted: #666666;
  --link: #1772d0;
  --link-hover: #b45f06;
  --rule: #dedede;
  --portrait-bg: #eef2f6;
  --portrait-ring: #d7dde5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: Lato, Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: none;
}

.page {
  width: min(100% - 32px, 800px);
  margin: 0 auto;
  padding: 44px 0 56px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 34px;
  align-items: center;
  padding-bottom: 22px;
}

.page > section + section {
  margin-bottom: 22px;
}

.award-detail {
  display: block;
}

.intro-copy {
  min-width: 0;
}

.affiliation {
  color: var(--muted);
  text-align: center;
}

.research-depth {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.research-depth legend {
  padding: 0;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.research-depth input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.depth-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #f6f7f8;
}

.depth-options label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #dce1e6;
  border-radius: 4px;
  background: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.depth-options label:hover {
  background: #eef1f4;
}

#depth-overview:checked ~ .depth-options label[for="depth-overview"],
#depth-methods:checked ~ .depth-options label[for="depth-methods"],
#depth-tomography:checked ~ .depth-options label[for="depth-tomography"] {
  border-color: #a5bcd0;
  background: #e9f1f8;
  color: #174568;
}

#depth-overview:focus-visible ~ .depth-options label[for="depth-overview"],
#depth-methods:focus-visible ~ .depth-options label[for="depth-methods"],
#depth-tomography:focus-visible ~ .depth-options label[for="depth-tomography"] {
  outline: 2px solid var(--link);
  outline-offset: -2px;
}

.research-views {
  margin-top: 16px;
}

.research-view {
  display: none;
}

#depth-overview:checked ~ .research-views #research-overview,
#depth-methods:checked ~ .research-views #research-methods,
#depth-tomography:checked ~ .research-views #research-tomography {
  display: block;
}

h1 {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

h2 {
  margin: 0 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

p {
  margin: 0 0 12px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.links span {
  color: var(--muted);
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--portrait-ring);
  border-radius: 6px;
  background: var(--portrait-bg);
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication {
  padding: 0;
}

.paper-title {
  margin-bottom: 3px;
  font-weight: 700;
}

.publication p:last-child,
.timeline {
  color: var(--muted);
}

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

.timeline li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 32%);
  gap: 20px;
}

.row-main {
  color: var(--text);
  font-weight: 700;
}

.row-meta {
  color: var(--muted);
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.compact li {
  grid-template-columns: minmax(0, 1fr) 80px;
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 28px, 800px);
    padding-top: 28px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portrait {
    order: -1;
    width: min(100%, 156px);
    margin: 0 auto;
  }

  h1 {
    font-size: 30px;
  }

  .timeline li,
  .compact li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .row-meta {
    text-align: left;
  }
}
