/* Shared styles for the academic portfolio and error page. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/source-serif-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/source-serif-italic-latin.woff2') format('woff2');
}

:root {
  --paper: #f7f8fb;
  --white: #ffffff;
  --ink: #1d304b;
  --text: #46556a;
  --muted: #607087;
  --blue: #234f80;
  --blue-dark: #173655;
  --line: #d9e0e9;
  --light: #edf1f7;
  --accent: #506f98;
  --serif: 'Source Serif 4',Georgia,serif;
  --sans: 'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --gutter: clamp(22px,5.5vw,88px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3 {
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,a,summary {
  touch-action: manipulation;
}

[hidden] {
  display: none!important;
}

::selection {
  background: #dae5f3;
  color: var(--blue-dark);
}

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

.container {
  width: min(100% - var(--gutter)*2,1200px);
  margin-inline: auto;
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
}

.text-link {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  line-height: 1.5;
  padding-block: 8px;
  color: var(--blue);
  text-underline-offset: 5px;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link span,.button span {
  font-size: 17px;
  font-weight: 400;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color .18s,color .18s;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover {
  background: var(--blue-dark);
  color: white;
}

.button-light {
  background: var(--paper);
  color: var(--blue-dark);
}

.button-light:hover {
  background: #dde7f5;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
}

.skip-link:focus {
  top: 10px;
}

.skip-link:hover {
  color: white;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.monogram {
  font: italic 28px/1 var(--serif);
  letter-spacing: -.07em;
  color: var(--blue);
  border: 1px solid #a3b4cc;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 4px 4px 0;
}

.wordmark-degree {
  font-weight: 400;
  color: var(--muted);
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  display: block;
  padding: 12px 0;
  position: relative;
}

.nav-links a:hover,.nav-links a[aria-current=location] {
  color: var(--blue);
}

.nav-links a[aria-current=location]::after {
  content: '';
  position: absolute;
  height: 2px;
  bottom: 5px;
  left: 0;
  right: 0;
  background: var(--blue);
}

.nav-links .nav-contact {
  padding: 9px 14px;
  border: 1px solid #b6c4d8;
  border-radius: 3px;
}

.nav-contact span {
  padding-left: 10px;
}

.nav-toggle {
  display: none;
}

/* Introduction and research figure */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1.22fr) minmax(0,1fr);
  gap: clamp(40px,6.5vw,102px);
  padding-block: 78px 70px;
  align-items: center;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}

.small-rule {
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font: 500 clamp(46px,4.7vw,67px)/1.15 var(--serif);
  letter-spacing: -.052em;
  margin: 21px 0 22px;
  white-space: nowrap;
}

.degree {
  font: 400 19px var(--serif);
  letter-spacing: -.02em;
}

.hero-statement {
  font: 400 clamp(28px,2.6vw,37px)/1.27 var(--serif);
  letter-spacing: -.026em;
  max-width: 530px;
  color: var(--ink);
}

.hero-statement em,h2 em {
  font-weight: 400;
  color: var(--blue);
}

.hero-intro {
  font-size: 15px;
  line-height: 1.8;
  margin: 20px 0 23px;
  max-width: 490px;
}

.affiliation {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  line-height: 1.75;
}

.affiliation-mark {
  color: var(--accent);
  font-size: 23px;
  line-height: 1.2;
}

.affiliation strong {
  font-weight: 600;
  color: var(--ink);
}

.affiliation a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 29px;
}

.hero-figure {
  min-width: 0;
  position: relative;
  padding: 16px;
  background: #e8eef6;
  border: 1px solid #d0dbe9;
}

.figure-overline {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 8px;
  letter-spacing: .115em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.micrograph {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #020502;
}

.micrograph img {
  position: absolute;
  max-width: none;
  width: 270.493%;
  height: auto;
  left: -25.11%;
  top: -17.49%;
}

.hero-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.hero-figure figcaption strong {
  display: block;
  font: 400 18px/1.3 var(--serif);
  color: var(--ink);
  letter-spacing: -.025em;
}

.hero-figure figcaption div>span {
  display: block;
  font-size: 9.5px;
  color: #516883;
  margin-top: 4px;
}

.hero-figure figcaption>a {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #b1c2d8;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
}

.hero-figure figcaption>a:hover {
  background: #d7e2f0;
}

.latest-wrap {
  border-block: 1px solid var(--line);
}

.latest {
  display: flex;
  align-items: center;
  gap: 27px;
  padding-block: 18px;
}

.latest .eyebrow {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 9px;
}

.latest p {
  font-size: 11.5px;
  flex: 1;
}

.latest strong {
  font-weight: 600;
  color: var(--ink);
}

.latest a {
  font-size: 10px;
  color: var(--blue);
  white-space: nowrap;
}

.latest a:hover {
  text-decoration: underline;
}

.latest a span {
  padding-left: 10px;
}

/* Research themes */
.section {
  padding-block: 83px;
}

.section-heading {
  display: flex;
  gap: 55px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 43px;
}

.section-heading h2,h2 {
  font: 400 38px/1.2 var(--serif);
  letter-spacing: -.035em;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading>div {
  flex: 1;
}

.section-intro {
  width: 390px;
  max-width: 42%;
  font-size: 14px;
  line-height: 1.85;
  padding-bottom: 4px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 34px;
  border-top: 1px solid var(--line);
  padding-top: 27px;
}

.research-topic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.research-topic+.research-topic {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.topic-index {
  color: var(--accent);
  font: italic 18px var(--serif);
  margin-bottom: 20px;
}

.research-topic h3 {
  font: 500 24px/1.25 var(--serif);
  letter-spacing: -.025em;
  margin-bottom: 15px;
}

.research-topic p {
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 17px;
}

.research-topic .text-link {
  margin-top: auto;
  font-size: 11.5px;
}

/* Publication list: all content is readable without JavaScript. */
.publications-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-heading.compact {
  align-items: end;
  margin-bottom: 27px;
}

.publication-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 23px;
}

.publication-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.publication-filters button {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 13px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 3px;
  min-height: 38px;
}

.publication-filters button:hover {
  background: var(--light);
  color: var(--blue);
}

.publication-filters button[aria-pressed=true] {
  background: var(--blue);
  color: white;
}

.publication-count {
  font-size: 10px;
  white-space: nowrap;
  color: var(--muted);
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.publication {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.pub-year {
  font: 400 19px var(--serif);
  color: var(--muted);
  padding-top: 2px;
}

.pub-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--blue);
  font-weight: 600;
}

.pub-type {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.pub-type::before {
  content: '·';
  margin-right: 16px;
}

.pub-type.preprint {
  color: #8e5a35;
  background: #f4ece1;
  padding: 2px 8px;
  border: 1px solid #e9ddcc;
  border-radius: 2px;
}

.pub-type.preprint::before {
  content: none;
}

.publication h3 {
  font: 500 22px/1.4 var(--serif);
  letter-spacing: -.02em;
}

.publication h3 a {
  display: block;
  padding-right: 38px;
  position: relative;
}

.publication h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.link-arrow {
  font: 400 19px var(--sans);
  position: absolute;
  right: 1px;
  top: 1px;
  color: var(--blue);
}

.pub-authors {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 9px;
}

.pub-authors strong {
  font-weight: 600;
  color: var(--ink);
}

.publication-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}

/* Open-source software */
.featured-software {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--line);
  background: var(--white);
}

.software-image {
  background: #e8eef6;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.software-image a {
  display: block;
  border: 1px solid #b4c3d7;
}

.software-image p {
  font-size: 10px;
  text-align: center;
  margin-top: 14px;
  color: var(--muted);
}

.featured-software-copy {
  padding: 34px;
}

.featured-software-copy h3 {
  font: 400 36px/1.2 var(--serif);
  letter-spacing: -.035em;
  margin: 12px 0 15px;
}

.featured-software-copy>p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.85;
}

.featured-software-copy .software-context {
  font-size: 11px!important;
  margin-top: 12px;
}

.software-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.software-tags span {
  padding: 3px 7px;
  background: #edf1f7;
  color: #506582;
  font-size: 9px;
  border-radius: 2px;
}

.software-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 23px;
  margin-top: 18px;
}

.software-links .text-link {
  font-size: 11px;
  gap: 8px;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  margin-top: 24px;
}

.software-card {
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.software-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 22px;
}

.software-card-top .eyebrow {
  font-size: 9px;
}

.software-card h3 {
  font: 500 24px/1.22 var(--serif);
  letter-spacing: -.025em;
  margin-bottom: 15px;
}

.software-card>p {
  font-size: 13px;
  line-height: 1.85;
  flex: 1;
}

.software-card .software-links {
  margin-top: 15px;
}

.creative-project {
  margin-top: 25px;
  border-bottom: 1px solid var(--line);
}

.creative-project summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.creative-project summary::-webkit-details-marker {
  display: none;
}

.creative-project summary>span:not(.details-symbol) {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

.details-symbol {
  margin-left: auto;
  font-weight: 400;
  font-size: 20px;
}

.creative-project[open] .details-symbol {
  transform: rotate(45deg);
}

.creative-project>div {
  padding: 8px 0 25px;
  max-width: 650px;
}

.creative-project h3 {
  font: 500 24px var(--serif);
  margin-bottom: 10px;
}

.creative-project p {
  font-size: 13px;
}

.creative-project .text-link {
  margin: 12px 20px 0 0;
}

/* Teaching, background and contact */
.teaching-section {
  background: var(--light);
  border-block: 1px solid var(--line);
}

.teaching-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.teaching-intro h2 {
  margin: 19px 0 23px;
}

.teaching-intro>p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  max-width: 405px;
}

.teaching-intro>p+p {
  margin-top: 16px;
}

.teaching-program {
  border-left: 1px solid #c8d4e4;
  padding-left: 42px;
}

.teaching-program .eyebrow {
  font-size: 9px;
}

.teaching-program h3 {
  font: 500 29px/1.3 var(--serif);
  letter-spacing: -.025em;
  margin: 15px 0;
}

.teaching-program>p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
}

.teaching-topics {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  font-size: 11.5px;
}

.teaching-topics li {
  border-bottom: 1px solid #d0dbe9;
  padding: 10px 0;
  display: flex;
  gap: 12px;
}

.teaching-topics li::before {
  content: '↳';
  color: var(--accent);
}

.teaching-resources {
  border-top: 1px solid #c8d4e4;
  margin-top: 22px;
  padding-top: 21px;
  display: grid;
  gap: 10px;
}

.teaching-resources a {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.teaching-resources a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about-section>.eyebrow {
  margin-bottom: 20px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.about-layout p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-layout .text-link {
  margin-right: 25px;
  font-size: 11.5px;
}

.contact-section {
  background: var(--blue-dark);
  color: #e6eef8;
  padding-block: 69px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.contact-section .eyebrow {
  color: #bed0e7;
  margin-bottom: 20px;
}

.contact-section h2 {
  color: var(--paper);
  font-size: 44px;
}

.contact-section h2 em {
  color: #d0e0f5;
}

.contact-copy {
  max-width: 405px;
}

.contact-copy p {
  font-size: 14px;
  line-height: 1.9;
}

.contact-copy .cv-note {
  font-size: 11px;
  color: #bfd0e6;
  margin-top: 12px;
}

.contact-copy .button {
  margin-top: 25px;
}

.site-footer {
  padding-block: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 25px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}

.footer-name {
  font: 500 17px var(--serif);
  color: var(--ink);
}

.site-footer p {
  grid-column: 1;
  grid-row: 2;
}

.site-footer>a:not(.footer-name) {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.copyright {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
}

/* Error page */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: grid;
  align-content: center;
  padding-block: 90px;
}

.error-main h1 {
  font: 400 clamp(44px,6vw,72px)/1.15 var(--serif);
  letter-spacing: -.04em;
  max-width: 620px;
  margin: 20px 0;
}

.error-main p:not(.eyebrow) {
  max-width: 480px;
  margin-bottom: 28px;
}

.error-main .button {
  justify-self: start;
}

.error-number {
  color: var(--accent);
}

@media(min-width:1500px) {
  .hero {
    padding-block: 95px 85px;
  }
  .hero h1 {
    font-size: 73px;
  }
}

@media(max-width:1100px) {
  .nav-links {
    gap: 20px;
  }
  .wordmark-degree {
    display: none;
  }
  .hero {
    gap: 40px;
    padding-block: 55px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .degree {
    font-size: 17px;
  }
  .hero-statement {
    font-size: 30px;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .hero-figure figcaption strong {
    font-size: 16px;
  }
  .hero-figure figcaption div>span {
    font-size: 8.5px;
  }
  .section-heading h2,h2 {
    font-size: 34px;
  }
  .section-intro {
    max-width: 43%;
  }
  .software-card {
    padding: 22px;
  }
  .teaching-layout,.about-layout,.contact-layout {
    gap: 50px;
  }
  .latest {
    gap: 20px;
  }
  .latest p {
    font-size: 10.5px;
  }
  .latest a {
    font-size: 9px;
  }
}

@media(max-width:820px) {
  .site-nav {
    min-height: 76px;
    gap: 18px;
  }
  .wordmark {
    font-size: 12px;
    gap: 10px;
  }
  .monogram {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 10px;
  }
  .nav-links .nav-contact {
    padding: 8px;
  }
  .nav-contact span {
    padding-left: 5px;
  }
  .hero {
    gap: 28px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .degree {
    font-size: 14px;
  }
  .hero-statement {
    font-size: 26px;
  }
  .hero-intro {
    font-size: 13px;
  }
  .hero-figure {
    padding: 11px;
  }
  .figure-overline {
    font-size: 6px;
  }
  .hero-figure figcaption strong {
    font-size: 14px;
  }
  .hero-figure figcaption div>span {
    font-size: 7px;
  }
  .affiliation {
    font-size: 10px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding: 12px 15px;
  }
  .hero-actions {
    gap: 9px;
    margin-top: 24px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .latest {
    flex-wrap: wrap;
    gap: 5px 20px;
  }
  .latest p {
    flex-basis: 70%;
    flex-grow: 1;
  }
  .latest a {
    margin-left: auto;
  }
  .section {
    padding-block: 65px;
  }
  .section-heading {
    gap: 30px;
  }
  .section-heading h2,h2 {
    font-size: 31px;
  }
  .section-intro {
    font-size: 12px;
  }
  .research-grid {
    gap: 22px;
  }
  .research-topic+.research-topic {
    padding-left: 22px;
  }
  .research-topic h3 {
    font-size: 21px;
  }
  .research-topic p {
    font-size: 12px;
  }
  .featured-software-copy {
    padding: 24px;
  }
  .software-image {
    padding: 20px;
  }
  .software-grid {
    gap: 14px;
  }
  .software-card {
    padding: 18px;
  }
  .software-card h3 {
    font-size: 21px;
  }
  .software-tags span {
    font-size: 8px;
  }
  .teaching-layout,.about-layout,.contact-layout {
    gap: 36px;
  }
  .teaching-program {
    padding-left: 28px;
  }
  .contact-section h2 {
    font-size: 38px;
  }
}

@media(max-width:640px) {
  html {
    scroll-padding-top: 88px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .site-nav {
    min-height: 70px;
    flex-wrap: wrap;
    padding-block: 14px;
    position: relative;
    gap: 12px;
  }
  .wordmark {
    font-size: 14px;
  }
  .wordmark-degree {
    display: inline;
  }
  .site-nav[data-enhanced] .nav-toggle {
    display: flex;
    gap: 12px;
    align-items: center;
    background: transparent;
    border: 1px solid #b6c4d8;
    border-radius: 3px;
    color: var(--blue);
    font-size: 12px;
    padding: 8px 11px;
    min-height: 40px;
  }
  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 5px 18px;
  }
  .nav-links a {
    font-size: 13px;
    padding: 10px 0;
  }
  .site-nav[data-enhanced] .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 2px;
    border-top: 1px solid var(--line);
  }
  .site-nav[data-enhanced] .nav-links.is-open {
    display: flex;
  }
  .nav-links .nav-contact {
    display: inline-block;
    padding: 10px 14px;
  }
  .nav-links a[aria-current=location]::after {
    right: auto;
    width: 25px;
    bottom: 4px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 42px;
    gap: 36px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .hero h1 {
    font-size: clamp(40px,10vw,61px);
    margin: 17px 0;
  }
  .degree {
    font-size: 16px;
  }
  .hero-statement {
    font-size: 31px;
    max-width: 480px;
  }
  .hero-intro {
    font-size: 14px;
    margin: 18px 0 22px;
  }
  .affiliation {
    font-size: 11px;
  }
  .hero-actions {
    gap: 20px;
    margin-top: 26px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 13px 17px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .hero-figure {
    max-width: 430px;
    width: 100%;
    padding: 14px;
    margin-inline: auto;
  }
  .figure-overline {
    font-size: 7px;
  }
  .hero-figure figcaption strong {
    font-size: 18px;
  }
  .hero-figure figcaption div>span {
    font-size: 9px;
  }
  .latest {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding-block: 20px;
  }
  .latest p {
    font-size: 12px;
  }
  .latest a {
    margin: 0;
    font-size: 10px;
  }
  .section {
    padding-block: 54px;
  }
  .section-heading {
    display: block;
    margin-bottom: 29px;
  }
  .section-heading h2,h2 {
    font-size: 33px;
  }
  .section-heading .eyebrow {
    margin-bottom: 13px;
  }
  .section-intro {
    width: auto;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 20px;
  }
  .research-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }
  .research-topic {
    padding-top: 25px;
    padding-bottom: 24px;
  }
  .research-topic+.research-topic {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .topic-index {
    margin-bottom: 10px;
  }
  .research-topic h3 {
    font-size: 25px;
  }
  .research-topic h3 br {
    display: none;
  }
  .research-topic p {
    font-size: 14px;
    margin-bottom: 9px;
  }
  .section-heading.compact .text-link {
    margin-top: 15px;
    font-size: 12px;
  }
  .publication-tools {
    display: block;
    padding-bottom: 19px;
  }
  .publication-filters {
    gap: 3px;
  }
  .publication-filters button {
    padding: 8px 10px;
    font-size: 10px;
    min-height: 40px;
  }
  .publication-count {
    margin-top: 10px;
    font-size: 10px;
  }
  .publication {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding-block: 23px;
  }
  .pub-year {
    font-size: 16px;
  }
  .pub-meta {
    font-size: 11px;
    gap: 7px 12px;
  }
  .pub-type {
    font-size: 10px;
  }
  .pub-type::before {
    margin-right: 10px;
  }
  .publication h3 {
    font-size: 18px;
    line-height: 1.4;
  }
  .publication h3 a {
    padding-right: 23px;
  }
  .link-arrow {
    font-size: 16px;
  }
  .pub-authors {
    font-size: 11px;
  }
  .publication-note {
    font-size: 10px;
  }
  .featured-software {
    grid-template-columns: 1fr;
  }
  .software-image {
    padding: 19px;
  }
  .featured-software-copy {
    padding: 25px;
  }
  .featured-software-copy h3 {
    font-size: 34px;
  }
  .software-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .software-card {
    padding: 25px;
  }
  .software-card-top {
    margin-bottom: 15px;
  }
  .software-card h3 {
    font-size: 25px;
  }
  .software-card>p {
    font-size: 13px;
  }
  .software-tags span {
    font-size: 9px;
  }
  .software-links .text-link {
    font-size: 12px;
  }
  .creative-project summary {
    gap: 10px;
    flex-wrap: wrap;
  }
  .creative-project summary>span:not(.details-symbol) {
    font-size: 9px;
  }
  .teaching-layout,.about-layout,.contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .teaching-intro>p:not(.eyebrow) {
    max-width: 100%;
  }
  .teaching-program {
    border-left: none;
    border-top: 1px solid #c8d4e4;
    padding: 28px 0 0;
  }
  .teaching-program>p:not(.eyebrow) {
    font-size: 13px;
  }
  .teaching-topics {
    font-size: 12px;
  }
  .teaching-resources a {
    font-size: 12px;
  }
  .about-layout h2 br {
    display: none;
  }
  .about-layout {
    gap: 23px;
  }
  .contact-section {
    padding-block: 48px;
  }
  .contact-section h2 {
    font-size: 40px;
  }
  .contact-copy {
    max-width: 100%;
  }
  .contact-layout {
    gap: 25px;
  }
  .site-footer {
    gap: 10px;
    align-items: start;
    padding-block: 25px;
  }
  .site-footer p {
    grid-column: 1/-1;
    font-size: 9px;
  }
  .copyright {
    grid-row: 3;
    grid-column: 1;
    text-align: left;
    font-size: 9px;
  }
  .site-footer>a:not(.footer-name) {
    font-size: 10px;
  }
}

@media(max-width:360px) {
  .container {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero-statement {
    font-size: 28px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .hero-actions {
    gap: 9px;
  }
  .hero-actions .text-link {
    font-size: 10px;
  }
  .publication-filters button {
    padding: 8px;
  }
  .wordmark-degree {
    display: none;
  }
  .figure-overline {
    font-size: 6px;
  }
  .hero-figure figcaption strong {
    font-size: 16px;
  }
  .hero-figure figcaption div>span {
    font-size: 8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    transition: none!important;
    animation: none!important;
  }
}

@media print {
  @page {
    margin: 18mm;
  }
  body {
    font-size: 10pt;
    background: white;
    color: black;
  }
  .container {
    width: 100%;
    max-width: none;
  }
  .site-header,.hero-figure,.latest-wrap,.hero-actions,.publication-tools,.software-image,.creative-project,.skip-link,.site-footer>a:not(.footer-name) {
    display: none!important;
  }
  .section,.hero,.contact-section {
    padding-block: 18pt;
  }
  .hero,.section-heading,.teaching-layout,.about-layout,.contact-layout {
    display: block;
  }
  .hero h1 {
    font-size: 32pt;
    margin-top: 0;
  }
  .hero-statement {
    font-size: 22pt;
  }
  .hero-intro {
    max-width: none;
  }
  .section-intro {
    max-width: none;
    width: auto;
    margin-top: 10pt;
  }
  .publication[hidden] {
    display: grid!important;
  }
  .publication {
    padding: 12pt 0;
    break-inside: avoid;
  }
  .publication h3 {
    font-size: 13pt;
  }
  .publication h3 a {
    padding-right: 0;
  }
  .link-arrow {
    display: none;
  }
  .publication-note,.pub-authors,.pub-meta {
    font-size: 9pt;
  }
  .research-topic,.software-card {
    break-inside: avoid;
  }
  .featured-software {
    display: block;
  }
  .software-grid {
    grid-template-columns: 1fr;
  }
  .featured-software-copy,.software-card {
    padding: 14pt;
  }
  .teaching-program {
    border: 0;
    padding: 18pt 0 0;
  }
  .contact-section,.contact-section h2,.contact-section h2 em,.contact-section .eyebrow,.contact-copy .cv-note {
    color: black;
    background: white;
  }
  .contact-section .button {
    padding: 0;
    border: 0;
  }
  .section-heading h2,h2,.contact-section h2 {
    font-size: 25pt;
  }
  .contact-copy {
    max-width: none;
    margin-top: 12pt;
  }
  .site-footer {
    border-top: 1px solid #999;
  }
  .publication h3 a::after {
    content: attr(href);
    display: block;
    font: 8pt var(--sans);
    margin-top: 5pt;
    overflow-wrap: anywhere;
  }
}
