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

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

/* Bricolage Grotesque, subset to the letters of "melv.in". */
@font-face {
  font-family: "Wordmark";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("/fonts/wordmark.woff2") format("woff2");
}

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --fg: #fafafa;
  --muted: #a3a3a3;
  --muted-2: #8a8a8a;
  --faint: #525252;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --fill: rgba(255, 255, 255, 0.035);
  --fill-hover: rgba(255, 255, 255, 0.06);
  --card: #111111;
  --header-bg: rgba(10, 10, 10, 0.78);
  --flow-line: rgba(255, 255, 255, 0.1);
  --glow: rgba(61, 142, 240, 0.22);
  --glow-2: rgba(34, 197, 160, 0.12);
  --btn-bg: #fafafa;
  --btn-fg: #0a0a0a;
  --btn-hover: #ffffff;
  --accent: #3d8ef0;
  --accent-ink: #6aa9f5;
  --accent-soft: rgba(61, 142, 240, 0.14);
  --focus: #3d8ef0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header: 64px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #525252;
  --muted-2: #737373;
  --faint: #a3a3a3;
  --line: #ebebeb;
  --line-strong: #d6d6d6;
  --fill: #fafafa;
  --fill-hover: #f4f4f4;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.8);
  --flow-line: #e0e0e0;
  --glow: rgba(11, 111, 219, 0.16);
  --glow-2: rgba(15, 118, 110, 0.1);
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --btn-hover: #2a2a2a;
  --accent: #0b6fdb;
  --accent-ink: #0a5bbf;
  --accent-soft: #e9f2fd;
  --focus: #0b6fdb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px -12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px -24px rgba(0, 0, 0, 0.16);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    color-scheme: light;
    --bg: #ffffff;
    --fg: #0a0a0a;
    --muted: #525252;
    --muted-2: #737373;
    --faint: #a3a3a3;
    --line: #ebebeb;
    --line-strong: #d6d6d6;
    --fill: #fafafa;
    --fill-hover: #f4f4f4;
    --card: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.8);
    --flow-line: #e0e0e0;
    --glow: rgba(11, 111, 219, 0.16);
    --glow-2: rgba(15, 118, 110, 0.1);
    --btn-bg: #0a0a0a;
    --btn-fg: #ffffff;
    --btn-hover: #2a2a2a;
    --accent: #0b6fdb;
    --accent-ink: #0a5bbf;
    --accent-soft: #e9f2fd;
    --focus: #0b6fdb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px -12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px -24px rgba(0, 0, 0, 0.16);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

@media (min-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 48px));
  }
}

@media (min-width: 1024px) {
  .wrap {
    width: min(var(--max), calc(100% - 64px));
  }
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--fg);
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05rem 0.32rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.8) blur(12px);
  backdrop-filter: saturate(1.8) blur(12px);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  color: var(--fg);
  font-family: "Wordmark", var(--sans);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.035em;
  flex: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 150ms var(--ease), background 150ms var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--fg);
  background: var(--fill-hover);
}

@media (min-width: 720px) {
  .nav-link {
    display: inline-flex;
  }
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  flex: none;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.theme-toggle:hover {
  background: var(--fill-hover);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun,
html:not([data-theme]) .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) .theme-toggle .icon-sun {
    display: none;
  }

  html:not([data-theme]) .theme-toggle .icon-moon {
    display: block;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
  transition: background 150ms var(--ease);
}

.btn:hover {
  background: var(--btn-hover);
}

.btn .arrow {
  display: inline-block;
  transition: transform 150ms var(--ease);
}

.btn:hover .arrow {
  transform: translateX(2px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--fill-hover);
  border-color: var(--fg);
}

/* Hero — personal site composition */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 80px;
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.hero-field::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  background:
    radial-gradient(closest-side, var(--glow), transparent 72%),
    radial-gradient(closest-side at 30% 70%, var(--glow-2), transparent 65%);
  animation: drift 18s var(--ease) infinite alternate;
}

.hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--flow-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--flow-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 78% 38%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 78% 38%, #000 0%, transparent 72%);
  opacity: 0.55;
}

.signal {
  position: absolute;
  top: 12%;
  right: 2%;
  z-index: -1;
  width: min(48vw, 520px);
  height: min(58vh, 440px);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent),
    linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent),
    linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: scroll-signal 28s linear infinite;
}

.signal span {
  display: block;
  white-space: nowrap;
}

.signal .hit {
  color: var(--accent-ink);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 3%, 0) scale(1.06); }
}

@keyframes scroll-signal {
  from { transform: translateY(0); }
  to { transform: translateY(-18%); }
}

.hero-copy {
  position: relative;
  max-width: 38rem;
}

.hero-brand {
  display: inline-block;
  color: var(--fg);
  font-family: "Wordmark", var(--sans);
  font-weight: 700;
  font-size: clamp(2.75rem, 1.4rem + 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--fg);
  font-size: clamp(1.85rem, 1.15rem + 2.4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.lede {
  max-width: 34rem;
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  color: var(--muted);
}

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

@media (max-width: 720px) {
  .signal { display: none; }
  .hero { min-height: 0; padding: 56px 0 64px; }
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--fill);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin: 0 0 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
}

.section-head > div {
  max-width: 36rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}

.section-head h2 {
  margin-top: 10px;
  color: var(--fg);
  font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 150ms var(--ease);
}

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

/* Writing list */

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

.write-item {
  display: grid;
  gap: 6px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 150ms var(--ease);
}

.write-item:hover {
  background: transparent;
}

.write-item:hover .write-title {
  color: var(--accent-ink);
}

.write-date {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
}

.write-title {
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 150ms var(--ease);
}

.write-excerpt {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  max-width: 54rem;
}

@media (min-width: 760px) {
  .write-item {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
  }

  .write-date {
    padding-top: 3px;
  }
}

.write-item.featured {
  padding: 28px 0;
}

.write-item.featured .write-title {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.45rem);
}

/* Projects */

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

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: color 150ms var(--ease);
}

.project:hover .project-name {
  color: var(--accent-ink);
}

.project-name {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  transition: color 150ms var(--ease);
}

.project-go {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  color: var(--faint);
  transition: color 150ms var(--ease), transform 150ms var(--ease);
}

.project:hover .project-go {
  color: var(--accent-ink);
  transform: translateX(2px);
}

.project p {
  grid-column: 1 / -1;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 48rem;
}

@media (min-width: 760px) {
  .project {
    grid-template-columns: 168px minmax(0, 1fr) auto;
    gap: 12px 28px;
  }

  .project-name {
    grid-column: 1;
    grid-row: 1;
  }

  .project p {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .project-go {
    grid-column: 3;
    grid-row: 1;
    padding-top: 2px;
  }
}

/* Page hero (inner pages) */

.page-hero {
  padding: 56px 0 40px;
}

.page-hero h1 {
  color: var(--fg);
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-hero .lede {
  margin-top: 14px;
}

/* About */

.about-grid {
  display: grid;
  gap: 36px;
  align-items: start;
}

.about-photo {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--fill);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-body {
  max-width: 38rem;
  display: grid;
  gap: 16px;
  font-size: 16.5px;
  color: var(--muted);
}

.about-body a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-body a:hover {
  color: var(--accent-ink);
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
  }
}

/* Post */

.post-wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

@media (min-width: 640px) {
  .post-wrap {
    width: min(720px, calc(100% - 48px));
  }
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted-2);
  transition: color 150ms var(--ease);
}

.post-back:hover {
  color: var(--fg);
}

.post-head h1 {
  color: var(--fg);
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.post-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-2);
}

.prose {
  margin-top: 36px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

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

.prose p {
  margin: 0 0 1.15rem;
}

.prose h2 {
  color: var(--fg);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 2.5rem 0 0.85rem;
}

.prose h3 {
  color: var(--fg);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.7rem;
}

.prose h4 {
  color: var(--fg);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin: 0.35rem 0;
}

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

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

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

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 1.6rem 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  overflow-wrap: break-word;
}

.prose pre {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  margin: 0 0 1.4rem;
  overflow-x: auto;
  color: var(--fg);
}

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

.prose .highlight {
  margin: 0 0 1.4rem;
}

.prose .highlight pre {
  margin: 0;
}

.prose .chroma {
  background: none;
}

.prose .chroma .k,
.prose .chroma .kc,
.prose .chroma .kd,
.prose .chroma .kn,
.prose .chroma .kp,
.prose .chroma .kr,
.prose .chroma .kt,
.prose .chroma .ow {
  color: var(--accent-ink);
  font-weight: 600;
}

.prose .chroma .s,
.prose .chroma .s1,
.prose .chroma .s2,
.prose .chroma .sb,
.prose .chroma .sc,
.prose .chroma .sd,
.prose .chroma .se,
.prose .chroma .sh,
.prose .chroma .si,
.prose .chroma .sx,
.prose .chroma .sa,
.prose .chroma .ss {
  color: #34b27b;
}

html[data-theme="light"] .prose .chroma .s,
html[data-theme="light"] .prose .chroma .s1,
html[data-theme="light"] .prose .chroma .s2,
html[data-theme="light"] .prose .chroma .sb,
html[data-theme="light"] .prose .chroma .sc,
html[data-theme="light"] .prose .chroma .sd,
html[data-theme="light"] .prose .chroma .se,
html[data-theme="light"] .prose .chroma .sh,
html[data-theme="light"] .prose .chroma .si,
html[data-theme="light"] .prose .chroma .sx,
html[data-theme="light"] .prose .chroma .sa,
html[data-theme="light"] .prose .chroma .ss {
  color: #197a5a;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) .prose .chroma .s,
  html:not([data-theme]) .prose .chroma .s1,
  html:not([data-theme]) .prose .chroma .s2,
  html:not([data-theme]) .prose .chroma .sb,
  html:not([data-theme]) .prose .chroma .sc,
  html:not([data-theme]) .prose .chroma .sd,
  html:not([data-theme]) .prose .chroma .se,
  html:not([data-theme]) .prose .chroma .sh,
  html:not([data-theme]) .prose .chroma .si,
  html:not([data-theme]) .prose .chroma .sx,
  html:not([data-theme]) .prose .chroma .sa,
  html:not([data-theme]) .prose .chroma .ss {
    color: #197a5a;
  }
}

.prose .chroma .c,
.prose .chroma .c1,
.prose .chroma .cm,
.prose .chroma .cs,
.prose .chroma .cp,
.prose .chroma .cpf {
  color: var(--faint);
  font-style: italic;
}

.prose .chroma .m,
.prose .chroma .mi,
.prose .chroma .mf,
.prose .chroma .mh,
.prose .chroma .mo,
.prose .chroma .mb,
.prose .chroma .il {
  color: #e0a454;
}

html[data-theme="light"] .prose .chroma .m,
html[data-theme="light"] .prose .chroma .mi,
html[data-theme="light"] .prose .chroma .mf,
html[data-theme="light"] .prose .chroma .mh,
html[data-theme="light"] .prose .chroma .mo,
html[data-theme="light"] .prose .chroma .mb,
html[data-theme="light"] .prose .chroma .il {
  color: #b45309;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) .prose .chroma .m,
  html:not([data-theme]) .prose .chroma .mi,
  html:not([data-theme]) .prose .chroma .mf,
  html:not([data-theme]) .prose .chroma .mh,
  html:not([data-theme]) .prose .chroma .mo,
  html:not([data-theme]) .prose .chroma .mb,
  html:not([data-theme]) .prose .chroma .il {
    color: #b45309;
  }
}

.prose .chroma .nv,
.prose .chroma .vi,
.prose .chroma .vc,
.prose .chroma .vg,
.prose .chroma .nt {
  color: var(--accent-ink);
}

.prose .chroma .nb,
.prose .chroma .bp {
  color: #2dd4bf;
}

html[data-theme="light"] .prose .chroma .nb,
html[data-theme="light"] .prose .chroma .bp {
  color: #0f766e;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) .prose .chroma .nb,
  html:not([data-theme]) .prose .chroma .bp {
    color: #0f766e;
  }
}

.prose .chroma .na {
  color: #e0a454;
}

.prose .chroma .nf,
.prose .chroma .nx,
.prose .chroma .nn,
.prose .chroma .nc,
.prose .chroma .n {
  color: var(--fg);
}

.prose .chroma .o,
.prose .chroma .p {
  color: var(--muted);
}

.prose .chroma .err {
  color: inherit;
  background: none;
}

.prose .chroma .gp {
  color: var(--muted-2);
  user-select: none;
}

.prose .table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4rem;
}

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

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

.prose th {
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

/* Footer */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 14px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.footer-brand .brand {
  font-size: 19px;
}

.footer-note {
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a:hover {
  color: var(--fg);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .section {
    padding: 104px 0;
  }
}

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

  .hero-field::before,
  .signal {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
