:root {
  color-scheme: light;
  --ink: #222831;
  --muted: #505965;
  --blue: #19477a;
  --rule: #dee3e8;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

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

body { margin: 0; font-size: 1rem; line-height: 1.65; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: #0c2d51; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.shell {
  width: min(56rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: .5rem .75rem;
  background: #fff;
  transform: translateY(-220%);
}

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

.masthead { border-bottom: 1px solid var(--rule); }

.navigation, .actions, .emblems {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.navigation { gap: 0 clamp(.85rem, 4vw, 2rem); }

.navigation a {
  padding-block: .65rem;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}

.navigation a:hover { color: var(--blue); text-decoration: underline; }

.introduction {
  padding-bottom: 2.5rem;
  text-align: center;
}

.title-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.25rem, 6vw, 4.1rem) 1.65rem;
  background: #f5f8fc;
}

.title-panel::before, .title-panel::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.title-panel::before {
  z-index: -2;
  inset: -2rem;
  background: url("./assets/intro-street.jpg") center 45% / cover no-repeat;
  filter: blur(20px) saturate(.7);
  opacity: .38;
}

.title-panel::after {
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(244 249 255 / .48), rgb(247 250 253 / .7) 65%, #fff);
}

h1 {
  max-width: 33ch;
  margin-inline: auto;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -.024em;
  line-height: 1.2;
  text-wrap: balance;
}

.authors { margin-top: 1.15rem; }
.affiliation { margin-top: 1.2rem; color: var(--muted); }
.affiliation p { font-size: .95rem; margin-top: .5rem; }
.emblems {
  display: inline-flex;
  gap: .35rem;
  padding: .2rem .45rem;
  border-radius: .35rem;
  background: #fff;
}

.emblems a { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; }

.emblems img {
  width: 3.7rem;
  height: 3.7rem;
  object-fit: contain;
}

.emblems img.faculty-emblem { width: 4.25rem; height: 4.25rem; }

.actions { gap: .65rem; margin-top: 1rem; }

.actions a {
  min-width: 4.8rem;
  padding: .4rem .75rem;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}

.actions a:hover { border-color: var(--blue); }

.overview {
  max-width: 42rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.figure-link { display: block; }

figcaption {
  margin-top: .6rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.section {
  border-top: 1px solid var(--rule);
  padding-block: 2.15rem 2.6rem;
}

.section-heading { margin-bottom: 1.05rem; }

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 650;
  line-height: 1.28;
}

h3 { margin-bottom: .35rem; font-size: 1.1rem; line-height: 1.35; }

.section p { color: var(--muted); }
.section p + p, .section-heading h2 + p { margin-top: .5rem; }

.diagnosis, .method-notes {
  display: grid;
  gap: 1rem 1.8rem;
  margin-top: 1.1rem;
}

.diagnosis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.method-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result + .result { margin-top: 1.45rem; }
.result figure { margin-top: .7rem; }

video {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
}

@media (max-width: 38rem) {
  .diagnosis, .method-notes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-transparency: reduce) {
  .title-panel::before { display: none; }
}
