:root {
  --paper: #fbfbfa;
  --paper-deep: #f1f2f1;
  --ink: #34393d;
  --muted: #687078;
  --faint: #9da3a7;
  --line: #d9dcdd;
  --accent: #2d718f;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --content-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.85rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 250, 0.97);
}

.header-inner,
.site-main,
.site-footer {
  width: min(100%, calc(var(--content-width) + (2 * var(--gutter))));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.8rem;
  text-decoration: none;
}

.wordmark-mark {
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wordmark-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.site-main {
  min-height: calc(100vh - 8.5rem);
  min-width: 0;
}

.page {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.about-page {
  grid-template-columns: minmax(12rem, 13.5rem) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
}

.js .page[hidden] {
  display: none;
}

.js .page.is-entering .page-body,
.js .page.is-entering .page-index,
.js .page.is-entering .profile-card {
  animation: page-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js .page.is-entering .page-index {
  animation-delay: 50ms;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-index {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 0.55rem;
  padding-top: 0.32rem;
  color: var(--faint);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.index-rule {
  width: 2.5rem;
  height: 1px;
  background: var(--line);
}

.page-body {
  width: min(100%, 48rem);
  min-width: 0;
}

.about-body {
  width: min(100%, 48rem);
}

.profile-card {
  min-width: 0;
  align-self: start;
  color: var(--muted);
}

.profile-portrait {
  width: min(100%, 10.75rem);
  aspect-ratio: 1;
  margin: 0 0 1.1rem;
  padding: 0.34rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}

.profile-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.profile-role {
  max-width: 13rem;
  margin: 0.38rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.profile-links {
  display: grid;
  gap: 0.7rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-links li,
.profile-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.profile-links li {
  font-size: 0.8rem;
}

.profile-links a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.profile-links a:hover {
  color: var(--accent);
}

.profile-icon {
  width: 0.98rem;
  height: 0.98rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-prose {
  max-width: 38rem;
  margin-top: 1.5rem;
}

.about-prose p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.72;
}

.about-prose p + p {
  margin-top: 1.15rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display-title,
.section-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.display-title {
  max-width: 18ch;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.section-title {
  max-width: 18ch;
  font-size: clamp(2.35rem, 4.5vw, 3.35rem);
}

.lede {
  max-width: 39rem;
  margin: 1.4rem 0 0;
  font-family: var(--sans);
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.placeholder-text,
.detail-value,
.entry-copy p,
.publication p,
.cv-row p,
.cv-download p {
  color: var(--muted);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-value {
  font-family: var(--sans);
  font-size: 0.91rem;
}

.section-jump {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-block: 1.25rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.section-jump-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-jump a {
  justify-self: start;
  font-family: var(--sans);
  font-size: 0.88rem;
  text-decoration: none;
}

.section-jump a span {
  display: inline-block;
  margin-left: 0.2rem;
  color: var(--accent);
  transition: transform 150ms ease;
}

.section-jump a:hover span {
  transform: translate(2px, -2px);
}

.section-intro {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
}

.entry-list,
.publication-list,
.cv-outline {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid var(--ink);
}

.entry {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.65rem;
  border-bottom: 1px solid var(--line);
}

.entry-number,
.entry-meta,
.publication-year {
  padding-top: 0.18rem;
  color: var(--faint);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-copy h2,
.publication h2,
.cv-row h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

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

.entry-copy p,
.publication p {
  max-width: 34rem;
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
}

.publication {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.65rem;
  border-bottom: 1px solid var(--line);
}

.cv-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding: 1.3rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.cv-download p {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
}

.text-link {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link-disabled {
  color: var(--faint);
}

.cv-outline {
  margin-top: 3.5rem;
}

.cv-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) 1fr;
  gap: 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.cv-row p {
  margin: 0;
  font-size: 0.88rem;
}

.site-footer {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.045em;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  font-family: var(--sans);
  letter-spacing: 0;
}

@media (max-width: 850px) {
  .site-header {
    position: static;
  }

  .header-inner {
    min-height: auto;
    display: block;
    padding-top: 1.2rem;
  }

  .site-nav {
    width: 100%;
    margin: 1.1rem 0 0;
    padding: 0;
    flex-wrap: wrap;
    overflow: visible;
    gap: 0 0.8rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    min-height: 2.8rem;
    font-size: 0.76rem;
  }

  .page {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .page-index {
    order: 2;
    margin-top: 1rem;
    padding-top: 0;
  }

  .page-body {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .about-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .about-page .page-body {
    order: 2;
  }

  .profile-card {
    order: 1;
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    grid-template-areas:
      "portrait identity"
      "portrait links";
    align-items: start;
    gap: 0.8rem 1.6rem;
  }

  .profile-portrait {
    grid-area: portrait;
    width: 8.5rem;
    margin: 0;
  }

  .profile-identity {
    grid-area: identity;
    align-self: end;
  }

  .profile-links {
    grid-area: links;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1.25rem;
    margin-top: 0.35rem;
  }

  .section-jump {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-jump-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .wordmark-name {
    font-size: 0.86rem;
  }

  .page {
    padding-block: 3rem 4.5rem;
  }

  .display-title {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
  }

  .profile-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "portrait"
      "identity"
      "links";
    justify-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .profile-portrait {
    width: min(48vw, 10.5rem);
  }

  .profile-role {
    margin-inline: auto;
  }

  .profile-links {
    width: min(100%, 19rem);
    margin-top: 0.65rem;
    text-align: left;
  }

  .section-title {
    font-size: clamp(2.15rem, 9.5vw, 2.75rem);
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .detail-item {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
  }

  .section-jump {
    grid-template-columns: 1fr;
  }

  .section-jump-label {
    grid-column: auto;
    margin-bottom: 0.35rem;
  }

  .entry {
    grid-template-columns: 1.8rem minmax(0, 1fr);
  }

  .entry-meta {
    display: none;
  }

  .publication {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.9rem;
  }

  .cv-download {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .site-footer {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .page-index {
    display: none;
  }

  .site-main {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .page {
    grid-template-columns: 1fr;
    padding: 0;
  }
}
