@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-variable-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: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-variable-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-2.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-4.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-5.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-6.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-7.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-8.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-9.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-10.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-11.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: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-200-800-12.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-200-800-13.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-200-800-14.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 {
  --black: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --paper: #ffffff;
  --paper-dim: #d8d8d8;
  --muted: #b4b4b4;
  --faint: #929292;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: #b6a6f2;
  --sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --wrap: 760px;
  --measure: 66ch;
}

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

html {
  background: #000;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-color: #4a4337 #000;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  min-height: 40px;
  background: #4a4337;
  border: 3px solid #000;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #766b59;
}

::-webkit-scrollbar-corner {
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.72;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* A little paper grain over the AMOLED black. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-head,
#main,
.site-foot {
  position: relative;
  z-index: 1;
}

#main {
  flex: 1 0 auto;
}

.site-foot {
  flex: 0 0 auto;
}

::selection {
  background: var(--paper);
  color: var(--black);
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 220ms ease, text-decoration-color 220ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

p,
ul,
ol,
blockquote,
figure,
pre {
  margin: 0 0 1.05em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em,
h2 em,
h3 em {
  font-style: normal;
  font-weight: 500;
}

em {
  font-style: normal;
}

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

code,
pre,
kbd {
  font-family: var(--mono);
}

code {
  font-size: 0.82em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.12em 0.32em;
}

pre {
  overflow-x: auto;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.65;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--black);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  z-index: 999;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.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;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.nav-toggle__caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.site-head[data-open="true"] .nav-toggle__caret {
  transform: rotate(-135deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 4px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--paper);
}

.site-nav a.active {
  font-weight: 600;
}

/* ---------- shared type ---------- */

.eyebrow,
.section-meta,
.section-link,
.back,
.entry-dates,
.entry-note,
.work-meta,
.project-meta,
.writing-date,
.writing-tags,
.writing-time,
.post-meta,
.detail-stack,
.detail-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow,
.section-meta {
  color: var(--faint);
}

.muted {
  color: var(--muted);
}

.sep {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--faint);
}

.nowrap {
  white-space: nowrap;
}

/* ---------- profile / entry ---------- */

.profile {
  padding: 48px 0 22px;
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-banner {
  position: relative;
  margin: 0 0 62px;
}

.hero-banner__art {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.hero-banner__portrait {
  position: absolute;
  left: 16px;
  bottom: -40px;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--black);
}

.profile-name {
  margin: 0 0 0 16px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.profile-zone {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.profile-intro {
  max-width: 62ch;
  margin: 32px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--paper-dim);
}

.profile-note {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--paper-dim);
}

.profile-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 7px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.profile-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 2px;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease;
}

.profile-contact a.contact-mail {
  color: var(--paper);
  font-weight: 500;
}

.profile-contact a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 10px 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.profile-socials a {
  display: inline;
  text-decoration: none;
  color: inherit;
}

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

.profile-socials a:hover .profile-social-label {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.profile-socials a + a {
  margin-left: 8px;
}

.profile-socials a + a::before {
  content: "/";
  margin-right: 8px;
  color: var(--faint);
}

.mobile-page-links {
  display: none;
}

.mobile-back {
  display: none;
}

.mobile-page-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-page-links a:hover,
.mobile-page-links a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mobile-page-links small {
  display: none;
}

.profile-pgp {
  margin: 3px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* ---------- commit ledger ---------- */

.home-section {
  margin-top: 48px;
  animation: rise 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ledger-section {
  margin-top: 24px;
  animation-delay: 80ms;
}

.ledger {
  border: 0;
  background: none;
  padding: 0;
}

.ledger-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.ledger-total {
  margin: 4px 0 0;
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ledger-total span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.ledger-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.ledger-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
}

.swatch-personal {
  background: var(--accent);
}

.swatch-work {
  background: transparent;
}

.ledger-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.cal-month,
.cal-day {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  fill: var(--muted);
  text-transform: uppercase;
}

.ledger-note {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- section heads ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease;
}

.section-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- home lists ---------- */

.work-list,
.writing-list,
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li,
.writing-list li,
.project-list li {
  border-bottom: 1px solid var(--line);
  animation: rise 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.work-list li:nth-child(2),
.writing-list li:nth-child(2),
.project-list li:nth-child(2) {
  animation-delay: 45ms;
}

.work-list li:nth-child(3),
.writing-list li:nth-child(3),
.project-list li:nth-child(3) {
  animation-delay: 90ms;
}

.work-list li:nth-child(n + 4),
.writing-list li:nth-child(n + 4),
.project-list li:nth-child(n + 4) {
  animation-delay: 120ms;
}

.work-row,
.project-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px;
  text-decoration: none;
}

.work-main,
.project-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.work-title,
.project-title {
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.work-title::after,
.project-title::after,
.writing-title::after {
  content: "›";
  display: inline-block;
  margin-left: 8px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-row:hover,
.project-row:hover,
.writing-row:hover,
.work-row:focus-visible,
.project-row:focus-visible,
.writing-row:focus-visible {
  color: inherit;
}

.work-row:hover .work-title,
.project-row:hover .project-title,
.writing-row:hover .writing-title,
.work-row:focus-visible .work-title,
.project-row:focus-visible .project-title,
.writing-row:focus-visible .writing-title {
  text-decoration: underline;
  text-decoration-color: var(--paper);
  text-underline-offset: 0.18em;
}

.work-row:hover .work-title::after,
.project-row:hover .project-title::after,
.writing-row:hover .writing-title::after,
.work-row:focus-visible .work-title::after,
.project-row:focus-visible .project-title::after,
.writing-row:focus-visible .writing-title::after {
  opacity: 1;
  transform: translateX(0);
}

.work-role,
.project-role {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--faint);
}

.work-summary,
.project-summary {
  max-width: 58ch;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}

.work-stack,
.project-stack {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.work-meta,
.project-meta {
  flex: 0 0 auto;
  min-width: 92px;
  color: var(--faint);
  text-align: right;
  line-height: 1.8;
}

.writing-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: baseline;
  padding: 14px 4px;
  text-decoration: none;
}

.writing-date,
.writing-tags,
.writing-time {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.writing-title {
  font-size: 19px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.writing-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.writing-tags {
  text-align: right;
}

/* ---------- experience ---------- */

.entries {
  border-top: 1px solid var(--line);
}

.entry {
  padding: 26px 4px 22px;
  border-bottom: 1px solid var(--line);
  animation: rise 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry:last-child {
  border-bottom: 0;
}

.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
}

.entry-role {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.entry-org {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.entry-dates {
  flex: 0 0 auto;
  color: var(--faint);
  white-space: nowrap;
}

.entry-note {
  margin: 8px 0 0;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: none;
}

.entry-summary {
  max-width: 62ch;
  margin-top: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--paper-dim);
}

.bullets {
  max-width: 62ch;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper-dim);
}

.bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.entry-link {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.entry-link a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 0;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.entry-link a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- projects ---------- */

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

.project-row {
  padding-top: 20px;
  padding-bottom: 20px;
}

.project-detail {
  animation: rise 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-detail .detail-head {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.detail-head h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 6vw, 50px);
  line-height: 1.02;
}

.detail-stack,
.detail-link {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.03em;
}

.detail-note {
  margin: -4px 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.detail-link {
  margin-top: 8px;
}

.detail-link a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.back {
  margin: 16px 0 0;
  letter-spacing: 0.08em;
}

.back a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--muted);
  transition: color 220ms ease;
}

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

/* ---------- page head / prose ---------- */

.page-head {
  padding: 76px 0 26px;
  animation: rise 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-head h1 {
  font-size: clamp(42px, 6vw, 54px);
  line-height: 1.04;
}

.page-lead {
  max-width: 60ch;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
  padding: 30px 0 16px;
  font-size: 18.5px;
  line-height: 1.8;
  color: var(--paper-dim);
}

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

.prose h2 {
  margin: 2em 0 0.6em;
  font-size: 28px;
  color: var(--paper);
}

.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 21px;
  color: var(--paper);
}

.prose h4 {
  margin: 1.6em 0 0.4em;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.prose p {
  margin-bottom: 1.05em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
}

.prose a {
  color: var(--paper);
  text-decoration-color: var(--line-strong);
}

.prose strong {
  font-weight: 600;
  color: var(--paper);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 1.4em 0;
}

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

.prose th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose pre {
  margin: 1.5em 0;
}

.diagram {
  max-width: 700px;
  margin: 26px auto;
  padding: 0;
  overflow-x: auto;
  background: none;
  border: 0;
}

.diagram img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 260px;
  height: auto;
  margin: 0 auto;
}

.prose .mermaid {
  display: none;
}

/* ---------- post ---------- */

.post-head {
  padding: 70px 0 22px;
  border-bottom: 1px solid var(--line);
  animation: rise 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.post-meta {
  margin: 0 0 16px;
  color: var(--faint);
}

.post-head h1 {
  max-width: 100%;
  font-size: clamp(36px, 5.5vw, 48px);
  line-height: 1.06;
}

.post-tags {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.post .prose {
  padding-top: 30px;
}

/* ---------- CV ---------- */

.cv-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  animation: rise 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cv-card + .cv-card,
.cv-card:last-of-type {
  border-bottom: 1px solid var(--line);
}

.cv-title {
  margin: 5px 0;
  font-size: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 260ms ease, color 260ms ease, border-color 260ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.cv-card .button {
  min-width: 230px;
  text-align: center;
}

.button:hover {
  background: var(--paper);
  color: var(--black);
  border-color: var(--paper);
  transform: translateY(-1px);
}

.cv-prose {
  padding-top: 24px;
}

/* ---------- 404 ---------- */

.not-found {
  padding: 96px 0 40px;
  animation: rise 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.stamp {
  display: inline-block;
  margin: 0 0 22px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.not-found-links {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: 78px;
  padding: 18px 0 30px;
}

.foot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot-row p {
  margin: 0;
}

.foot-row a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 4px;
  text-decoration: none;
  transition: color 220ms ease;
}

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

.foot-row .sep {
  margin: 0 0.35em;
}

/* ---------- cursor ---------- */

html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select,
html.has-cursor [contenteditable]:not([contenteditable="false"]) {
  cursor: auto !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

.cursor__ring {
  position: absolute;
  top: -13px;
  left: -13px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  mix-blend-mode: difference;
  transition:
    width 300ms cubic-bezier(0.22, 1, 0.36, 1),
    height 300ms cubic-bezier(0.22, 1, 0.36, 1),
    top 300ms cubic-bezier(0.22, 1, 0.36, 1),
    left 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
}

.cursor__dot {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--paper);
  mix-blend-mode: difference;
}

.cursor__pill {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease;
}

.cursor__pill .arw {
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor[data-state="view"] .cursor__pill,
.cursor[data-state="drag"] .cursor__pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor[data-state="view"] .cursor__ring,
.cursor[data-state="view"] .cursor__dot,
.cursor[data-state="drag"] .cursor__ring,
.cursor[data-state="drag"] .cursor__dot {
  opacity: 0;
}

.cursor[data-state="view"] .cursor__pill .arw {
  transform: translateX(2px);
}

.cursor[data-state="link"] .cursor__ring {
  width: 38px;
  height: 38px;
  top: -19px;
  left: -19px;
  opacity: 0.55;
}

.cursor[data-state="off"] .cursor__ring,
.cursor[data-state="off"] .cursor__dot,
.cursor[data-state="off"] .cursor__pill,
.cursor[data-state="hide"] .cursor__ring,
.cursor[data-state="hide"] .cursor__dot,
.cursor[data-state="hide"] .cursor__pill {
  opacity: 0;
}

/* ---------- motion ---------- */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 180ms ease-out both vt-fade-out;
}

::view-transition-new(root) {
  animation: 280ms cubic-bezier(0.22, 1, 0.36, 1) both vt-fade-in;
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-head {
    display: none;
  }

  .mobile-back {
    display: block;
  }

  .mobile-back + .page-head {
    padding-top: 16px;
  }

  .mobile-page-links {
    display: grid;
    margin: 24px 0 0;
    border-top: 1px solid var(--line);
  }

  .mobile-page-links .page-link-cv {
    display: none;
  }

  .mobile-page-links a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--paper);
  }

  .mobile-page-links span {
    display: block;
    font-size: 19px;
    font-weight: 500;
  }

  .mobile-page-links small {
    display: block;
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--faint);
  }

  .mobile-page-links a:hover span,
  .mobile-page-links a:focus-visible span {
    text-decoration: underline;
    text-decoration-color: var(--paper);
    text-underline-offset: 0.18em;
  }

  .head-row {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 4px 0 10px;
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 0;
  }

  .js .site-nav {
    display: none;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-head[data-open="true"] .site-nav {
    display: flex;
  }

  .profile {
    padding-top: 32px;
  }

  .hero-banner {
    margin-bottom: 50px;
  }

  .hero-banner__portrait {
    left: 12px;
    bottom: -30px;
    width: 68px;
    height: 68px;
    border-width: 1px;
  }

  .profile-name,
  .profile-socials {
    margin-left: 12px;
  }

  .profile-intro {
    font-size: 17px;
  }

  .ledger-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ledger-total {
    font-size: 28px;
  }

  .section-head {
    align-items: baseline;
  }

  .work-row,
  .project-row {
    flex-direction: column;
    gap: 10px;
  }

  .work-meta,
  .project-meta {
    flex: none;
    align-self: flex-end;
    min-width: 0;
    text-align: right;
  }

  .writing-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .writing-meta {
    align-items: flex-start;
    text-align: left;
  }

  .writing-tags {
    text-align: left;
  }

  .entry-head {
    flex-direction: column;
    gap: 6px;
  }

  .entry-dates {
    order: -1;
    align-self: flex-end;
    text-align: right;
  }

  .page-head {
    padding-top: 58px;
  }

  .post-head {
    padding-top: 54px;
  }

  .cv-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-card .button {
    width: 100%;
  }

  .foot-row {
    flex-direction: column;
    gap: 8px;
  }
}

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

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

@media (prefers-contrast: more), (forced-colors: active) {
  html.has-cursor,
  html.has-cursor * {
    cursor: auto !important;
  }

  .cursor {
    display: none;
  }
}

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

  .site-head {
    position: static;
    background: none;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body::before,
  .site-nav,
  .site-foot,
  .cursor,
  .back,
  .button {
    display: none !important;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .profile,
  .page-head,
  .post-head,
  .home-section,
  .entry,
  .favicon {
    animation: none !important;
  }

  .entry,
  .project-item,
  .writing-list li {
    break-inside: avoid;
  }
}
