:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --paper-raised: #faf8f2;
  --ink: #171714;
  --muted: #68675f;
  --faint: #6e6d65;
  --rule: #cfcdc4;
  --accent: #c43d27;
  --accent-soft: #f0c5b9;
  --selection: #ffdb61;
  --footer-accent: #ff7258;
  --footer-muted: #aaa89f;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", "Arial", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Roboto Mono", "Courier New", monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171714;
  --paper-raised: #211f1b;
  --ink: #eeece4;
  --muted: #aaa89f;
  --faint: #8b8980;
  --rule: #3f3d37;
  --accent: #ff7258;
  --accent-soft: #69392e;
  --selection: #775f14;
  --footer-accent: #b93622;
  --footer-muted: #68675f;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --paper: #171714;
    --paper-raised: #211f1b;
    --ink: #eeece4;
    --muted: #aaa89f;
    --faint: #8b8980;
    --rule: #3f3d37;
    --accent: #ff7258;
    --accent-soft: #69392e;
    --selection: #775f14;
    --footer-accent: #b93622;
    --footer-muted: #68675f;
  }
}

* {
  box-sizing: border-box;
}

button {
  font: inherit;
  color: inherit;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

body::before {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

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

a:focus-visible,
button:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  transform: translateY(-200%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 3vw;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  gap: 0.62rem;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.wordmark-mark {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 350ms ease;
}

.wordmark:hover .wordmark-mark {
  transform: rotate(90deg);
}

.header-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.availability {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d9c58;
  box-shadow: 0 0 0 4px color-mix(in srgb, #2d9c58 17%, transparent);
}

.theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
  transform: rotate(15deg);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(320px, 38vw) minmax(0, 1fr);
}

.intro {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 680px;
  padding: clamp(4.5rem, 8vh, 7rem) clamp(2rem, 5vw, 6rem) 2.5rem 3vw;
  border-right: 1px solid var(--rule);
}

.intro-orbit {
  position: absolute;
  z-index: -1;
  top: 4.5rem;
  right: 4vw;
  width: clamp(90px, 10vw, 150px);
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  opacity: 0.7;
}

.intro-orbit::before,
.intro-orbit::after {
  position: absolute;
  content: "";
}

.intro-orbit::before {
  top: 50%;
  right: -14%;
  left: -14%;
  border-top: 1px solid var(--rule);
  transform: rotate(-27deg);
}

.intro-orbit::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.orbit-dot {
  position: absolute;
  top: 10%;
  left: 17%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.eyebrow,
.section-number,
.footer-kicker {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.3rem, 5.6vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.87;
}

.intro h1 em {
  color: var(--accent);
  font-weight: 400;
}

.lede {
  max-width: 530px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.3vw, 1.35rem);
  line-height: 1.48;
}

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

.section-nav {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  margin: auto 0 2.2rem;
  border-top: 1px solid var(--rule);
}

.section-nav a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding: 0.66rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition:
    color 120ms ease,
    padding-left 120ms ease;
}

.section-nav a span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.section-nav a:hover,
.section-nav a.is-active {
  padding-left: 0.35rem;
  color: var(--ink);
}

.section-nav a.is-active span {
  color: var(--accent);
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 300px;
  padding: 0.78rem 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.email-link span:last-child {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 150ms ease;
}

.email-link:hover span:last-child {
  transform: translate(3px, -3px);
}

#main-content {
  min-width: 0;
}

.content-section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(max-content, 0.8fr) 1fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.86;
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.04rem;
  line-height: 1.5;
}

.index-list,
.research-list,
.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list > li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  border-top: 1px solid var(--rule);
}

.index-list > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.index-list time {
  padding: 1.2rem 1rem 1.2rem 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.index-list a {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(1.02rem, 1.55vw, 1.35rem);
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 140ms ease,
    padding 140ms ease,
    background 140ms ease;
}

.index-list a:hover {
  padding-right: 0.6rem;
  padding-left: 1.65rem;
  background: var(--paper-raised);
  color: var(--accent);
}

.arrow {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: transform 150ms ease;
}

a:hover > .arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.research-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.research-list > li {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 1.25rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 180ms ease;
}

.research-list > li:hover {
  background: var(--paper-raised);
}

.research-list > .research-wide {
  grid-column: 1 / -1;
  min-height: 360px;
}

.research-wide h3 {
  max-width: 760px;
}

.research-wide .research-summary {
  max-width: 580px;
}

.research-wide .research-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.research-meta,
.research-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.research-meta time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.status {
  padding: 0.27rem 0.48rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-preprint {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.status-paper {
  background: var(--ink);
  color: var(--paper);
}

.research-list h3 {
  margin: 2.5rem 0 2rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.research-list h3 a {
  text-decoration-color: var(--rule);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.research-list h3 a:hover {
  color: var(--accent);
}

.research-footer {
  gap: 1rem;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.research-footer p,
.research-footer a {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.research-footer p {
  max-width: 55%;
}

.research-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-align: right;
  text-decoration: none;
}

.research-footer a:hover {
  color: var(--accent);
}

.project-list {
  counter-reset: projects;
}

.project-list li {
  border-top: 1px solid var(--rule);
}

.project-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.project-list a {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto 1.25rem;
  gap: 1rem;
  align-items: center;
  min-height: 112px;
  padding: 1rem 0;
  text-decoration: none;
}

.project-list a:hover .project-copy strong {
  color: var(--accent);
}

.project-list a:hover .project-number {
  transform: rotate(-5deg);
}

.project-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.69rem;
  transition: transform 150ms ease;
}

.project-copy {
  display: flex;
  flex-direction: column;
}

.project-copy strong {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: color 150ms ease;
}

.project-copy strong small {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.2rem 0.42rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: middle;
  text-transform: uppercase;
}

.project-copy > span {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.77rem;
}

.project-tags {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-align: right;
}

.feature-link {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.feature-link:hover {
  background: var(--accent);
  color: #fff;
}

.feature-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.62rem;
  place-items: center;
}

.feature-link > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.feature-link strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 400;
}

.feature-link small {
  margin-top: 0.25rem;
  opacity: 0.65;
  font-size: 0.7rem;
}

.press-list a {
  font-family: var(--sans);
}

.press-list a > span:first-child {
  display: flex;
  flex-direction: column;
}

.press-list strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.press-list small {
  margin-top: 0.35rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.other-section {
  min-height: 60vh;
}

.other-card {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  text-decoration: none;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.other-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.other-card time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.other-card strong {
  max-width: 630px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.other-card > span {
  color: var(--accent);
}

.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-list > li {
  display: grid;
  grid-template-columns: minmax(145px, 0.62fr) minmax(180px, 0.9fr) minmax(260px, 1.45fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.experience-list > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.experience-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.45;
}

.experience-meta time {
  color: var(--ink);
}

.experience-role p {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.experience-role h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.experience-list ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 560px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
  list-style: none;
}

.experience-list ul li {
  position: relative;
  padding-left: 1rem;
}

.experience-list ul li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.research-authors {
  margin: -0.75rem 0 1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
}

.research-summary {
  max-width: 480px;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.research-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 1.5rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.research-metrics div {
  padding: 0.8rem;
  background: var(--paper);
}

.research-list > li:hover .research-metrics div {
  background: var(--paper-raised);
}

.research-metrics dt {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.research-metrics dd {
  margin: 0.35rem 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.research-links {
  justify-content: flex-start;
}

.research-links a {
  text-align: left;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.education-grid article {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 180ms ease;
}

.education-grid article:hover {
  background: var(--paper-raised);
}

.education-year {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.education-grid h3 {
  max-width: 420px;
  margin: 2.5rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.education-grid article > p:not(.education-year) {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.education-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.skills-list {
  margin: 0;
}

.skills-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.5fr) minmax(0, 2fr);
  gap: 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}

.skills-list > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.skills-list dt {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skills-list dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.35;
}

.site-footer {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 5.5rem) 2rem;
  background: var(--ink);
  color: var(--paper);
}

.site-footer .footer-kicker {
  color: var(--footer-accent);
}

.site-footer a:focus-visible {
  outline-color: var(--footer-accent);
}

.site-footer h2 {
  max-width: 700px;
  margin: 0 0 3rem;
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.footer-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  text-decoration: none;
}

.footer-email > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-email > span:last-child {
  font-family: var(--sans);
}

.footer-email:hover {
  color: var(--footer-accent);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 4rem;
  color: var(--footer-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  gap: 1.2rem;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--footer-accent);
}

.footer-bottom > a:last-child {
  justify-self: end;
}

@media (max-width: 1240px) {
  .page-shell {
    display: block;
  }

  .intro {
    position: relative;
    height: auto;
    min-height: calc(100svh - 76px);
    padding: clamp(4.5rem, 10vh, 7rem) 5vw 2.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .intro h1 {
    font-size: clamp(4rem, 12vw, 7.8rem);
  }

  .section-nav {
    display: grid;
    grid-template-columns: repeat(5, auto);
    max-width: none;
    margin: auto 0 1.5rem;
    border-bottom: 1px solid var(--rule);
  }

  .section-nav a {
    display: flex;
    gap: 0.5rem;
    border-bottom: 0;
  }

  .section-nav a:hover,
  .section-nav a.is-active {
    padding-left: 0;
  }

  .email-link {
    max-width: none;
  }

  .content-section,
  .site-footer {
    padding-right: 5vw;
    padding-left: 5vw;
  }
}

@media (max-height: 760px) and (min-width: 1241px) {
  .intro {
    position: relative;
    height: auto;
    min-height: calc(100svh - 76px);
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .intro-orbit {
    top: 2rem;
  }

  .intro h1 {
    font-size: clamp(3rem, 4.8vw, 5.25rem);
  }

  .lede {
    margin-top: 1.25rem;
    font-size: 1rem;
  }

  .section-nav {
    margin: 1.5rem 0 0.75rem;
  }

  .section-nav a {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .email-link {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
}

@media (max-width: 820px) {
  .experience-list > li {
    grid-template-columns: minmax(140px, 0.55fr) 1fr;
  }

  .experience-list ul {
    grid-column: 1 / -1;
    max-width: 560px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 1rem;
  }

  .site-header {
    min-height: 64px;
    padding: 0 1.1rem;
  }

  .availability {
    display: none;
  }

  .intro {
    min-height: calc(100svh - 64px);
    padding: 4.5rem 1.1rem 1.5rem;
  }

  .intro-orbit {
    top: 2.75rem;
    right: 1.5rem;
    width: 100px;
  }

  .intro h1 {
    font-size: clamp(3.45rem, 18vw, 5.7rem);
  }

  .lede {
    font-size: 1.05rem;
  }

  .section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
    margin-top: 4rem;
  }

  .section-nav a {
    border-top: 1px solid var(--rule);
  }

  .section-nav a:nth-child(-n + 2) {
    border-top: 0;
  }

  .content-section {
    padding: 5.5rem 1.1rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 3rem;
  }

  .section-heading h2 {
    font-size: clamp(2.75rem, 14vw, 5.5rem);
  }

  .section-heading > p {
    margin-top: 1.5rem;
  }

  .index-list > li {
    grid-template-columns: 4.3rem 1fr;
  }

  .index-list time {
    padding-top: 1.1rem;
    font-size: 0.68rem;
  }

  .index-list a {
    padding-left: 0.9rem;
    font-size: 1.03rem;
  }

  .index-list a:hover {
    padding-left: 1.1rem;
  }

  .research-list {
    grid-template-columns: 1fr;
  }

  .research-list > li {
    min-height: 280px;
  }

  .research-wide .research-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-list > li {
    display: block;
    padding: 1.75rem 0;
  }

  .experience-role {
    margin-top: 1.25rem;
  }

  .experience-list ul {
    margin-top: 1.5rem;
    font-size: 0.78rem;
  }

  .project-list a {
    grid-template-columns: 2rem minmax(0, 1fr) 1rem;
    min-height: 105px;
  }

  .project-tags {
    display: none;
  }

  .project-copy > span {
    padding-right: 0.5rem;
    line-height: 1.35;
  }

  .feature-link {
    grid-template-columns: 2.7rem 1fr auto;
    padding: 1rem;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-grid article {
    min-height: 280px;
  }

  .education-grid article > div {
    flex-direction: column;
    gap: 0.35rem;
  }

  .skills-list > div {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .other-card {
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
  }

  .other-card time {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 5.5rem 1.1rem 1.5rem;
  }

  .site-footer h2 {
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
  }

  .footer-bottom > a:last-child {
    justify-self: start;
  }
}

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

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

@media print {
  :root,
  html[data-theme="dark"],
  html:not([data-theme]) {
    color-scheme: light;
    --paper: #fff;
    --paper-raised: #fff;
    --ink: #000;
    --muted: #333;
    --faint: #444;
    --rule: #999;
    --accent: #000;
    --footer-muted: #333;
  }

  html,
  body {
    background-color: #fff !important;
    color: #000 !important;
  }

  body {
    transition: none !important;
  }

  .site-header,
  .section-nav,
  .theme-toggle,
  .intro-orbit,
  .skip-link {
    display: none;
  }

  .page-shell {
    display: block;
  }

  .intro {
    position: static;
    height: auto;
    min-height: 0;
    padding: 2rem 0;
    border-right: 0;
  }

  .content-section {
    padding: 2rem 0;
  }

  .section-heading,
  .experience-list > li,
  .project-list > li,
  .research-list > li,
  .education-grid article,
  .skills-list > div {
    break-inside: avoid;
  }

  .site-footer {
    padding: 2rem 0;
    background: #fff !important;
    color: #000 !important;
  }

  .footer-bottom {
    color: #333 !important;
  }
}
