:root {
  --ink: #000000;
  --mute: #8d8d8d;
  --line: #ececec;
  --bg: #ffffff;
  --site-width: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  color: #000000;
  background: var(--bg);
}

img, video {
  max-width: 100%;
  height: auto;
}

.boot-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.boot-loader-name {
  margin: 0 0 1.05rem;
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.boot-loader-track {
  width: 8rem;
  height: 1px;
  background: #ececec;
  overflow: hidden;
}
.boot-loader-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #000;
  transition: width 0.4s ease;
}

.site-shell {
  min-height: 100vh;
  width: 100%;
  min-width: 0;
}
.site-main,
.site-profile,
.site-article {
  min-width: 0;
}
@media (max-width: 1023px) {
  .site-shell {
    display: flex;
    flex-direction: column;
  }
  .site-shell > .site-main {
    display: contents;
  }
  .site-profile {
    display: none;
    order: 2;
  }
  body.on-about .site-profile {
    display: block;
  }
  .site-nav { order: 1; }
  .site-article { order: 3; }
  .highlights-rail { order: 4; }
  #site-footer { order: 5; }
}
@media (min-width: 1024px) {
  .site-shell {
    display: grid;
    grid-template-columns: 20rem minmax(0, 1fr);
    max-width: var(--site-width);
    margin-left: auto;
    margin-right: auto;
  }
  .site-profile {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
  }
  .site-profile-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .site-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
  }
  body.on-about .highlights-rail {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1280px) {
  body.on-about .site-shell {
    grid-template-columns: 20rem minmax(0, 1fr) 20rem;
  }
  body.on-about.highlights-min .site-shell {
    grid-template-columns: 20rem minmax(0, 1fr) 2.65rem;
  }
  body.on-about .site-profile {
    grid-row: 1 / -1;
  }
  body.on-about .highlights-rail {
    grid-column: 3;
    grid-row: 1 / -1;
  }
}
body.site-capped {
  background: #f3f3f3;
}
body.site-capped .site-shell {
  background: #fff;
}
@media (min-width: 1024px) {
  body.site-capped .site-shell {
    box-shadow: 0 0 0 1px var(--line);
  }
}

.page { display: none; }
.page.is-active { display: block; }

.nav-link {
  position: relative;
  color: #000000;
  flex-shrink: 0;
  white-space: nowrap;
  padding-bottom: 8px;
}
.nav-link.is-active {
  color: var(--ink);
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}
.nav-link.is-hidden-page { display: none; }

.site-nav {
  background: #fff;
}
@media (max-width: 1023px) {
  nav.site-nav {
    position: static;
    z-index: auto;
    border-bottom: 0;
  }
}
.site-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 37;
  min-height: 3.15rem;
  padding: 0.55rem max(1.15rem, env(safe-area-inset-right)) 0.55rem max(1.15rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.nav-current {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  background: #fff;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: #000;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: #000;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars {
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
body.nav-open .nav-toggle-bars {
  background: transparent;
}
body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
.nav-drawer-label {
  display: block;
  margin: 0 0 0.35rem;
  color: #8d8d8d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(0, 0, 0, 0.42);
}
.site-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 36;
  width: min(18.5rem, 84vw);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(4.1rem + env(safe-area-inset-top)) 1.35rem max(1.5rem, env(safe-area-inset-bottom)) max(1.35rem, env(safe-area-inset-left));
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
  font-size: 1rem;
  transform: translateX(-110%);
  transition: transform 0.22s ease;
}
body.nav-open {
  overflow: hidden;
}
body.nav-open .nav-drawer-backdrop {
  display: block;
}
body.nav-open .site-nav-inner {
  transform: translateX(0);
}
.site-nav .nav-link {
  display: block;
  width: 100%;
  padding: 0.78rem 0.15rem 0.78rem 0.7rem;
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-link.is-hidden-page {
  display: none;
}
.site-nav .nav-link.is-active {
  font-weight: 700;
}
.site-nav .nav-link.is-active::after {
  top: 0.7rem;
  bottom: 0.7rem;
  left: 0;
  right: auto;
  width: 2px;
  height: auto;
}
@media (min-width: 1024px) {
  body.nav-open {
    overflow: visible;
  }
  .site-nav-bar,
  .nav-drawer-label,
  .nav-drawer-backdrop {
    display: none;
  }
  .site-nav-inner {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    width: auto;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 3.5rem 0.4rem;
    background: transparent;
    box-shadow: none;
    font-size: 0.95rem;
    transform: none;
    transition: none;
  }
  .site-nav-inner::-webkit-scrollbar {
    display: none;
  }
  .site-nav .nav-link {
    display: inline;
    width: auto;
    padding: 0 0 8px;
    border-bottom: 0;
  }
  .site-nav .nav-link.is-hidden-page {
    display: none;
  }
  .site-nav .nav-link.is-active {
    font-weight: 400;
  }
  .site-nav .nav-link.is-active::after {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }
}
@media (min-width: 1280px) {
  .site-nav-inner {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 0.15rem;
    column-gap: 1.15rem;
  }
}

.pageviews-widget {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
}
@media (min-width: 1024px) {
  .pageviews-widget {
    margin-top: auto;
    padding-bottom: 0.25rem;
  }
}
.pageviews-label {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pageviews-row {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}
.pageviews-spark {
  display: block;
  flex-shrink: 0;
  width: 5.5rem;
  height: 2.25rem;
}
.pageviews-spark path.pageviews-fill {
  fill: #cfcfcf;
}
.pageviews-spark path.pageviews-line {
  fill: none;
  stroke: #8d8d8d;
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
#pageviews-count {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

.portrait {
  filter: grayscale(1) contrast(1.05);
  border-radius: 0.75rem;
}

.prose-body p + p { margin-top: 1.05rem; }
.prose-body { font-size: 1.02rem; line-height: 1.75; font-weight: 400; color: #000000; }
.prose-body b, .prose-body strong { font-weight: 700; color: var(--ink); }
.prose-body i, .prose-body em { font-style: italic; }
.prose-body u { text-decoration: underline; text-underline-offset: 2px; }
.prose-body s { text-decoration: line-through; }
.prose-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.5rem;
}
.prose-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.prose-body ul, .prose-body ol { margin: 0.8rem 0 0.8rem 1.2rem; }
.prose-body li + li { margin-top: 0.25rem; }
.prose-body h2, .prose-body h3 { color: var(--ink); font-weight: 650; margin: 1.1rem 0 0.4rem; }
.prose-body h2 { font-size: 1.2rem; line-height: 1.35; }
.prose-body h3 { font-size: 1.08rem; }

#about-details.prose-body {
  font-size: 0.9rem;
  line-height: 1.62;
}
#about-details.prose-body p + p {
  margin-top: 0.8rem;
}

.about-announce {
  margin: 1.75rem 0 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 0.15rem;
  background: #fafafa;
}
.about-announce-kicker {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about-announce-body {
  color: #000000;
  font-size: 0.92rem;
  line-height: 1.55;
}
.about-announce-body p {
  margin: 0;
}
.about-announce-body p + p {
  margin-top: 0.4rem;
}
.about-announce-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-announce-body b,
.about-announce-body strong {
  font-weight: 700;
}

.about-belief {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}
.about-belief-kicker {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about-belief-body {
  position: relative;
  color: #000000;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.65;
  padding: 0.15rem 1.65rem 0.15rem 1.85rem;
}
.about-belief-body::before,
.about-belief-body::after {
  position: absolute;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.about-belief-body::before {
  content: "“";
  top: -0.12rem;
  left: 0;
  font-size: 2.35rem;
}
.about-belief-body::after {
  content: "”";
  right: 0;
  bottom: -0.55rem;
  font-size: 2.35rem;
}
.about-belief-body p {
  margin: 0;
  display: inline;
}

.editor-surface:empty:before {
  content: attr(data-placeholder);
  color: #b0b0b0;
}
.editor-surface:focus { box-shadow: 0 0 0 1px #171717; }
.editor-surface img { max-width: 100%; height: auto; border-radius: 0.4rem; }
.highlight-item { min-height: 3.25rem; outline: none; }
.highlight-item:empty:before {
  content: attr(data-placeholder);
  color: #b0b0b0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input, textarea {
  outline: none;
}
input:focus, textarea:focus {
  box-shadow: 0 0 0 1px #171717;
}

.admin-table td, .admin-table th {
  border-bottom: 1px solid var(--line);
}

.highlights-rail {
  display: none;
}
body.on-about .highlights-rail {
  display: block;
  padding: 0 1.5rem 2.5rem;
}
@media (min-width: 640px) {
  body.on-about .highlights-rail {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
@media (min-width: 1024px) {
  body.on-about .highlights-rail {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

.highlights-rail-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.highlights-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
}
.highlights-rail h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.highlights-toggle {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  background: #fff;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}
.highlights-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}
body.highlights-min .highlights-scroll {
  display: none;
}
body.highlights-min .highlights-rail-head {
  margin-bottom: 0;
}

.highlights-scroll {
  max-height: 22rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
}
.highlights-scroll::-webkit-scrollbar {
  width: 6px;
}
.highlights-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.highlights-scroll::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 999px;
}
.highlights-scroll.is-autoscrolling {
  scrollbar-width: none;
}
.highlights-scroll.is-autoscrolling::-webkit-scrollbar {
  display: none;
  width: 0;
}

#about-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-card {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  background: #fafafa;
}
.highlight-card + .highlight-card {
  margin-top: 0.28rem;
}
.highlight-date {
  display: inline;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.highlight-date.is-empty {
  color: #a3a3a3;
}
.highlight-body {
  display: inline;
  color: #000000;
  font-size: 0.72rem;
  line-height: 1.38;
}
.highlight-body p {
  display: inline;
  margin: 0;
}
.highlight-body p + p {
  margin-top: 0.35rem;
}
.highlight-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.highlight-body b,
.highlight-body strong {
  font-weight: 700;
  color: var(--ink);
}
.highlight-body i,
.highlight-body em {
  font-style: italic;
}

@media (min-width: 1280px) {
  .highlights-rail,
  body.on-about .highlights-rail {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    right: auto;
    bottom: auto;
    width: 20rem;
    height: 100vh;
    flex-shrink: 0;
    padding: 1.75rem 1.15rem 1.25rem;
    border-left: 1px solid var(--line);
    background: #fff;
  }
  .highlights-rail-inner {
    flex: 1;
    min-height: 0;
  }
  .highlights-scroll {
    flex: 1;
    max-height: none;
  }
  body.highlights-min .highlights-rail,
  body.on-about.highlights-min .highlights-rail {
    width: 2.65rem;
    padding: 0.85rem 0.3rem 1rem;
  }
  body.highlights-min .highlights-rail-head {
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.75rem;
  }
  body.highlights-min .highlights-rail h2 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.18em;
  }
}

.research-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .research-card {
    flex-direction: row;
    align-items: flex-start;
  }
}
.research-stack {
  position: relative;
  flex-shrink: 0;
  width: 9.5rem;
  height: 7.1rem;
}
.research-stack img {
  position: absolute;
  width: 8.15rem;
  height: 5.85rem;
  max-width: none;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fafafa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.research-stack.count-1 img[src$=".svg"] {
  object-fit: contain;
  border: none;
  box-shadow: none;
  background: transparent;
}
.research-photo-thumb {
  position: relative;
  width: 5rem;
  height: 3.7rem;
}
.research-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fafafa;
}
.research-photo-thumb img[src$=".svg"] {
  object-fit: contain;
  background: #fff;
}
.research-photo-thumb .remove-photo {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #000;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
.research-stack.count-1 img {
  left: 0;
  top: 0.25rem;
  width: 9rem;
  height: 6.4rem;
  transform: none;
}
.research-stack.count-2 img:nth-child(1),
.research-stack.count-3 img:nth-child(1),
.research-stack.count-4 img:nth-child(1) {
  left: 0;
  top: 0.55rem;
  transform: rotate(-6deg);
  z-index: 3;
}
.research-stack.count-2 img:nth-child(2),
.research-stack.count-3 img:nth-child(2),
.research-stack.count-4 img:nth-child(2) {
  left: 1.15rem;
  top: 0.1rem;
  transform: rotate(5deg);
  z-index: 2;
}
.research-stack.count-3 img:nth-child(3),
.research-stack.count-4 img:nth-child(3) {
  left: 0.45rem;
  top: 1.05rem;
  transform: rotate(-2deg);
  z-index: 1;
}
.research-stack.count-4 img:nth-child(4) {
  left: 1.55rem;
  top: 0.85rem;
  transform: rotate(8deg);
  z-index: 0;
}
.research-stack img:nth-child(n+5) { display: none; }
.research-copy { min-width: 0; flex: 1; }
.research-copy h3 {
  margin: 0;
  color: #000;
  font-size: 1.05rem;
  font-weight: 600;
}
.research-copy .research-body {
  margin-top: 0.5rem;
  line-height: 1.75;
}
.research-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.research-links a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pub-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.pub-item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: start;
  line-height: 1.75;
}
.pub-item + .pub-item { margin-top: 1rem; }
.pub-tag {
  font-weight: 600;
  color: #000;
}
.pub-cite {
  min-width: 0;
}

body.overlay-open {
  overflow: hidden;
}

.file-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.file-overlay.is-open {
  display: flex;
}
.file-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}
.file-overlay-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(68rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border-radius: 0.2rem;
  background: #111;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.file-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.file-overlay-title {
  margin: 0;
  min-width: 0;
  color: #000;
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-overlay-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
}
.file-overlay-actions a,
.file-overlay-actions button {
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: #fff;
  color: #000;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  text-decoration: none;
}
.file-overlay-actions a:hover,
.file-overlay-actions button:hover {
  border-color: #000;
}
.file-overlay-body {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
}
.file-overlay-body img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 5.75rem);
  object-fit: contain;
}
.file-overlay.is-pdf .file-overlay-body iframe {
  width: 100%;
  height: calc(100vh - 5.75rem);
  border: 0;
  background: #fff;
}

@media (max-width: 1023px) {
  #profile-meta,
  #profile-lines,
  .prose-body a,
  #talks-list,
  #publications-list,
  #experience-list,
  #achievements-list,
  #tech-list,
  #personal-list,
  #education-list {
    overflow-wrap: break-word;
  }
  .site-profile-inner {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  .site-article {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  #site-footer {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  .about-belief-body {
    font-size: 0.98rem;
    padding: 0.15rem 1.6rem 0.35rem 1.55rem;
  }
  .about-belief-body::before,
  .about-belief-body::after {
    font-size: 1.75rem;
  }
  .about-belief-body::after {
    bottom: -0.4rem;
  }
  body.on-about .highlights-rail {
    padding: 0 max(1.25rem, env(safe-area-inset-right)) 2rem max(1.25rem, env(safe-area-inset-left));
  }
  .highlights-scroll {
    max-height: 16rem;
  }
  .research-card {
    flex-direction: column;
  }
  .research-stack {
    width: 8.5rem;
    height: 6.4rem;
  }
  .pub-item {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    column-gap: 0.55rem;
  }
  .file-overlay {
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  }
  .file-overlay-panel {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }
  .file-overlay-body img,
  .file-overlay.is-pdf .file-overlay-body iframe {
    max-height: calc(100dvh - 5.25rem);
    height: calc(100dvh - 5.25rem);
  }
  .file-overlay-body img {
    height: auto;
  }
}

@media (max-width: 639px) {
  .portrait {
    height: 8.5rem;
    width: 8.5rem;
  }
  #profile-name {
    font-size: 1.45rem;
  }
  .pageviews-label {
    font-size: 0.95rem;
  }
  #pageviews-count {
    font-size: 1.3rem;
  }
  .prose-body {
    font-size: 0.98rem;
  }
  #about-details.prose-body {
    font-size: 0.88rem;
  }
}
