:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --accent: #c6613f;
  --accent-hover: #ad5232;
  --accent-soft: #fbeee8;
  --accent-ink: #9a4a2e;
  --link: #a94f2f;
  --ok: #3d7a3a;
  --code-bg: #fafaf9;
  --code-head: #f5f5f4;
  --inline-code-bg: #f2f1ef;
  --shadow-sm: 0 1px 2px rgba(31, 28, 20, 0.04), 0 1px 1px rgba(31, 28, 20, 0.03);
  --shadow-md: 0 1px 2px rgba(31, 28, 20, 0.05), 0 8px 24px -8px rgba(31, 28, 20, 0.10);
  --header-bg: rgba(255, 255, 255, 0.85);
  --figure-bg: #ffffff;

  --hl-comment: #8c897f;
  --hl-keyword: #b2492a;
  --hl-type: #7a4aa8;
  --hl-string: #4f7a2c;
  --hl-number: #a0620f;
  --hl-func: #2b5d9e;
  --hl-preproc: #a1386c;
  --hl-name: #18181b;
  --hl-ins-bg: #e5f1df;
  --hl-ins: #2f6a2a;
  --hl-del-bg: #f8e1dc;
  --hl-del: #a3321f;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-serif: "Source Serif 4", "Source Serif Pro", ui-serif, Georgia, "Noto Serif KR", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --content: 720px;
  --wrap: 1120px;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

a { color: inherit; }

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

::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  z-index: 100;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-wide {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.nav > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav > a:hover { color: var(--text); background: var(--bg-soft); }
.nav > a.is-active { color: var(--text); background: var(--bg-soft); }

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}
.footer-links { display: inline-flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--text-2); border-color: var(--text-2); }

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.meta-dot { color: var(--faint); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.hero {
  padding-top: 72px;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse::after { animation: pulse 2.4s ease-out infinite; }
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}

.hero-sub {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
}

.hero-sub a {
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.hero-sub a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-count { color: var(--faint); font-size: 13px; }

.year-label {
  margin: 22px 0 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.post-list { display: flex; flex-direction: column; gap: 12px; }

.post-card {
  position: relative;
  display: block;
  padding: 22px 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.post-card-title {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.post-card-excerpt {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-cta {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.post-card-cta span { transition: transform 0.18s ease; }
.post-card:hover .post-card-cta span { transform: translateX(3px); }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--content));
  justify-content: center;
  gap: 64px;
}

@media (min-width: 1160px) {
  .post-grid.has-toc {
    grid-template-columns: minmax(0, var(--content)) 232px;
  }
  .layout-post .site-header .wrap,
  .layout-post .site-footer .wrap {
    max-width: calc(var(--content) + 64px + 232px + 32px);
  }
}

.post-main { min-width: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover { color: var(--text); }

.post-header {
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--border);
}

.post-title {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}
.byline-name { font-weight: 500; }
.byline-handle { color: var(--muted); text-decoration: none; }
.byline-handle:hover { color: var(--text); }

.post-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.post-end .back-link { margin-top: 0; }
.to-top { color: var(--muted); font-size: 14px; text-decoration: none; }
.to-top:hover { color: var(--text); }

.toc-side { display: none; }
@media (min-width: 1160px) {
  .post-grid.has-toc .toc-side { display: block; }
  .post-grid.has-toc .toc-inline { display: none; }
}

.toc-side-inner {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 2px 4px 24px 0;
  margin-top: 36px;
  scrollbar-width: thin;
}

.toc-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list li { margin: 0; }
.toc-list a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.toc-list a:hover { color: var(--text); }
.toc-list a.lvl-2 { padding-left: 24px; font-size: 12.5px; }
.toc-list a.is-current {
  color: var(--text);
  border-left-color: var(--accent);
  box-shadow: inset 1px 0 0 var(--accent);
}

.toc-inline {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc-inline > summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc-inline > summary::-webkit-details-marker { display: none; }
.toc-inline > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.toc-inline[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.toc-inline .toc-list { padding: 0 16px 14px; }

.page-header {
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.page-sub { margin: 12px 0 0; color: var(--muted); }

.page-about .prose > p:first-child {
  font-size: 18px;
  color: var(--text-2);
}
.page-about .prose h4 {
  margin: 44px 0 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-about .prose h5 {
  margin: 22px 0 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
}
.page-about .prose h4 + h5 { margin-top: 0; }
.page-about .prose ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.page-about .prose ul > li {
  margin: 0;
  padding: 9px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.page-about .prose ul > li + li { border-top: 1px solid var(--border); }
.page-about .prose ul > li strong { color: var(--text); font-weight: 600; }

.notfound {
  padding-top: 120px;
  text-align: center;
}
.notfound-code {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}
.notfound-title {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.02em;
}
.notfound-sub { margin: 10px 0 28px; color: var(--muted); }

.prose {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-2);
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 32px; }
.prose p { margin: 0 0 1.15em; }

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  position: relative;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}
.prose h1 {
  margin: 2.4em 0 0.7em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: 30px;
}
.prose > h1:first-child { margin-top: 32px; padding-top: 0; border-top: 0; }
.prose h2 { margin: 2em 0 0.6em; font-size: 23px; }
.prose h3 { margin: 1.7em 0 0.5em; font-size: 19px; }
.prose h4 { margin: 1.5em 0 0.5em; font-size: 17px; }
.prose h5, .prose h6 { margin: 1.4em 0 0.4em; font-size: 16px; }

.prose .heading-anchor {
  position: absolute;
  left: -0.9em;
  width: 0.9em;
  color: var(--faint);
  font-family: var(--font-sans);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.prose h1:hover .heading-anchor,
.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.prose .heading-anchor:focus { opacity: 1; }
.prose .heading-anchor:hover { color: var(--accent); }

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.prose a:hover { text-decoration-color: currentColor; }
.prose a.heading-anchor { color: var(--faint); text-decoration: none; }

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

.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--faint); }

.prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.prose blockquote > :last-child { margin-bottom: 0; }

.prose img {
  display: block;
  height: auto;
  margin: 2em auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--figure-bg);
  box-shadow: var(--shadow-sm);
}
.prose p > img:only-child { margin: 0 auto; }
.prose p:has(> img:only-child) { margin: 2em 0; }

.prose table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5em 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
}
.prose th, .prose td {
  padding: 9px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-variant-ligatures: none;
}
.prose :not(pre) > code {
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: var(--inline-code-bg);
  color: var(--text);
  white-space: break-spaces;
}

.prose details {
  margin: 1.5em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.prose details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  list-style: none;
}
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.prose details[open] > summary::before { transform: rotate(45deg); }
.prose details[open] > summary { border-bottom: 1px solid var(--border); }
.prose details > :not(summary) { margin-left: 12px; margin-right: 12px; }
.prose details > :last-child { margin-bottom: 12px; }
.prose details > .code-card:first-of-type { margin-top: 12px; }
.prose > p:has(> br:only-child) { display: none; }

.prose div.highlighter-rouge,
.prose figure.highlight,
.prose > pre {
  margin: 1.6em 0;
}

.code-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
  box-shadow: var(--shadow-sm);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--code-head);
}

.code-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.code-lang::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.copy-btn:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.copy-btn.is-copied { color: var(--ok); }

.prose pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.62;
  tab-size: 8;
  -moz-tab-size: 8;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
  border-radius: 0;
}
.prose .highlight { margin: 0; background: transparent; }
.prose > pre { border: 1px solid var(--border); border-radius: var(--radius); background: var(--code-bg); }

.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .ch, .highlight .cd { color: var(--hl-comment); font-style: italic; }
.highlight .cp, .highlight .cpf { color: var(--hl-preproc); }
.highlight .k, .highlight .kc, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv { color: var(--hl-keyword); }
.highlight .kt, .highlight .nc, .highlight .nn { color: var(--hl-type); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .sr, .highlight .ss, .highlight .dl { color: var(--hl-string); }
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx { color: var(--hl-number); }
.highlight .nf, .highlight .fm, .highlight .nb, .highlight .bp { color: var(--hl-func); }
.highlight .nl, .highlight .na, .highlight .nt { color: var(--hl-type); }
.highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi { color: var(--hl-name); }
.highlight .err { color: inherit; background: none; }
.highlight .gh, .highlight .gu { color: var(--muted); font-weight: 500; }
.highlight .gi { color: var(--hl-ins); background: var(--hl-ins-bg); }
.highlight .gd { color: var(--hl-del); background: var(--hl-del-bg); }

.prose pre code.diff-lines { display: block; min-width: max-content; }
.prose .highlight .dline { display: block; margin: 0 -18px; padding: 0 18px; }
.prose .highlight .dline-meta { color: var(--muted); }
.prose .highlight .dline-hunk { color: var(--hl-func); background: color-mix(in srgb, var(--hl-func) 9%, transparent); }
.prose .highlight .dline-add { color: var(--hl-ins); background: var(--hl-ins-bg); }
.prose .highlight .dline-del { color: var(--hl-del); background: var(--hl-del-bg); }
.highlight .ge { font-style: italic; }
.highlight .gs { font-weight: 600; }

@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .nav > a { padding: 6px 8px !important; }
}
@media (max-width: 374px) {
  .brand-name { display: none; }
}

@media (max-width: 640px) {
  .header-inner { height: 56px; }
  .brand-name { font-size: 14.5px; }
  .nav > a { padding: 6px 9px; }

  .hero { padding-top: 48px; padding-bottom: 40px; }
  .hero-sub { font-size: 16.5px; }

  .post-card { padding: 18px 18px 16px; }
  .post-card-title { font-size: 21px; }

  .prose { font-size: 16px; }
  .prose h1 { font-size: 25px; }
  .prose h2 { font-size: 20.5px; }
  .prose pre { padding: 14px; font-size: 12.5px; }
  .prose .heading-anchor { display: none; }
  .prose details > :not(summary) { margin-left: 8px; margin-right: 8px; }
  .page-header { padding-top: 44px; }
  .site-footer { margin-top: 72px; }
}
