:root {
  color-scheme: light dark;
  --background: #f7f8fa;
  --surface: #eef1f4;
  --text: #202329;
  --muted: #626973;
  --line: #d5dae0;
  --accent: #24547f;
  --focus: #0f67ae;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-160%);
}

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

.page-shell {
  display: grid;
  grid-template-columns: 14rem minmax(0, 42rem);
  gap: 4rem;
  width: min(100% - 3rem, 64rem);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.profile {
  position: sticky;
  top: 4rem;
  align-self: start;
}

.profile-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.profile-role,
.profile-affiliation {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.profile-affiliation {
  max-width: 13rem;
}

.profile-links {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-size: 0.94rem;
}

main {
  min-width: 0;
}

section + section {
  margin-top: 4rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  max-width: 18ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 680;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 0.4rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 680;
}

p {
  margin: 0;
}

p + p {
  margin-top: 0.75rem;
}

.intro {
  padding-top: 0.1rem;
}

.intro p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.entry-list {
  margin-top: 0.2rem;
}

.entry {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem 0;
}

.entry + .entry {
  border-top: 1px solid var(--line);
}

.entry-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

.entry-body p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.entry-body .entry-context {
  margin-top: 0.25rem;
  color: var(--text);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
}

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

.compact-copy {
  padding-top: 1.15rem;
}

.compact-copy p {
  color: var(--muted);
  font-size: 0.94rem;
}

strong {
  color: var(--text);
  font-weight: 650;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17191d;
    --surface: #20242a;
    --text: #e6e8eb;
    --muted: #aeb4bd;
    --line: #343a43;
    --accent: #8db8de;
    --focus: #74b8f0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
    width: min(100% - 2rem, 42rem);
    padding: 2.25rem 0 3.5rem;
  }

  .profile {
    position: static;
  }

  .profile-affiliation {
    max-width: 26rem;
  }

  .profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
  }

  section + section {
    margin-top: 3.25rem;
  }

  .entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    padding: 1.2rem 0;
  }

}

@media print {
  :root {
    --background: #f7f8fa;
    --text: #202329;
    --muted: #4e555e;
    --line: #c8cdd3;
    --accent: #24547f;
  }

  body {
    font-size: 11pt;
  }

  .page-shell {
    display: block;
    width: 100%;
    padding: 0;
  }

  .profile {
    position: static;
    margin-bottom: 2rem;
  }

  .profile-links {
    display: flex;
    gap: 1rem;
  }

  section + section {
    margin-top: 2rem;
  }

  a {
    color: var(--text);
  }
}
