/* ─────────────────────────────────────────────
   QTNES THEME — main.css
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Serif:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

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

:root {
  --font-mono:  'IBM Plex Mono', monospace;
  --font-serif: 'IBM Plex Serif', serif;
}

html[data-theme="dark"],
html[data-theme="light"] {
  color-scheme: normal;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

/* ── DARK THEME ── */
body.dark,
html[data-theme="dark"] body {
  --green:        oklch(62% 0.14 162);
  --green-dim:    oklch(38% 0.10 162);
  --green-faint:  oklch(22% 0.06 162);
  --bg:           oklch(9%  0.015 162);
  --bg2:          oklch(12% 0.018 162);
  --bg3:          oklch(15% 0.020 162);
  --border:       oklch(22% 0.04  162);
  --border2:      oklch(30% 0.06  162);
  --text:         oklch(86% 0.012 162);
  --text-dim:     oklch(52% 0.02  162);
  --accent:       var(--green);
  --code-bg:      oklch(7%  0.018 162);
  --code-num:     oklch(30% 0.06  162);
  --tag-bg:       oklch(16% 0.04  162);
}

/* ── LIGHT THEME ── */
body.light,
html[data-theme="light"] body {
  --green:        oklch(62% 0.14 162);
  --green-dim:    oklch(38% 0.10 162);
  --green-faint:  oklch(88% 0.018 162);
  --bg:           oklch(96% 0.008 162);
  --bg2:          oklch(93% 0.010 162);
  --bg3:          oklch(90% 0.012 162);
  --border:       oklch(80% 0.018 162);
  --border2:      oklch(65% 0.030 162);
  --text:         oklch(16% 0.015 162);
  --text-dim:     oklch(46% 0.018 162);
  --accent:       var(--green-dim);
  --code-bg:      oklch(12% 0.018 162);
  --code-num:     oklch(35% 0.06  162);
  --tag-bg:       oklch(88% 0.020 162);
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, color 0.2s;
}

a { color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); }

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.topbar-accent { width: 4px; background: var(--accent); flex-shrink: 0; }
.topbar-inner  { display: flex; align-items: center; width: 100%; }

.site-id {
  display: flex; flex-direction: column; justify-content: center;
  padding: 14px 24px; border-right: 1px solid var(--border);
  text-decoration: none; color: inherit; min-width: 180px;
}
.site-id:hover .site-name { color: var(--accent); }
.site-name {
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  transition: color 0.15s;
}
.site-tagline {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-dim);
  letter-spacing: 0.04em; margin-top: 2px;
}

.topbar-nav { display: flex; align-items: stretch; flex: 1; }
.nav-link {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: lowercase;
  padding: 0 20px; display: flex; align-items: center; gap: 6px;
  text-decoration: none; border-right: 1px solid var(--border);
  color: var(--text-dim); transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover  { color: var(--text); background: var(--bg2); }
.nav-link.active { color: var(--accent); }
.nav-link .prompt { color: var(--accent); opacity: 0.7; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; padding: 0 16px; }
.toggle-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; padding: 6px 12px;
  border: 1px solid var(--border2); background: transparent;
  color: var(--text-dim); cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.toggle-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--green-faint); }

/* ── LAYOUT ── */
.site-wrap    { display: flex; flex: 1; }
.main-layout  { display: flex; flex: 1; min-width: 0; }

/* ── SIDEBAR ── */
.sidebar {
  width: 200px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: sticky; top: 49px;
  height: calc(100vh - 49px);
  overflow-y: auto;
}
.sidebar-section  { padding: 0 0 24px 0; }
.sidebar-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); padding: 0 20px 10px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 20px; font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s;
}
.sidebar-link:hover  { color: var(--text); background: var(--bg2); }
.sidebar-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--green-faint); }
.sidebar-divider     { border: none; border-top: 1px solid var(--border); margin: 8px 20px 16px; }

.sidebar-tag-list { padding: 0 20px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  text-decoration: none; padding: 3px 0; transition: color 0.15s;
}
.sidebar-tag:hover { color: var(--accent); }
.sidebar-tag-hash  { color: var(--accent); margin-right: 2px; }

/* ── CONTENT ── */
.content { flex: 1; min-width: 0; padding: 40px 56px 80px; }

/* ── PAGE HEADER ── */
.page-header {
  padding-bottom: 24px; margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
}
.page-header-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px;
}
.page-header-title {
  font-family: var(--font-mono); font-size: 24px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.02em;
}
.page-header-count {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-top: 4px;
}

/* ── TAG CHIP ── */
.tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--accent);
  background: var(--tag-bg); padding: 2px 7px;
  border: 1px solid var(--border2);
  text-decoration: none; display: inline-block;
}
.tag:hover { border-color: var(--accent); }

/* ── POST LIST ── */
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: grid; grid-template-columns: 120px 1fr;
  border-top: 1px solid var(--border);
  padding: 24px 0; gap: 0;
  text-decoration: none; color: inherit;
  transition: background 0.12s;
}
.post-item:hover              { background: var(--bg2); margin: 0 -56px; padding: 24px 56px; }
.post-item:last-child         { border-bottom: 1px solid var(--border); }
.post-item:hover .post-title  { color: var(--accent); }

.post-meta     { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; }
.post-date     { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.post-read-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); opacity: 0.6; }

.post-title   {
  font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  line-height: 1.35; color: var(--text); margin-bottom: 8px;
  transition: color 0.15s;
}
.post-excerpt {
  font-family: var(--font-serif); font-size: 14px; line-height: 1.65;
  color: var(--text-dim); margin-bottom: 12px;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── ARTICLE ── */
.progress-bar {
  position: fixed; top: 49px; left: 0; right: 0; height: 2px;
  background: var(--border); z-index: 99; pointer-events: none;
}
.progress-fill { height: 100%; background: var(--accent); width: 0; transition: width 0.1s; }

.article-header     { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.article-back {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.06em; margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; transition: color 0.15s;
}
.article-back:hover { color: var(--accent); }
.article-title {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  line-height: 1.3; color: var(--text); margin-bottom: 16px;
  text-wrap: pretty;
}
.article-meta-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  margin-bottom: 16px;
}
.article-meta-sep { color: var(--border2); }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.article-layout { display: flex; gap: 0; }
.article-main   { flex: 1; min-width: 0; }

.article-toc {
  width: 200px; flex-shrink: 0; padding: 0 0 0 32px;
  position: sticky; top: calc(49px + 32px);
  max-height: calc(100vh - 120px); overflow-y: auto;
  border-left: 1px solid var(--border); margin-left: 32px;
}
.toc-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px;
}
.toc-item {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  padding: 4px 0; text-decoration: none; display: block;
  line-height: 1.4; text-wrap: pretty; transition: color 0.15s;
}
.toc-item:hover    { color: var(--accent); }
.toc-item.toc-sub  { padding-left: 12px; font-size: 10px; }
.toc-item.active   { color: var(--accent); }

/* ── PROSE ── */
.prose {
  font-family: var(--font-serif); font-size: 16px;
  line-height: 1.78; color: var(--text);
}
.prose h2 {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--accent);
  margin: 40px 0 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
.prose h3 {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--text); margin: 28px 0 12px; letter-spacing: 0.03em;
}
.prose p      { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li     { margin-bottom: 6px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose em     { font-style: italic; }
.prose a      { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--accent); margin: 20px 0;
  padding: 12px 20px; background: var(--bg2);
  font-style: italic; color: var(--text-dim);
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-family: var(--font-mono); font-size: 13px;
}
.prose table th, .prose table td {
  border: 1px solid var(--border2); padding: 8px 14px; text-align: left;
}
.prose table th {
  background: var(--bg3); color: var(--accent); font-weight: 600;
  letter-spacing: 0.04em;
}
.prose table tr:nth-child(even) td { background: var(--bg2); }

/* ── CODE ── */
.prose pre, div.highlight {
  background: var(--code-bg) !important;
  border: 1px solid var(--border);
  margin: 20px 0; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6;
  position: relative;
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.code-lang {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.code-copy {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-dim);
  cursor: pointer; background: none; border: none; padding: 0;
  transition: color 0.15s;
}
.code-copy:hover { color: var(--accent); }

.prose code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--tag-bg); padding: 1px 5px;
  border: 1px solid var(--border); color: var(--accent);
}
.prose pre code, div.highlight code {
  background: none; border: none; padding: 14px;
  display: block; color: var(--text);
}

/* Chroma line numbers */
.highlight .ln { color: var(--code-num) !important; user-select: none; margin-right: 16px; }
.highlight pre { padding: 14px; margin: 0; }

/* ── TIL PAGE ── */
.til-item { border-top: 1px solid var(--border); padding: 28px 0; }
.til-item:last-child { border-bottom: 1px solid var(--border); }
.til-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.til-date   { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.til-title  { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text); flex: 1; line-height: 1.4; }
.til-body   { font-family: var(--font-serif); font-size: 15px; line-height: 1.72; color: var(--text-dim); margin-bottom: 12px; }

/* ── WHOAMI ── */
.whoami-grid { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.whoami-avatar-box {
  border: 1px solid var(--border); background: var(--bg2); aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--text-dim); font-size: 11px; gap: 8px;
}
.whoami-avatar-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.whoami-avatar-icon { font-size: 48px; line-height: 1; }
.social-link {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  text-decoration: none; padding: 9px 14px;
  border: 1px solid var(--border); margin-top: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }
.social-link svg { flex-shrink: 0; }

/* status dot */
.status-box {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  padding: 8px 12px; border: 1px solid var(--border);
  margin-top: 8px; background: var(--bg2);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 40%, transparent); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 0%, transparent); }
}

/* sidebar gif */
.whoami-gif {
  display: block; width: 100%; margin-top: 16px;
  image-rendering: pixelated;
  border: 1px solid var(--border);
}

/* glitch title */
@keyframes glitch {
  0%,85%,100% { transform: none; text-shadow: none; }
  86%  { transform: skewX(-14deg) translateX(-4px); text-shadow:  4px 0 var(--accent), -2px 0 oklch(65% 0.15 240 / 0.7); }
  87%  { transform: skewX(9deg)   translateX( 3px); text-shadow: -3px 0 oklch(72% 0.18 60 / 0.7), 2px 0 var(--accent); }
  88%  { transform: translateX(-2px); text-shadow: 2px 0 oklch(65% 0.15 240); }
  89%  { transform: none; text-shadow: none; }
  93%  { transform: none; text-shadow: none; }
  93.5%{ transform: translateX(2px); text-shadow: -2px 0 var(--accent); }
  94%  { transform: none; text-shadow: none; }
}
.page-header-title.glitch { animation: glitch 9s linear infinite; }

/* 88x31 buttons wall */
.buttons-section { margin-top: 48px; }
.buttons-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  text-transform: lowercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.buttons-wall {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.buttons-wall a { display: inline-block; line-height: 0; }
.buttons-wall img {
  width: 88px; height: 31px; display: block;
  image-rendering: pixelated;
  border: 1px solid var(--border);
  transition: border-color 0.15s, filter 0.15s;
}
.buttons-wall img:hover { border-color: var(--accent); filter: brightness(1.15); }

/* ── TAXONOMY (tags list) ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag-cloud-item {
  font-family: var(--font-mono); font-size: 12px;
  border: 1px solid var(--border); padding: 6px 14px;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.tag-cloud-item:hover { color: var(--accent); border-color: var(--accent); }
.tag-cloud-item sup   { color: var(--accent); font-size: 9px; margin-left: 4px; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border); padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  margin-left: 200px;
}
.footer-accent { color: var(--accent); }

/* ── MERMAID DIAGRAMS ── */
.mermaid {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 24px;
  margin: 20px 0;
  overflow-x: auto;
  text-align: center;
}
.mermaid svg {
  max-width: 100%;
  height: auto;
  font-family: var(--font-mono) !important;
}

/* ── HEXDUMP ── */
.hexdump-wrap {
  background: var(--code-bg);
  border: 1px solid var(--border);
  margin: 20px 0;
  overflow-x: auto;
}
.hexdump {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 14px;
  margin: 0;
  color: var(--text);
  white-space: pre;
}
.hexdump .hx-offset { color: var(--code-num); user-select: none; }
.hexdump .hx-null   { color: oklch(30% 0.04 162); }
.hexdump .hx-print  { color: var(--text); }
.hexdump .hx-high   { color: var(--accent); }
.hexdump .hx-ascii  { color: oklch(72% 0.10 95); }

/* ── TERMINAL INTRO ── */
.terminal-intro {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 40px;
  position: relative;
}
.terminal-intro-inner { display: flex; flex-direction: column; gap: 2px; }
.ti-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ti-output { flex-direction: column; padding-left: 0; margin: 2px 0 6px; gap: 2px; }
.ti-prompt { color: var(--text-dim); white-space: nowrap; }
.ti-sep    { color: var(--accent); }
.ti-path   { color: var(--accent); }
.ti-cmd    { color: var(--text); }
.ti-cursor {
  display: inline-block; width: 9px; color: var(--accent);
  animation: blink 1s step-end infinite;
}
.ti-cursor-idle { animation: blink 1.2s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ti-comment { color: var(--text-dim); font-style: italic; }
.ti-dim     { color: var(--text-dim); }
.ti-accent  { color: var(--accent); }
.ti-file    { color: var(--text); }
.ti-skip {
  position: absolute; top: 0; right: 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--text-dim); background: none; border: none;
  cursor: pointer; padding: 2px 0; transition: color 0.15s;
}
.ti-skip:hover { color: var(--accent); }

/* ── PAGEFIND SEARCH OVERRIDES ── */
#search { margin-top: 8px; }
.pagefind-ui__search-input {
  font-family: var(--font-mono) !important;
  font-size: 14px !important;
  background: var(--bg2) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 0 !important;
  color: var(--text) !important;
  /* Keep room for Pagefind's leading magnifier icon and trailing clear button */
  padding: 10px 52px 10px 42px !important;
}
.pagefind-ui__search-input:focus {
  outline: none !important;
  border-color: var(--accent) !important;
}
.pagefind-ui__search-clear {
  font-family: var(--font-mono) !important;
  color: var(--text-dim) !important;
  background: none !important;
}
.pagefind-ui__results-area { margin-top: 24px; }
.pagefind-ui__result {
  border-top: 1px solid var(--border) !important;
  border-bottom: none !important;
  padding: 20px 0 !important;
  border-radius: 0 !important;
}
.pagefind-ui__result:last-child { border-bottom: 1px solid var(--border) !important; }
.pagefind-ui__result-title a {
  font-family: var(--font-mono) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  text-decoration: none !important;
}
.pagefind-ui__result-title a:hover { color: var(--accent) !important; }
.pagefind-ui__result-excerpt {
  font-family: var(--font-serif) !important;
  font-size: 14px !important;
  color: var(--text-dim) !important;
  margin-top: 6px !important;
}
.pagefind-ui__result-tags { display: none !important; }
mark, .pagefind-ui__result-excerpt mark {
  background: var(--green-faint) !important;
  color: var(--accent) !important;
}
.pagefind-ui__message {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  color: var(--text-dim) !important;
}
.pagefind-ui__button {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  border: 1px solid var(--border2) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-dim) !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
}
.pagefind-ui__button:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* ── HEADING ANCHORS ── */
.heading-anchor {
  opacity: 0; margin-left: 8px;
  font-size: 0.75em; color: var(--text-dim);
  text-decoration: none; transition: opacity 0.15s, color 0.15s;
  user-select: none;
}
.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor { opacity: 1; }
.heading-anchor:hover { color: var(--accent); }

/* ── POST NAV (prev / next) ── */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.post-nav-prev { justify-self: start; }
.post-nav-next  { justify-self: end; text-align: right; }
.post-nav-link {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: inherit; transition: color 0.15s;
}
.post-nav-link:hover .post-nav-title { color: var(--accent); }
.post-nav-dir {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase;
}
.post-nav-title {
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 600; color: var(--text); line-height: 1.4;
  transition: color 0.15s;
}

/* ── CALLOUTS ── */
.callout {
  display: flex; flex-direction: column; gap: 6px;
  margin: 20px 0; padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg2);
}
.callout-note    { border-color: var(--accent); }
.callout-warning { border-color: oklch(72% 0.18 60); background: oklch(12% 0.04 60); }
.callout-tip     { border-color: oklch(72% 0.18 145); background: oklch(11% 0.04 145); }
.callout-info    { border-color: oklch(65% 0.15 240); background: oklch(11% 0.04 240); }
.callout-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.callout-warning .callout-label { color: oklch(72% 0.18 60); }
.callout-tip     .callout-label { color: oklch(72% 0.18 145); }
.callout-info    .callout-label { color: oklch(65% 0.15 240); }
.callout-body { font-family: var(--font-serif); font-size: 15px; line-height: 1.7; color: var(--text); }
.callout-body p:last-child { margin-bottom: 0; }

/* ── UPDATED DATE ── */
.article-meta-updated { color: var(--text-dim); font-style: italic; }

/* ── 404 ── */
.notfound-wrap {
  display: flex; flex-direction: column; gap: 12px;
  padding: 60px 0;
}
.notfound-code {
  font-family: var(--font-mono); font-size: 72px; font-weight: 700;
  color: var(--border2); line-height: 1;
}
.notfound-msg {
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
  letter-spacing: 0.06em;
}
.notfound-body {
  font-family: var(--font-serif); font-size: 15px; color: var(--text-dim);
  margin-top: 8px; display: flex; flex-direction: column; gap: 20px;
}
.notfound-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── ARTICLE SERIES ── */
.article-series {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.article-series-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.article-series-links { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar    { display: none; }
  .site-footer { margin-left: 0; }
  .content    { padding: 32px 24px 60px; }
  .post-item  { grid-template-columns: 1fr; }
  .post-item:hover { margin: 0 -24px; padding: 24px; }
  .whoami-grid    { grid-template-columns: 1fr; }
  .article-toc    { display: none; }
}
