@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/eb-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/eb-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sidebar-width: 270px;
  --text: #171716;
  --muted: #6a6965;
  --link: #2f6ea9;
  --link-light: #edf4fb;
  --link-hover: #75aee0;
  --button-blue: #184a82;
  --bg: #fbfaf7;
  --border: #dddcd7;
  --divider-line: #b8b7b2;
  --surface: #ffffff;
  --theme-ring: #c78e4e;
  --section-accent: #a11833;
}

html[data-theme="dark"] {
  --text: #e5e8ec;
  --muted: #a7adb6;
  --link: #86acd5;
  --link-light: #273548;
  --link-hover: #b7d8f4;
  --button-blue: #89add5;
  --bg: #171c25;
  --border: #323a47;
  --divider-line: #465160;
  --surface: #1d2430;
  --theme-ring: #d6a05d;
  --section-accent: #e0a1ad;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}

strong {
  font-weight: 600;
}

::selection {
  background: color-mix(in srgb, var(--link) 22%, transparent);
}

.site {
  width: min(1200px, calc(100% - 72px));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: calc(var(--sidebar-width) + 10px) minmax(0, 1fr);
  column-gap: clamp(58px, 6vw, 86px);
  align-items: start;
}

.section-nav {
  width: min(1200px, calc(100% - 72px));
  margin: 26px auto 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px clamp(15px, 2.2vw, 29px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.section-nav a {
  color: color-mix(in srgb, var(--muted) 90%, var(--text));
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 2px;
  white-space: nowrap;
}

.section-nav a > span:first-child {
  color: var(--section-accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.section-nav .nav-separator {
  color: color-mix(in srgb, var(--muted) 42%, var(--bg));
  font-weight: 400;
}

.section-nav a:hover {
  color: var(--link-hover);
  opacity: 1;
}

.section-nav a:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 4px;
  border-radius: 2px;
}

.top-divider {
  width: min(355px, calc(100% - 92px));
  margin: 17px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.top-divider-line {
  height: 1px;
  flex: 1 1 auto;
  max-width: 153px;
  background: color-mix(in srgb, var(--divider-line) 80%, var(--bg));
  opacity: 0;
  transform: scaleX(0);
}

.top-divider-line:first-child {
  transform-origin: right center;
  animation: top-divider-line 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 260ms forwards;
}

.top-divider-line:last-child {
  transform-origin: left center;
  animation: top-divider-line 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 330ms forwards;
}

.top-divider-mark {
  width: 22px;
  height: 19px;
  flex: 0 0 auto;
  background-image: url("../img/coffee-cup-mark.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transform: scale(0.8);
  animation: top-divider-mark 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 160ms forwards;
}

html[data-theme="dark"] .top-divider-mark {
  background-image: url("../img/coffee-cup-mark-dark.png");
}

.sidebar {
  position: sticky;
  top: 30px;
  align-self: start;
}

.sidebar h1 {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  font-weight: 700;
  width: var(--sidebar-width);
  text-align: center;
}

.portrait-frame {
  width: var(--sidebar-width);
  display: block;
  margin-bottom: 22px;
}

.portrait {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #eeeeee;
}

.affiliation {
  width: var(--sidebar-width);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
  padding: 0 4px;
  text-align: center;
}

.affiliation-place {
  color: var(--link);
  font-weight: 500;
}

.affiliation-place:hover {
  color: var(--link-hover);
  opacity: 0.9;
}

.affiliation strong {
  font-weight: 600;
}

.cv-link {
  width: var(--sidebar-width);
  margin: 0 0 18px;
  display: flex;
  justify-content: center;
}

.cv-link .download-link {
  border: 1.5px solid var(--section-accent);
  border-radius: 2px;
  color: var(--section-accent);
  background: transparent;
  min-height: 34px;
  padding: 6px 15px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cv-link .download-link::before {
  display: none;
}

.cv-link .download-link:hover {
  border-color: var(--section-accent);
  color: var(--surface);
  background: var(--section-accent);
}

.contact {
  font-size: 15px;
  margin: 0 0 25px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.contact a {
  overflow-wrap: anywhere;
}

.email-copy {
  border: 0;
  border-radius: 50%;
  color: color-mix(in srgb, var(--muted) 82%, var(--bg));
  background: transparent;
  width: 30px;
  height: 30px;
  padding: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.email-copy::after {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: var(--copy-icon);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--copy-icon);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  --copy-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20width='14'%20height='14'%20x='8'%20y='8'%20rx='2'%20ry='2'/%3E%3Cpath%20d='M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202'/%3E%3C/svg%3E");
}

.email-copy.copied::after {
  --copy-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E");
}

.email-copy:hover {
  background: color-mix(in srgb, var(--link) 8%, transparent);
  color: var(--link-hover);
}

.contact a,
a {
  color: var(--link);
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

.contact a:hover,
a:hover {
  color: var(--link-hover);
  text-decoration: none;
  opacity: 0.78;
}

a:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
  border-radius: 2px;
  text-decoration: none;
  opacity: 1;
}

.social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
  justify-content: center;
}

.social a {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--muted) 86%, var(--bg));
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.social a:hover {
  background: transparent;
  color: var(--link-hover);
  text-decoration: none;
  opacity: 1;
}

.icon {
  width: 18px;
  height: 18px;
  display: block;
}

.icon-github,
.icon-scholar {
  width: 19px;
  height: 19px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.content {
  min-width: 0;
  max-width: 826px;
}

h2 {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 28px;
  padding-bottom: 0;
  border-bottom: 0;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--section-accent);
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

h2::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1 1 auto;
  margin: 0 12px 0 14px;
  order: 2;
}

h2 .section-number {
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

h2 .section-separator {
  color: color-mix(in srgb, var(--section-accent) 34%, var(--muted));
  font-weight: 400;
  margin-right: 7px;
}

h2 .section-title {
  order: 1;
}

h2 .section-number,
h2 .section-separator {
  order: 1;
}

.to-top {
  color: var(--muted);
  flex: 0 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  order: 3;
  padding: 3px;
}

.to-top:hover {
  color: var(--section-accent);
  opacity: 1;
}

.to-top:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

.content > section,
#cv,
#contact {
  scroll-margin-top: 24px;
}

.content > section {
  margin-bottom: 60px;
}

.content > section.short-section {
  margin-bottom: 60px;
}

p {
  font-size: 18px;
  line-height: 1.72;
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
  margin: 0 0 20px;
}

.bio {
  padding-top: 3px;
}

.bio p {
  max-width: 760px;
}

.job-market {
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 7px 12px 7px 14px;
  border-left: 2px solid var(--section-accent);
  border-radius: 0 3px 3px 0;
  background: var(--surface);
  background: color-mix(in srgb, var(--section-accent) 6%, var(--surface));
  color: var(--text);
  line-height: 1.52;
}

.job-market strong {
  font-weight: 600;
}

.button,
.links a,
.link-button {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--button-blue);
  background: color-mix(in srgb, var(--link) 12%, var(--surface));
  padding: 7px 14px;
  min-height: 34px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.links a,
.link-button {
  border: 1.5px solid var(--button-blue);
  border-radius: 2px;
  background: transparent;
  min-height: 30px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 600;
}

.download-link::before,
.external-link::before {
  content: "";
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.5em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: var(--button-icon);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--button-icon);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.download-link::before {
  --button-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2015v4a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-4'/%3E%3Cpolyline%20points='7%2010%2012%2015%2017%2010'/%3E%3Cline%20x1='12'%20y1='15'%20x2='12'%20y2='3'/%3E%3C/svg%3E");
}

.external-link::before {
  --button-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6'/%3E%3Cpolyline%20points='15%203%2021%203%2021%209'/%3E%3Cline%20x1='10'%20y1='14'%20x2='21'%20y2='3'/%3E%3C/svg%3E");
}

.abstract-toggle::after {
  content: "▾";
  display: inline-block;
  margin-left: 0.32em;
  transform-origin: center;
  transition: transform 180ms ease;
}

.abstract-toggle.active::after,
.abstract-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.links a:hover,
.link-button:hover,
.link-button.active {
  background: var(--button-blue);
  color: var(--surface);
  text-decoration: none;
  opacity: 1;
}

.link-button.is-pending,
.link-button.is-pending:hover {
  border-color: color-mix(in srgb, var(--muted) 50%, var(--border));
  background: transparent;
  color: color-mix(in srgb, var(--muted) 78%, var(--bg));
  cursor: default;
}

.button:focus-visible,
.links a:focus-visible,
.link-button:focus-visible,
.social a:focus-visible,
.contact a:focus-visible,
.email-copy:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
}

.paper {
  margin: 0 0 46px;
}

.paper.compact {
  margin-bottom: 34px;
}

.content > section > .paper:last-child {
  margin-bottom: 0;
}

.paper-title {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
  text-wrap: balance;
}

.paper-meta a {
  color: inherit;
}

.paper-meta a:hover {
  color: var(--link-hover);
  opacity: 1;
}

.paper-meta,
.paper-venue {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 5px;
  color: var(--muted);
}

.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}

.abstract-panel {
  border-left: 2px solid var(--link);
  margin: 13px 0 0;
  padding: 2px 0 2px 18px;
}

.presentation-panel p {
  color: var(--muted);
}

.presentation-list {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.presentation-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  margin-bottom: 6px;
}

.presentation-row:last-child {
  margin-bottom: 0;
}

.presentation-row dt,
.presentation-row dd {
  margin: 0;
}

.presentation-row dt {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.abstract-panel p {
  font-size: 17px;
  line-height: 1.68;
  margin: 0;
  max-width: 68ch;
}

.abstract-panel:not(.presentation-panel) p {
  max-width: 68ch;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
}

.coverage-panel {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coverage-card {
  width: min(100%, 360px);
  border: 1.5px solid var(--button-blue);
  border-radius: 4px;
  display: block;
  overflow: hidden;
  background: var(--surface);
  line-height: 0;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.coverage-card:hover {
  background: var(--link-light);
  border-color: var(--link-hover);
  text-decoration: none;
}

.coverage-card:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
}

.coverage-card img {
  width: 100%;
  height: auto;
  display: block;
}

.coverage-card picture {
  display: block;
}

.coverage-slider {
  cursor: grab;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  padding: 1px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-color: color-mix(in srgb, var(--link) 42%, var(--border)) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.coverage-slider.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.coverage-slider:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
}

.coverage-slider .coverage-card {
  border-color: color-mix(in srgb, var(--button-blue) 44%, var(--border));
  flex: 0 0 clamp(226px, 34vw, 292px);
  scroll-snap-align: start;
  width: auto;
}

.coverage-slider .coverage-card img {
  height: 142px;
  object-fit: cover;
  object-position: top center;
}

.coverage-card span {
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, var(--bg));
  color: var(--muted);
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 9px 10px 8px;
  text-transform: uppercase;
}

.site-footer {
  color: var(--muted);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 76px auto 96px;
  text-align: center;
  width: min(1200px, calc(100% - 72px));
}

[hidden] {
  display: none !important;
}

.abstract-panel:not([hidden]),
.coverage-panel:not([hidden]) {
  animation: panel-reveal 180ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes top-divider-line {
  to {
    opacity: 0.62;
    transform: scaleX(1);
  }
}

@keyframes top-divider-mark {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  ::selection {
    background: #d7e6f4;
  }

  .section-nav .nav-separator,
  h2 .section-separator,
  .email-copy,
  .social a {
    color: var(--muted);
  }

  .section-nav a > span:first-child {
    color: var(--section-accent);
  }

  .top-divider-line {
    background: var(--divider-line);
  }

  .coverage-card {
    border: 1px solid var(--border);
  }

  .coverage-card span {
    border-top: 1px solid var(--border);
  }

  .email-copy:hover,
  .button {
    background: var(--link-light);
  }

  .links a,
  .link-button {
    border-color: var(--button-blue);
    background: transparent;
  }

  .links a:hover,
  .link-button:hover,
  .link-button.active {
    background: var(--button-blue);
    color: var(--surface);
  }

  .link-button.is-pending,
  .link-button.is-pending:hover {
    border-color: var(--border);
    background: transparent;
    color: var(--muted);
  }

  .paper-venue,
  p {
    color: var(--text);
  }

  .theme-toggle:hover,
  .theme-toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(199, 142, 78, 0.58);
  }
}

.theme-toggle {
  position: fixed;
  z-index: 10;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 2px transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--theme-ring);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-ring) 58%, transparent);
  outline: none;
}

.theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

/* Keep the research column comfortably readable before switching to one column. */
@media (max-width: 900px) {
  .section-nav {
    width: min(100% - 36px, 700px);
    margin-top: 20px;
    padding: 0 46px;
    justify-content: center;
  }

  .top-divider {
    width: min(310px, calc(100% - 86px));
    margin-top: 14px;
  }

  .site {
    --sidebar-width: 240px;
    width: min(100% - 36px, 700px);
    margin-top: 26px;
    display: block;
  }

  .sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 52px;
  }

  .sidebar h1 {
    font-size: 31px;
    margin-bottom: 20px;
  }

  .portrait-frame {
    margin-bottom: 18px;
  }

  .theme-toggle {
    position: absolute;
    top: 12px;
    right: 14px;
  }

  .paper-meta,
  .paper-venue {
    font-size: 14.5px;
  }

  .abstract-panel p {
    font-size: 17px;
  }

  p {
    font-size: 18px;
  }

  .presentation-list {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .section-nav {
    width: min(100% - 28px, 700px);
    padding-right: 40px;
    padding-left: 40px;
    gap: 6px 14px;
    font-size: 12px;
  }

  .top-divider {
    width: min(250px, calc(100% - 70px));
    gap: 9px;
  }

  .site {
    width: min(100% - 28px, 700px);
    margin-top: 22px;
  }

  .sidebar {
    margin-bottom: 46px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }

  h2 {
    letter-spacing: 0.13em;
    margin-bottom: 25px;
  }

  h2::after {
    margin-left: 10px;
    margin-right: 8px;
  }

  .content > section {
    margin-bottom: 52px;
  }

  .content > section.short-section {
    margin-bottom: 52px;
  }

  .button {
    min-height: 33px;
    padding: 6px 12px;
  }

  .links a,
  .link-button {
    min-height: 30px;
    padding: 5px 10px;
  }

  .abstract-panel {
    padding-left: 14px;
  }

  .presentation-row {
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 10px;
  }

  .coverage-slider .coverage-card {
    flex-basis: min(82vw, 270px);
  }

}

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

  body,
  a,
  .button,
  .email-copy,
  .link-button,
  .theme-toggle {
    transition: none;
  }

  .abstract-panel:not([hidden]),
  .coverage-panel:not([hidden]),
  .top-divider-line,
  .top-divider-mark {
    animation: none;
  }

  .top-divider-line {
    opacity: 0.62;
    transform: scaleX(1);
  }

  .top-divider-mark {
    opacity: 1;
    transform: scale(1);
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .section-nav,
  .top-divider,
  .theme-toggle,
  .to-top,
  .social,
  .email-copy,
  .coverage-panel,
  .links button,
  .link-button.is-pending {
    display: none !important;
  }

  .site {
    display: block;
    width: auto;
    margin: 0;
  }

  .sidebar {
    position: static;
    margin-bottom: 28px;
  }

  .sidebar h1,
  .affiliation,
  .contact {
    width: auto;
    text-align: left;
  }

  .portrait {
    width: 120px;
    margin-bottom: 12px;
  }

  .content {
    max-width: none;
  }

  .content > section {
    break-inside: avoid;
    margin-bottom: 34px;
  }

  .abstract-panel[hidden] {
    display: block !important;
  }

  .abstract-panel {
    border-left-color: #777;
  }

  .abstract-panel p {
    max-width: none;
  }

  .content a[href^="http"]:not(.coverage-card)::after {
    content: " (" attr(href) ")";
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    font-weight: 400;
    overflow-wrap: anywhere;
  }
}
