@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2-variations");
}

:root {
  --bg: #0a0a0a;
  --panel: #0d0e0d;
  --panel-hover: #101110;
  --text: #eeeeeb;
  --muted: #96968d;
  --faint: #62645d;
  --line: #1c1e1b;
  --line-strong: #292b27;
  --green: #18b783;
  --amber: #e9b72e;
  --red: #df6973;
  --sans: "Geist";
  --mono: "Geist Mono";
  --shell: 528px;
  --header: 31px;
}

[data-theme="light"] {
  --bg: #f3f1ea;
  --panel: #ece9e0;
  --panel-hover: #e8e4da;
  --text: #171814;
  --muted: #5f6158;
  --faint: #7a7d72;
  --line: #d9d5ca;
  --line-strong: #c4c0b5;
  --green: #087f5b;
  --amber: #9f6d00;
  --red: #b73b4f;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  flex-direction: column;
  font-size: 10px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

@media screen and (min-width: 900px) {
  body {
    zoom: 1.6;
  }

  @supports (zoom: 1.6) {
    body {
      min-height: 62.5vh;
      min-height: 62.5dvh;
    }
  }
}

::selection {
  background: #234f3f;
  color: var(--text);
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.shell--reading {
  max-width: var(--shell);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  transform: translateY(-200%);
  border-radius: 3px;
  background: var(--text);
  color: var(--bg);
  font-size: 9px;
  font-weight: 650;
}

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

.site-header {
  height: var(--header);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 32px), var(--shell));
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  transform: translateY(1.5px);
}

.wordmark {
  font-size: 9px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.mobile-menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 7.5px;
}

.site-nav a {
  transition: color 130ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-rule {
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.theme-toggle {
  display: grid;
  width: 16px;
  height: 16px;
  padding: 2px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.home-page .site-footer {
  margin-top: 42px;
}

.blog-page .site-footer {
  margin-top: 40px;
}

.about-page .site-footer {
  margin-top: 38px;
}

.footer-inner {
  display: flex;
  width: min(calc(100% - 32px), var(--shell));
  min-height: 64px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-wordmark {
  width: fit-content;
  font-size: 8px;
  font-weight: 660;
  letter-spacing: -0.025em;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
}

.footer-links a {
  transition: color 130ms ease;
}

.footer-links a + a::before {
  margin: 0 8px;
  color: var(--line-strong);
  content: "/";
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-note {
  display: grid;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.6;
  text-align: right;
}

.eyebrow,
.hero-location,
.article-kicker,
.article-meta,
.back-link {
  font-family: var(--mono);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--faint);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 24px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 620;
  cursor: pointer;
  transition: transform 130ms ease, background 130ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--text);
  color: var(--bg);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--faint);
  background: var(--panel-hover);
}

.text-link {
  position: relative;
  color: var(--muted);
  font-size: 7.5px;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  background: currentColor;
  transform-origin: left;
  transition: transform 130ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.hero-actions {
  display: flex;
  margin-top: 16px;
  align-items: center;
  gap: 14px;
}

/* Landing */

.home-hero {
  padding-top: 58px;
}

.hero-copy {
  max-width: 360px;
}

.home-hero h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.hero-intro {
  max-width: 330px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.hero-location {
  margin: 5px 0 0;
  color: var(--faint);
  font-size: 7px;
}

.home-stack {
  margin-top: 22px;
}

.profile-stack__label {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.02em;
}

.profile-stack__links {
  display: flex;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.profile-stack__links a {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  transition:
    border-color 130ms ease,
    background 130ms ease,
    color 130ms ease,
    transform 130ms ease;
}

.profile-stack__links a:hover,
.profile-stack__links a:focus-visible {
  border-color: var(--line-strong);
  background: var(--panel-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.profile-stack__icon {
  display: block;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--profile-icon) center / contain no-repeat;
  mask: var(--profile-icon) center / contain no-repeat;
}

.profile-stack__links a::after {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 7px);
  left: 50%;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  content: attr(data-tooltip);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 130ms ease, transform 130ms ease;
  white-space: nowrap;
}

.profile-stack__links a:hover::after,
.profile-stack__links a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.latest {
  margin-top: 50px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 580;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.section-heading > p:last-child:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

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

.latest-list li {
  border-bottom: 0.5px solid var(--line);
}

.latest-list a {
  display: flex;
  min-height: 35.5px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.latest-title {
  font-size: 8.5px;
  font-weight: 560;
  letter-spacing: -0.012em;
  transition: color 130ms ease;
}

.latest-list a:hover .latest-title,
.latest-list a:focus-visible .latest-title {
  color: var(--green);
}

.latest-meta {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
}

.arrow-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 6.5px;
}

/* About */

.about-profile {
  display: grid;
  padding-top: 40px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(138px, 0.58fr);
  gap: 48px;
}

.about-profile-copy {
  min-width: 0;
}

.about-profile h1 {
  max-width: 370px;
  margin: 7px 0 0;
  font-size: 18px;
  font-weight: 580;
  letter-spacing: -0.04em;
  line-height: 1.22;
  text-wrap: balance;
}

.about-lede {
  max-width: 350px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.about-location {
  margin: 9px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
}

.about-actions {
  display: flex;
  margin-top: 13px;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.about-portrait {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 0.5px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  filter: saturate(0.82) contrast(1.03);
  object-fit: cover;
  object-position: center 30%;
  transition: filter 220ms ease, transform 350ms ease;
}

.about-portrait:hover img {
  filter: saturate(1) contrast(1);
  transform: scale(1.015);
}

.cv {
  margin-top: 64px;
}

.cv-section + .cv-section {
  margin-top: 64px;
}

#projects + .cv-section {
  margin-top: 60px;
}

.experience-list {
  margin-top: 19px;
}

.experience-item {
  min-height: 41px;
}

.experience-item > summary {
  display: grid;
  min-height: 41px;
  align-items: start;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 13px;
  cursor: pointer;
  list-style: none;
}

.experience-item > summary::-webkit-details-marker {
  display: none;
}

.experience-item[data-pinned-open] > summary {
  cursor: default;
}

.experience-logo {
  display: grid;
  width: 24px;
  height: 24px;
  aspect-ratio: 1;
  padding: 2px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f5f5f2;
}

.experience-logo--1 {
  width: 24px;
  padding: 3px;
  background: #111;
}

.experience-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: contain;
}

.experience-logo--3 {
  background: #111;
}

.experience-logo--5 {
  background: #0f1110;
}

.experience-main h3 {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: -0.018em;
  transition: color 130ms ease;
}

.experience-role {
  margin: -1px 0 0;
  color: var(--muted);
  font-size: 7px;
}

.experience-meta {
  display: grid;
  padding-top: 3px;
  justify-items: end;
  gap: 1px;
}

.experience-period,
.experience-toggle-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
  white-space: nowrap;
}

.experience-toggle-label {
  color: var(--green);
  font-size: 5.5px;
  transition: color 130ms ease;
}

.experience-item[open] .experience-toggle-label {
  display: none;
}

.experience-item > summary:hover .experience-main h3,
.experience-item > summary:focus-visible .experience-main h3 {
  color: var(--green);
}

.experience-item > summary:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 3px;
}

.experience-copy {
  max-width: 430px;
  padding: 4px 20px 9px 38px;
}

.experience-location {
  margin: 0 0 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
}

.experience-summary {
  margin: 0;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.55;
}

.experience-copy ul {
  padding: 0;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.55;
  list-style: none;
}

.experience-copy li {
  position: relative;
  padding-left: 11px;
}

.experience-copy li::before {
  position: absolute;
  left: 0;
  color: var(--amber);
  content: "＊";
}

.experience-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
  transition: color 130ms ease, text-decoration-color 130ms ease;
}

.experience-link:hover,
.experience-link:focus-visible {
  color: var(--green);
  text-decoration-color: currentColor;
}

.work-list {
  display: grid;
  margin-top: 18px;
  gap: 7px;
}

.work-list article {
  display: grid;
  min-height: 45px;
  padding: 7px 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 24px 130px 1fr 65px;
  gap: 10px;
  transition: border-color 130ms ease, background 130ms ease;
}

.work-list article:hover {
  border-color: var(--line-strong);
  background: var(--panel);
}

.project-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
}

.project-name h3 {
  margin: 0;
  font-size: 8px;
  font-weight: 600;
}

.project-name > span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
}

.work-list article > p {
  margin: 0;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.4;
}

.work-rule {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
}

.work-rule i {
  position: absolute;
  right: 0;
  width: 34%;
  height: 2px;
  background: var(--amber);
}

.skill-groups {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 27px;
}

.skill-group--wide {
  grid-column: 1 / -1;
}

.skill-group h3 {
  margin: 0 0 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-group ul {
  display: flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.skill-group li {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  transition:
    border-color 130ms ease,
    background 130ms ease,
    color 130ms ease,
    transform 130ms ease;
}

.skill-group li:hover,
.skill-group li:focus-visible {
  border-color: var(--line-strong);
  background: var(--panel-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.skill-group li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.skill-item--monochrome img {
  filter: invert(1);
}

[data-theme="light"] .skill-item--monochrome img {
  filter: none;
}

.skill-group li::after {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 7px);
  left: 50%;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  content: attr(data-tooltip);
  font-size: 6px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 130ms ease, transform 130ms ease;
  white-space: nowrap;
}

.skill-group li:hover::after,
.skill-group li:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.core-skills {
  margin-top: 18px;
}

.core-skills h3 {
  margin: 0 0 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.core-skills ul {
  display: flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.core-skills li {
  padding: 5px 7px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
}

.off-screen {
  margin-top: 68px !important;
}

.off-screen .section-heading {
  width: min(calc(100vw - 32px), var(--shell));
}

.off-screen h2 {
  font-size: 17px;
}

.polaroid-strip {
  display: flex;
  width: 100vw;
  margin-top: 24px;
  margin-left: calc(50% - 50vw);
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  padding: 2px 0;
}

.polaroid {
  width: 110px;
  min-width: 110px;
  height: 105px;
  padding: 5px 5px 12px;
  margin: 0;
  transform: rotate(-1.5deg);
  border-radius: 2px;
  background: #f1f2ef;
  box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
}

.polaroid:nth-child(even) {
  transform: rotate(1.2deg);
}

.polaroid-art {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 79px;
  background: #d7e5f4;
}

.polaroid-art span,
.polaroid-art i,
.polaroid-art b {
  position: absolute;
  display: block;
}

.polaroid-art span {
  right: 14px;
  bottom: 19px;
  width: 21px;
  height: 32px;
  transform: rotate(42deg);
  background: #5d6a7c;
}

.polaroid-art i {
  bottom: 0;
  left: 5px;
  width: 48px;
  height: 42px;
  transform: rotate(48deg);
  background: #8292aa;
}

.polaroid-art b {
  top: 10px;
  right: 14px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff0a0;
}

.polaroid--2 .polaroid-art {
  background: #ffd6a0;
}

.polaroid--2 .polaroid-art i {
  width: 100%;
  height: 14px;
  transform: none;
  background: #54b8db;
}

.polaroid--2 .polaroid-art span {
  right: auto;
  bottom: 13px;
  left: 24px;
  width: 20px;
  height: 20px;
  transform: none;
  border-radius: 50%;
  background: #ff8b38;
}

.polaroid--3 .polaroid-art {
  background: #c9d1ff;
}

.polaroid--3 .polaroid-art i {
  bottom: 0;
  left: 22px;
  width: 10px;
  height: 50px;
  transform: none;
  background: #596276;
  box-shadow: 20px 12px 0 #596276, 40px 1px 0 #596276;
}

.polaroid--4 .polaroid-art {
  background: #ffc9c7;
}

.polaroid--4 .polaroid-art i {
  bottom: 4px;
  left: 26px;
  width: 50px;
  height: 28px;
  transform: none;
  background: #ea6966;
}

.polaroid--5 .polaroid-art {
  background: #baf0ca;
}

.polaroid--5 .polaroid-art i {
  width: 100%;
  height: 18px;
  transform: none;
  background: #4fd8c4;
}

.polaroid--6 .polaroid-art {
  background: #bcd8f8;
}

.polaroid--7 .polaroid-art {
  background: #ffd9e6;
}

.polaroid figcaption {
  margin-top: 5px;
  color: #33322f;
  font-family: var(--sans);
  font-size: 6.5px;
  font-style: italic;
  text-align: center;
}

/* CV */

.experience-list {
  position: relative;
}

.experience-list::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 11.75px;
  width: 0.5px;
  content: "";
  background: var(--line-strong);
}

.experience-item {
  position: relative;
  min-height: 45px;
  padding-bottom: 12px;
  align-items: start;
}

.experience-item:last-child {
  padding-bottom: 0;
}

.experience-logo {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}

.research-grid,
.credentials-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.research-grid {
  grid-template-columns: 1fr;
  gap: 21px;
}

.research-block h3,
.credential-block > h3,
.language-block > h3 {
  margin: 0 0 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cve-list,
.credential-list,
.paper-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cve-list {
  display: grid;
  padding: 7px 0 8px;
  border-top: 0.5px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.cve-block,
.paper-block {
  border-bottom: 0.5px solid var(--line);
}

.research-list-heading {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-list-heading h3 {
  margin: 0;
  font: inherit;
}

.research-list-heading > span {
  display: flex;
  align-items: center;
  color: var(--faint);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.cve-list li {
  min-width: 0;
}

.cve-list a {
  position: relative;
  display: flex;
  min-height: 30px;
  padding: 0 8px;
  align-items: center;
  justify-content: space-between;
  border: 0.5px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--muted);
  gap: 5px;
  transition: border-color 130ms ease, background 130ms ease;
}

.cve-list a::after {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 7px);
  left: 50%;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  content: attr(data-tooltip);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 130ms ease, transform 130ms ease;
  white-space: nowrap;
}

.cve-list a:hover::after,
.cve-list a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cve-label,
.cve-id,
.cve-status,
.cve-arrow {
  font-family: var(--mono);
}

.cve-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.cve-id {
  color: var(--text);
  font-size: 6.5px;
  font-weight: 560;
  transition: color 130ms ease;
}

.cve-status {
  padding: 1px 3px;
  border: 0.5px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: 3px;
  color: var(--amber);
  font-size: 4.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.cve-arrow {
  color: var(--faint);
  font-size: 6px;
  transition: color 130ms ease, transform 130ms ease;
}

.cve-list a:hover .cve-id,
.cve-list a:focus-visible .cve-id {
  color: var(--green);
}

.cve-list a:hover,
.cve-list a:focus-visible {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.cve-list a:hover .cve-arrow,
.cve-list a:focus-visible .cve-arrow {
  color: var(--text);
  transform: translate(1px, -1px);
}

.paper-list {
  border-top: 0.5px solid var(--line);
}

.paper-list a {
  display: grid;
  padding: 11px 0 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
}

.paper-title {
  max-width: 390px;
  font-size: 9px;
  font-weight: 580;
  letter-spacing: -0.018em;
  line-height: 1.35;
  transition: color 130ms ease;
}

.paper-meta,
.paper-authors,
.paper-link {
  font-family: var(--mono);
}

.paper-meta {
  color: var(--faint);
  font-size: 6px;
  text-align: right;
}

.paper-authors {
  max-width: 430px;
  color: var(--muted);
  font-size: 6px;
  line-height: 1.55;
}

.paper-link {
  align-self: end;
  color: var(--faint);
  font-size: 6px;
  text-align: right;
  transition: color 130ms ease;
}

.paper-list a:hover .paper-title,
.paper-list a:focus-visible .paper-title,
.paper-list a:hover .paper-link,
.paper-list a:focus-visible .paper-link {
  color: var(--green);
}

.credential-list {
  border-top: 0.5px solid var(--line);
}

.credential-list li {
  display: grid;
  min-height: 34px;
  align-items: center;
  border-bottom: 0.5px solid var(--line);
  color: var(--muted);
  font-size: 7px;
  grid-template-columns: 22px 1fr;
}

.credential-list li > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6px;
}

.education-list {
  border-top: 0.5px solid var(--line);
}

.education-list article {
  position: relative;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--line);
}

.education-list h4 {
  padding-right: 65px;
  margin: 0;
  font-size: 8px;
  font-weight: 580;
}

.education-list p {
  max-width: 180px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 7px;
}

.education-list article > span {
  position: absolute;
  top: 10px;
  right: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 5.5px;
}

.language-block {
  margin-top: 18px;
}

.language-list {
  display: grid;
  border-top: 0.5px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.language-list > div {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--line);
  gap: 12px;
}

.language-list span:first-child {
  color: var(--text);
  font-size: 8px;
  font-weight: 560;
}

.language-list span:last-child {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 5.5px;
  text-align: right;
}

.contact-section {
  padding: 24px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.contact-section .section-heading {
  max-width: 360px;
}

.contact-links {
  display: grid;
  margin-top: 16px;
  justify-items: start;
  gap: 11px;
}

.contact-link--text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  transition: color 130ms ease;
}

.contact-link--text:hover,
.contact-link--text:focus-visible {
  color: var(--text);
}

.contact-icon-links {
  display: flex;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.contact-link--icon {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition:
    border-color 130ms ease,
    background 130ms ease,
    color 130ms ease,
    transform 130ms ease;
}

.contact-link--icon:hover,
.contact-link--icon:focus-visible {
  border-color: var(--faint);
  background: var(--panel-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.contact-link--icon::after {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 7px);
  left: 50%;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  content: attr(data-tooltip);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 130ms ease, transform 130ms ease;
  white-space: nowrap;
}

.contact-link--icon:hover::after,
.contact-link--icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Blog index */

.blog-index {
  padding-top: 38px;
}

.blog-heading h1 {
  margin: 0;
  font-size: 20.5px;
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.blog-archive {
  margin-top: 24px;
}

.blog-year + .blog-year {
  margin-top: 30px;
}

.blog-year-title {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.blog-post-list {
  margin-top: 9px;
}

/* Article */

.article {
  padding-top: 38px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 6.5px;
  transition: color 130ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.article-kicker {
  display: flex;
  margin: 12px 0 0;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-subtitle {
  max-width: 470px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-wrap: pretty;
}

.article-tags {
  display: flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
}

.article-tags li + li::before {
  margin-right: 5px;
  color: var(--line-strong);
  content: "·";
}

.article-header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 590;
  letter-spacing: -0.052em;
  line-height: 1.07;
}

.article-meta {
  display: flex;
  margin-top: 12px;
  gap: 12px;
  color: var(--faint);
  font-size: 6.5px;
}

.prose {
  padding-top: 24px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.72;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > p:first-child {
  color: var(--text);
  font-size: 12px;
}

.prose h2,
.prose h3 {
  color: var(--text);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.prose h2 {
  margin: 32px 0 9px;
  font-size: 19px;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 14px;
}

.prose p {
  margin: 0 0 14px;
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--text);
  font-weight: 620;
}

.prose ul,
.prose ol {
  padding-left: 18px;
  margin: 0 0 20px;
}

.prose li {
  padding-left: 3px;
  margin: 4px 0;
}

.prose li::marker {
  color: var(--faint);
}

.prose blockquote {
  padding: 12px 14px;
  margin: 24px 0;
  border: 1px solid color-mix(in srgb, var(--amber) 55%, var(--line));
  border-left: 2px solid var(--amber);
  border-radius: 4px;
  background: color-mix(in srgb, var(--amber) 3%, transparent);
}

.prose blockquote p {
  margin: 0;
}

.prose table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 8px;
  line-height: 1.45;
}

.prose th,
.prose td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose :not(pre) > code {
  padding: 0.12em 0.3em;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82em;
}

.prose pre[class*="language-"],
.prose pre {
  position: relative;
  overflow: auto;
  padding: 34px 13px 13px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.65;
  tab-size: 2;
}

.prose pre::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 25px;
  border-bottom: 1px solid var(--line);
  content: "";
}

.prose pre code {
  display: block;
  min-width: max-content;
  font-family: inherit;
}

.code-language,
.copy-code {
  position: absolute;
  z-index: 1;
  top: 6px;
  font-family: var(--mono);
  font-size: 6px;
  line-height: 13px;
}

.code-language {
  left: 9px;
  color: var(--faint);
  text-transform: uppercase;
}

.copy-code {
  right: 6px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.copy-code:hover,
.copy-code:focus-visible {
  color: var(--text);
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6c746b;
}

.token.punctuation {
  color: #a7aaa2;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--red);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--amber);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #b7b99f;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: var(--green);
}

.token.function,
.token.class-name {
  color: #e5d07f;
}

.token.regex,
.token.important,
.token.variable {
  color: #d99b6a;
}

.article-footer {
  padding-top: 20px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.article-share > p {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-share ul {
  display: flex;
  padding: 0;
  margin: 10px 0 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.article-share__control {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 130ms ease,
    background 130ms ease,
    color 130ms ease,
    transform 130ms ease;
}

.article-share__control:hover,
.article-share__control:focus-visible,
.article-share__control.is-copied {
  border-color: var(--faint);
  background: var(--panel-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.article-share__control.is-copied {
  border-color: var(--green);
  color: var(--green);
}

.article-share__control.is-error {
  border-color: var(--red);
  color: var(--red);
}

.article-share__control:active {
  transform: translateY(0);
}

.article-share__icon {
  display: block;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: var(--share-icon) center / contain no-repeat;
  mask: var(--share-icon) center / contain no-repeat;
}

.article-share__control::after {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 7px);
  left: 50%;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  content: attr(data-tooltip);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 130ms ease, transform 130ms ease;
  white-space: nowrap;
}

.article-share__control:hover::after,
.article-share__control:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.article-footer-actions {
  display: flex;
  margin-top: 14px;
  align-items: center;
  gap: 15px;
}

.not-found {
  padding-top: 62px;
}

.not-found h1 {
  margin: 7px 0;
  font-size: 38px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.not-found > p:not(.eyebrow) {
  margin: 0 0 20px;
  color: var(--muted);
}

:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 899px) {
  :root {
    --header: 48px;
  }

  body {
    font-size: 12px;
  }

  .wordmark {
    font-size: 11px;
  }

  .site-nav {
    gap: 13px;
    font-size: 9px;
  }

  .nav-rule {
    display: none;
  }

  .home-hero {
    padding-top: 45px;
  }

  .hero-copy {
    max-width: none;
  }

  .home-hero h1 {
    max-width: none;
    font-size: clamp(22px, 6.8vw, 30px);
    line-height: 1.08;
  }

  .hero-intro {
    max-width: 345px;
    margin-top: 14px;
    font-size: 14px;
  }

  .hero-location {
    font-size: 8px;
  }

  .button {
    min-height: 38px;
    padding-inline: 18px;
    font-size: 9px;
  }

  .text-link {
    font-size: 9px;
  }

  .home-stack {
    margin-top: 32px;
  }

  .profile-stack__links a {
    width: 28px;
    height: 28px;
  }

  .profile-stack__icon {
    width: 15px;
    height: 15px;
  }

  .latest {
    margin-top: 54px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .eyebrow {
    font-size: 8px;
  }

  .latest-list a {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .latest-title {
    font-size: 11px;
  }

  .latest-meta {
    font-size: 7px;
  }

  .about-profile {
    padding-top: 45px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-portrait {
    width: min(48%, 180px);
    order: -1;
  }

  .about-profile h1 {
    max-width: 440px;
    font-size: 23px;
  }

  .about-lede {
    max-width: 430px;
    font-size: 14px;
  }

  .about-location {
    font-size: 9px;
  }

  .about-actions {
    margin-top: 16px;
    gap: 10px 17px;
  }

  .cv {
    margin-top: 66px;
  }

  .cv-section + .cv-section {
    margin-top: 62px;
  }

  .experience-item > summary {
    position: relative;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .experience-main {
    padding-right: 0;
  }

  .experience-period {
    font-size: 8px;
  }

  .experience-main h3 {
    font-size: 12px;
  }

  .experience-role {
    font-size: 9px;
  }

  .experience-toggle-label {
    font-size: 7px;
  }

  .experience-copy {
    max-width: none;
    padding: 7px 0 11px 41px;
  }

  .experience-location {
    font-size: 8px;
  }

  .experience-summary,
  .experience-copy ul {
    font-size: 10px;
  }

  .research-grid,
  .credentials-grid,
  .language-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .research-block h3,
  .credential-block > h3,
  .language-block > h3,
  .core-skills h3 {
    font-size: 8px;
  }

  .credential-list li,
  .education-list p {
    font-size: 9px;
  }

  .research-list-heading {
    min-height: 48px;
    font-size: 9px;
  }

  .research-list-heading > span {
    font-size: 8px;
  }

  .cve-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cve-list a {
    min-height: 38px;
    padding-inline: 9px;
  }

  .cve-id {
    font-size: 9px;
  }

  .cve-status {
    font-size: 6px;
  }

  .cve-arrow {
    font-size: 9px;
  }

  .paper-list a {
    padding-block: 14px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .paper-title {
    max-width: 430px;
    font-size: 11px;
  }

  .paper-meta,
  .paper-link {
    font-size: 8px;
    text-align: left;
  }

  .paper-authors {
    font-size: 8px;
  }

  .credential-list li {
    min-height: 42px;
  }

  .education-list h4 {
    font-size: 11px;
  }

  .language-block {
    margin-top: 26px;
  }

  .language-list > div {
    min-height: 44px;
  }

  .language-list span:first-child {
    font-size: 11px;
  }

  .language-list span:last-child {
    font-size: 8px;
  }

  .contact-section {
    padding: 18px;
  }

  .contact-links {
    justify-items: start;
    gap: 13px;
  }

  .contact-link--text {
    font-size: 9px;
  }

  .contact-link--icon {
    width: 34px;
    height: 34px;
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .skill-group li {
    width: 48px;
    height: 48px;
  }

  .skill-group li img {
    width: 24px;
    height: 24px;
  }

  .skill-group li::after {
    font-size: 8px;
  }

  .core-skills li {
    font-size: 9px;
  }

  .blog-index {
    padding-top: 45px;
  }

  .blog-heading h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .blog-archive {
    margin-top: 32px;
  }

  .blog-year + .blog-year {
    margin-top: 38px;
  }

  .blog-year-title {
    font-size: 8px;
  }

  .article {
    padding-top: 45px;
  }

  .article-header h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .article-subtitle {
    max-width: 430px;
    margin-top: 12px;
    font-size: 13px;
  }

  .article-share > p {
    font-size: 8px;
  }

  .article-share__control {
    width: 34px;
    height: 34px;
  }

  .article-share__icon {
    width: 15px;
    height: 15px;
  }

  .prose {
    font-size: 14px;
  }

  .prose > p:first-child {
    font-size: 16px;
  }

  .prose h2 {
    font-size: 24px;
  }

  .prose h3 {
    font-size: 18px;
  }

  .prose pre[class*="language-"],
  .prose pre {
    font-size: 10px;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    font-size: 10px;
    white-space: nowrap;
  }

  .footer-inner {
    min-height: 0;
    padding-block: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-links {
    font-size: 8px;
  }

  .footer-note {
    font-size: 7px;
    text-align: left;
  }
}

@media (max-width: 600px) {
  :root {
    --header: 64px;
  }

  .shell,
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 40px), var(--shell));
  }

  .site-header {
    position: relative;
    z-index: 20;
  }

  body.menu-is-open {
    overflow: hidden;
  }

  .header-inner {
    position: relative;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    transform: none;
  }

  .wordmark {
    width: fit-content;
    font-size: 14px;
  }

  .mobile-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: border-color 130ms ease, background 130ms ease;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible {
    border-color: var(--faint);
    background: var(--panel-hover);
  }

  .mobile-menu-toggle__icon {
    position: relative;
    display: block;
    width: 18px;
    height: 10px;
  }

  .mobile-menu-toggle__icon span {
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: top 180ms ease, transform 180ms ease;
  }

  .mobile-menu-toggle__icon span:first-child {
    top: 1.5px;
  }

  .mobile-menu-toggle__icon span:last-child {
    top: 7.5px;
  }

  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon span {
    top: 4.5px;
  }

  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon span:first-child {
    transform: rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon span:last-child {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    display: grid;
    overflow-y: auto;
    width: 100vw;
    max-height: calc(100dvh - var(--header));
    padding: 10px 20px 20px;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 18px 32px rgb(0 0 0 / 18%);
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 160ms ease, transform 180ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
  }

  .site-nav a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 18px;
    font-weight: 560;
    letter-spacing: -0.02em;
  }

  .site-nav a::after {
    color: var(--faint);
    content: "→";
    font-family: var(--mono);
    font-size: 12px;
  }

  .site-nav a[aria-current="page"]::after {
    color: var(--green);
    content: "●";
    font-size: 7px;
  }

  .nav-rule {
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 10px;
  }

  .theme-toggle {
    display: flex;
    width: 100%;
    height: 54px;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
  }

  .theme-toggle::before {
    content: "appearance";
    font-size: 18px;
    font-weight: 560;
    letter-spacing: -0.02em;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  .home-hero {
    padding-top: 50px;
  }

  .home-hero h1 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.04;
  }

  .hero-intro {
    max-width: 410px;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.52;
  }

  .hero-location {
    margin-top: 8px;
    font-size: 10px;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 18px;
  }

  .button {
    min-height: 46px;
    padding-inline: 22px;
    font-size: 12px;
  }

  .text-link {
    font-size: 12px;
  }

  .home-stack {
    margin-top: 38px;
  }

  .profile-stack__label {
    margin-bottom: 11px;
    font-size: 10px;
  }

  .profile-stack__links {
    gap: 9px;
  }

  .profile-stack__links a {
    width: 40px;
    height: 40px;
  }

  .profile-stack__icon {
    width: 19px;
    height: 19px;
  }

  .profile-stack__links a::after,
  .skill-group li::after,
  .cve-list a::after,
  .contact-link--icon::after,
  .article-share__control::after {
    display: none;
  }

  .latest {
    margin-top: 68px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .section-heading h2 {
    font-size: 29px;
    line-height: 1.16;
  }

  .section-heading > p:last-child:not(.eyebrow) {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.55;
  }

  .latest-list {
    margin-top: 24px;
  }

  .latest-list a {
    min-height: 0;
    padding-block: 18px;
    gap: 7px;
  }

  .latest-title {
    font-size: 14px;
    line-height: 1.38;
  }

  .latest-meta {
    font-size: 9px;
  }

  .arrow-link {
    margin-top: 13px;
    font-size: 10px;
  }

  .about-profile {
    padding-top: 50px;
    gap: 36px;
  }

  .about-portrait {
    width: min(70%, 240px);
    border-radius: 10px;
  }

  .about-profile h1 {
    font-size: 31px;
    line-height: 1.1;
  }

  .about-lede {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.58;
  }

  .about-location {
    margin-top: 12px;
    font-size: 10px;
  }

  .about-actions {
    margin-top: 22px;
  }

  .cv {
    margin-top: 76px;
  }

  .cv-section + .cv-section {
    margin-top: 72px;
  }

  .experience-list {
    margin-top: 27px;
  }

  .experience-list::before {
    top: 16px;
    bottom: 16px;
    left: 15.75px;
  }

  .experience-item {
    padding-bottom: 22px;
  }

  .experience-item > summary {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .experience-logo,
  .experience-logo--1 {
    width: 32px;
    height: 32px;
  }

  .experience-main h3 {
    font-size: 15px;
  }

  .experience-role {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.4;
  }

  .experience-period {
    font-size: 10px;
  }

  .experience-toggle-label {
    font-size: 9px;
  }

  .experience-copy {
    padding: 9px 0 16px 44px;
  }

  .experience-location {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .experience-summary,
  .experience-copy ul {
    font-size: 14px;
    line-height: 1.6;
  }

  .research-list-heading {
    min-height: 56px;
    font-size: 11px;
  }

  .research-list-heading > span {
    font-size: 10px;
  }

  .cve-list {
    padding-block: 10px;
    gap: 8px;
  }

  .cve-list a {
    min-height: 46px;
    padding-inline: 11px;
  }

  .cve-id {
    font-size: 11px;
  }

  .cve-status {
    font-size: 7px;
  }

  .cve-arrow {
    font-size: 11px;
  }

  .paper-list a {
    padding-block: 17px;
    gap: 8px;
  }

  .paper-title {
    font-size: 14px;
    line-height: 1.42;
  }

  .paper-meta,
  .paper-authors,
  .paper-link {
    font-size: 10px;
  }

  .research-block h3,
  .credential-block > h3,
  .language-block > h3,
  .skill-group h3,
  .core-skills h3 {
    font-size: 10px;
  }

  .credential-list li {
    min-height: 50px;
    font-size: 13px;
    grid-template-columns: 28px 1fr;
  }

  .credential-list li > span {
    font-size: 10px;
  }

  .education-list article {
    padding-block: 14px;
  }

  .education-list h4 {
    font-size: 14px;
  }

  .education-list p {
    max-width: 240px;
    margin-top: 4px;
    font-size: 12px;
  }

  .education-list article > span {
    top: 16px;
    font-size: 9px;
  }

  .language-list > div {
    min-height: 52px;
  }

  .language-list span:first-child {
    font-size: 14px;
  }

  .language-list span:last-child {
    font-size: 10px;
  }

  .skill-groups {
    margin-top: 26px;
    gap: 34px;
  }

  .skill-group h3,
  .core-skills h3 {
    margin-bottom: 13px;
  }

  .skill-group ul {
    gap: 9px;
  }

  .skill-group li {
    width: 58px;
    height: 58px;
  }

  .skill-group li img {
    width: 28px;
    height: 28px;
  }

  .core-skills {
    margin-top: 28px;
  }

  .core-skills ul {
    gap: 8px;
  }

  .core-skills li {
    padding: 8px 10px;
    font-size: 11px;
  }

  .contact-section {
    padding: 24px;
  }

  .contact-links {
    margin-top: 20px;
    gap: 16px;
  }

  .contact-link--text {
    font-size: 12px;
  }

  .contact-icon-links {
    gap: 9px;
  }

  .contact-link--icon {
    width: 44px;
    height: 44px;
  }

  .contact-link--icon .profile-stack__icon {
    width: 19px;
    height: 19px;
  }

  .blog-index {
    padding-top: 50px;
  }

  .blog-heading h1 {
    font-size: clamp(36px, 11vw, 44px);
    line-height: 1.04;
  }

  .blog-archive {
    margin-top: 38px;
  }

  .blog-year + .blog-year {
    margin-top: 42px;
  }

  .blog-year-title {
    font-size: 10px;
  }

  .article {
    padding-top: 50px;
  }

  .back-link {
    margin-bottom: 30px;
    font-size: 11px;
  }

  .article-header h1 {
    font-size: clamp(38px, 11.5vw, 52px);
    line-height: 1.03;
  }

  .article-kicker {
    margin-top: 16px;
    font-size: 10px;
  }

  .article-subtitle {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.55;
  }

  .article-meta {
    margin-top: 16px;
    font-size: 10px;
  }

  .prose {
    padding-top: 28px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.75;
  }

  .prose > p:first-child {
    font-size: 18px;
  }

  .prose h2 {
    margin-top: 40px;
    font-size: 28px;
  }

  .prose h3 {
    margin-top: 30px;
    font-size: 22px;
  }

  .prose p {
    margin-bottom: 18px;
  }

  .prose ul,
  .prose ol {
    margin-bottom: 24px;
  }

  .prose table {
    font-size: 12px;
  }

  .prose th {
    font-size: 10px;
  }

  .prose pre[class*="language-"],
  .prose pre {
    font-size: 12px;
  }

  .code-language,
  .copy-code {
    font-size: 9px;
  }

  .article-footer {
    padding-top: 26px;
    margin-top: 42px;
  }

  .article-share > p {
    font-size: 10px;
  }

  .article-share ul {
    margin-top: 13px;
    gap: 9px;
  }

  .article-share__control {
    width: 42px;
    height: 42px;
  }

  .article-share__icon {
    width: 18px;
    height: 18px;
  }

  .article-footer-actions {
    margin-top: 20px;
    gap: 18px;
  }

  .not-found {
    padding-top: 54px;
  }

  .not-found h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  .not-found > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.55;
  }

  .site-footer,
  .home-page .site-footer,
  .blog-page .site-footer,
  .about-page .site-footer {
    margin-top: 56px;
  }

  .footer-inner {
    padding-block: 30px;
    gap: 24px;
  }

  .footer-brand {
    gap: 11px;
  }

  .footer-wordmark {
    font-size: 12px;
  }

  .footer-links {
    font-size: 10px;
    line-height: 1.7;
  }

  .footer-note {
    font-size: 10px;
    line-height: 1.7;
  }
}

@media (max-width: 360px) {
  .shell,
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 32px), var(--shell));
  }

  .wordmark {
    flex: 0 0 auto;
  }

  .site-nav {
    gap: 0;
  }

  .blog-heading h1 {
    font-size: clamp(32px, 10.5vw, 36px);
  }

  .experience-item > summary {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .experience-meta {
    padding-top: 2px;
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
  }

  .experience-copy {
    padding-left: 44px;
  }

  .contact-section {
    padding: 20px;
  }

  .article-header h1 {
    font-size: clamp(32px, 11vw, 42px);
  }

  .not-found h1 {
    font-size: clamp(32px, 11vw, 38px);
  }

  .footer-links a + a::before {
    margin-inline: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root,
  [data-theme="dark"],
  [data-theme="light"] {
    --bg: #ffffff;
    --panel: #ffffff;
    --text: #111111;
    --muted: #444444;
    --faint: #666666;
    --line: #d8d8d8;
    --line-strong: #bbbbbb;
  }

  body {
    display: block;
    min-height: 0;
    font-size: 9pt;
  }

  .site-header,
  .site-footer,
  .print-cv,
  .off-screen {
    display: none;
  }

  .shell {
    width: 100%;
    max-width: none;
  }

  .about-profile {
    padding-top: 0;
  }

  .cv {
    margin-top: 55px;
  }

  .cv-section + .cv-section {
    margin-top: 55px;
  }

  .experience-item,
  .work-list article,
  .skill-group {
    break-inside: avoid;
  }

}
