/* h0bb3's log — handwritten, no frameworks. A hint of terminal: Tokyo Night colours, monospace chrome,
   tiles framed like tiling windows. Light (Tokyo Night Day) and dark follow the system. */
@view-transition { navigation: auto; }

:root {
  color-scheme: light dark;
  --bg: light-dark(#e1e2e7, #1a1b26);
  --bg-deep: light-dark(#d5d6db, #16161e);
  --bg2: light-dark(#d0d2da, #222436);
  --card: light-dark(#eceef3, #1f2335);
  --fg: light-dark(#343b58, #c0caf5);
  --muted: light-dark(#6172b0, #737aa2);
  --faint: light-dark(#8990b3, #545c7e);
  --line: light-dark(#c4c8da, #2f334d);
  --blue: light-dark(#2e7de9, #7aa2f7);
  --magenta: light-dark(#9854f1, #bb9af7);
  --cyan: light-dark(#007197, #7dcfff);
  --green: light-dark(#587539, #9ece6a);
  --orange: light-dark(#b15c00, #ff9e64);
  --red: light-dark(#f52a65, #f7768e);
  --accent: var(--blue);
  --accent-ink: light-dark(#fff, #16161e);
  --hypr: linear-gradient(45deg, #33ccff, #00ff99);
  --code-bg: light-dark(#d9dbe3, #16161e);
  --shadow-lg: light-dark(0 12px 32px -14px #3b4261aa, 0 18px 50px -16px #000c);
  --sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrainsMono Nerd Font", "JetBrains Mono", "Cascadia Code", "Cascadia Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 42rem;
  --wide: 72rem;
  --r: 10px;
  --gap: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.7 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, iframe, canvas { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in oklab, var(--blue) 35%, transparent); }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; }
p, li { text-wrap: pretty; }
.mono { font-family: var(--mono); }
.dim { color: var(--muted); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--card); padding: .5rem 1rem; }
.wrap { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }
.wrap.wide { width: min(100% - 2.5rem, var(--wide)); }

/* ---------- top bar (a nod to waybar) ---------- */
.site-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem max(1.25rem, (100% - var(--wide)) / 2);
  font: 500 .84rem/1 var(--mono);
  background: color-mix(in oklab, var(--bg-deep) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-head;
}
.brand { display: flex; align-items: center; gap: .6rem; font: 700 .95rem/1 var(--mono); letter-spacing: -.01em; text-decoration: none; }
.brand:hover { color: inherit; }
.h0 {
  display: inline-grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 6px;
  font: 800 .86rem/1 var(--mono); letter-spacing: -.06em; color: var(--accent-ink);
  background: var(--blue); box-shadow: inset 0 0 0 1px #fff3;
  transition: transform .4s var(--ease), background .3s;
}
.brand:hover .h0 { background: var(--magenta); transform: rotate(-6deg); }
.brand .dim { font-weight: 500; }
.site-head nav { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.site-head nav a { color: var(--muted); text-decoration: none; padding: .38rem .6rem; border-radius: 5px; transition: background .2s, color .2s; }
.site-head nav a b { color: var(--faint); font-weight: 500; margin-right: .35rem; }
.site-head nav a:hover { color: var(--fg); background: var(--bg2); }
.site-head nav a:hover b { color: var(--blue); }
.clock { color: var(--fg); padding: .38rem .2rem .38rem .7rem; margin-left: .3rem; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.brand, .site-head nav a { white-space: nowrap; }
@media (max-width: 720px) {
  .site-head nav a[title], .clock, .site-head nav a b { display: none; }
  .site-head { padding-block: .5rem; }
  .site-head nav { flex-wrap: nowrap; gap: 0; }
  .site-head nav a { padding: .38rem .45rem; font-size: .8rem; }
}
@media (max-width: 400px) { .brand .dim { display: none; } }
.site-foot { margin-top: 7rem; padding: 2.5rem 1.25rem 3rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font: .8rem/1.8 var(--mono); }
.site-foot .h0 { width: 1.6rem; height: 1.6rem; font-size: .72rem; margin-bottom: .6rem; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.aurora { position: absolute; inset: -8rem 0 0; z-index: -1; overflow: hidden; pointer-events: none;
  mask: linear-gradient(#000 10%, #0008 50%, transparent 92%); -webkit-mask: linear-gradient(#000 10%, #0008 50%, transparent 92%); }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(110px); opacity: light-dark(.28, .22); }
.aurora i:nth-child(1) { background: var(--blue); left: -8vmax; top: -14vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: var(--cyan); right: -10vmax; top: -6vmax; animation: drift2 31s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: var(--magenta); left: 30%; top: 4vmax; width: 34vmax; height: 34vmax; animation: drift3 23s ease-in-out infinite alternate; }
/* faint terminal grid */
.aurora::before { content: ""; position: absolute; inset: 0; opacity: light-dark(.35, .5);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; mask: radial-gradient(ellipse at 30% 30%, #000, transparent 70%); -webkit-mask: radial-gradient(ellipse at 30% 30%, #000, transparent 70%); }
@keyframes drift1 { to { transform: translate(14vmax, 8vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 10vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-8vmax, -6vmax) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 500 .85rem/1 var(--mono); color: var(--muted);
  padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in oklab, var(--bg-deep) 70%, transparent); }
.eyebrow .ps { color: var(--green); }
.eyebrow .path { color: var(--blue); }
.hero h1 { font: 800 clamp(2.8rem, 9.5vw, 6.8rem)/.95 var(--mono); letter-spacing: -.055em; margin: 1.4rem 0 1.4rem; }
.hero h1 .grad { background: linear-gradient(100deg, var(--blue) 5%, var(--magenta) 55%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cursor { display: inline-block; width: .52em; height: .82em; margin-left: .06em; vertical-align: -.04em; background: var(--fg); opacity: .7; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.hero .lede { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); margin: 0; max-width: 36em; }
.stats { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; font: .85rem/1.4 var(--mono); color: var(--muted); }
.stats b { color: var(--fg); font-weight: 700; margin-right: .35rem; font-variant-numeric: tabular-nums; }
.stats li:nth-child(1) b { color: var(--blue); }
.stats li:nth-child(2) b { color: var(--green); }
.stats li:nth-child(3) b { color: var(--magenta); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 5rem 0 1.3rem; }
.section-title { font: 700 clamp(1.2rem, 2.4vw, 1.55rem)/1.1 var(--mono); letter-spacing: -.02em; margin: 0; }
.section-title .ps { color: var(--green); margin-right: .55rem; }
.section-title .cmd { color: var(--muted); font-weight: 500; }
.section-head a { font: .82rem var(--mono); color: var(--muted); text-decoration: none; }
.section-head a:hover { color: var(--accent); }

/* ---------- projects: tiled like a window manager ---------- */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(15rem, auto); grid-auto-flow: dense; }
.bento .tile:nth-child(2) { grid-column: span 2; }
.tile { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); background: #111; color: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 16rem; transition: transform .5s var(--ease); }
.tile.feature { grid-column: span 2; grid-row: span 2; min-height: 34rem; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #16161ee0 0%, #16161e80 35%, #16161e00 62%); }
.tile:not(.feature)::before { background: linear-gradient(to top, #16161ef2 0%, #16161ec8 42%, #16161e00 78%); }
/* the window border: inactive grey, active Hyprland gradient */
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 2px;
  background: #59595980; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: background .3s; }
.tile:hover::after, .tile:focus-within::after { background: var(--hypr); }
.tile:hover { transform: translateY(-3px); }
.tile:hover img { transform: scale(1.04); }
.tile-body { padding: clamp(1.2rem, 2.5vw, 2rem); }
.tile:not(.feature) .tile-body { padding: 1.1rem 1.4rem 1.3rem; }
.tile .kind { display: flex; align-items: center; gap: .55rem; font: 500 .75rem/1 var(--mono); color: #a9b1d6; margin: 0 0 .6rem; }
.tile:not(.feature) .kind { margin-bottom: .45rem; }
.tile .kind { width: fit-content; padding: .2rem .5rem .2rem .2rem; border-radius: 6px; background: #16161eb8; backdrop-filter: blur(6px); }
.live { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .55rem .25rem .45rem; border-radius: 5px; font-weight: 600; color: #9ece6a; background: #9ece6a1f; }
.live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #9ece6a; box-shadow: 0 0 0 0 #9ece6a; animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .42rem #9ece6a00; } 100% { box-shadow: 0 0 0 0 #9ece6a00; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }
.tile h3, .tile p { text-shadow: 0 1px 12px #0008; }
.tile h3 { font: 800 clamp(1.4rem, 2.4vw, 1.8rem)/1.05 var(--mono); letter-spacing: -.045em; margin: 0 0 .5rem; }
.tile.feature h3 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.tile:not(.feature) h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.tile h3 a { text-decoration: none; color: inherit; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }  /* whole tile clickable */
.tile p.blurb { margin: 0 0 1.1rem; color: #c0caf5e0; font-size: .98rem; line-height: 1.55; max-width: 34em; }
.tile:not(.feature) p.blurb { font-size: .9rem; margin-bottom: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--blue); color: var(--accent-ink); font: 700 .85rem/1 var(--mono);
  padding: .62rem 1rem; border-radius: 6px; text-decoration: none; transition: filter .2s, transform .25s var(--ease); }
.btn:hover { color: var(--accent-ink); filter: brightness(1.1); transform: translateY(-1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.tile .btn { background: #c0caf5; color: #16161e; }
.tile .btn:hover { color: #16161e; background: #7dcfff; }
.tile .link { color: #c0caf5; font: 500 .82rem var(--mono); text-decoration-color: #c0caf580; }
.tile .link:hover { color: #7dcfff; text-decoration-color: #7dcfff; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.feature { grid-column: span 2; grid-row: auto; min-height: 26rem; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.feature, .bento .tile:nth-child(2) { grid-column: auto; min-height: 22rem; }
}

/* ---------- latest ---------- */
.latest { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { color: inherit; border-color: var(--cyan); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, color-mix(in oklab, var(--blue) 55%, var(--bg)), color-mix(in oklab, var(--magenta) 55%, var(--bg))); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.thumb span { font: 800 3rem/1 var(--mono); color: #fff9; letter-spacing: -.06em; }
.card-body { padding: 1.05rem 1.25rem 1.25rem; }
.card time { font: .75rem var(--mono); color: var(--green); }
.card h3 { font: 700 1.08rem/1.3 var(--mono); letter-spacing: -.03em; margin: .4rem 0 .45rem; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- archive / tags: a little like ls -l ---------- */
.archive { max-width: 56rem; }
.year { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 1rem; border-top: 1px dashed var(--line); padding-top: 1rem; margin-bottom: 1.5rem; scroll-margin-top: 5rem; }
.year h3 { margin: .2rem 0 0; font: 700 .95rem/1.6 var(--mono); color: var(--magenta); font-variant-numeric: tabular-nums; }
.year h3::after { content: "/"; color: var(--faint); }
.list { list-style: none; margin: 0; padding: 0; }
.list a { display: flex; align-items: baseline; gap: 1.1rem; padding: .34rem .6rem; margin-inline: -.6rem; border-radius: 6px; text-decoration: none; transition: background .15s; }
.list a:hover { background: var(--bg2); color: inherit; }
.list time { flex: none; order: -1; color: var(--faint); font: .8rem var(--mono); font-variant-numeric: tabular-nums; min-width: 3.6rem; }
.list a:hover time { color: var(--green); }
.list .t { font-weight: 520; }
.list a:hover .t { color: var(--blue); }
.list a::after { content: "↵"; margin-left: auto; color: var(--blue); font: .85rem var(--mono); opacity: 0; transition: opacity .15s; }
.list a:hover::after { opacity: 1; }
@media (max-width: 560px) { .year { grid-template-columns: 1fr; } }

.tags { list-style: none; padding: 0; margin: 1.3rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags a { display: inline-block; font: .76rem/1.5 var(--mono); padding: .18rem .6rem; border-radius: 5px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.tags a::before { content: "#"; color: var(--faint); }
.tags a:hover { color: var(--cyan); border-color: var(--cyan); }
.tags small { opacity: .7; margin-left: .3rem; }
.page-head { padding: clamp(3rem, 8vw, 5.5rem) 0 1.5rem; }
.page-head h1 { font: 800 clamp(2.4rem, 6vw, 4rem)/1 var(--mono); letter-spacing: -.05em; margin: 0; }

/* ---------- post ---------- */
.post-head { padding: clamp(3rem, 8vw, 5.5rem) 0 1.2rem; }
.post-head h1 { font: 800 clamp(2rem, 5vw, 3.2rem)/1.06 var(--mono); letter-spacing: -.05em; margin: .6rem 0 .9rem; }
.meta { margin: 0; color: var(--muted); font: .8rem var(--mono); }
.meta time { color: var(--green); }
.dek { font-size: 1.2rem; color: var(--muted); margin: 0; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 6; transform-origin: 0 50%; transform: scaleX(0); background: var(--hypr); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.prose { font: 400 1.1rem/1.78 var(--sans); }
.prose > * { margin-block: 0 1.2em; }
.prose h1, .prose h2 { font: 700 1.45rem/1.25 var(--mono); letter-spacing: -.035em; margin: 2.4em 0 .6em; }
.prose h2::before, .prose h1::before { content: "## "; color: var(--faint); font-weight: 500; }
.prose h3 { font: 700 1.15rem/1.3 var(--mono); letter-spacing: -.03em; margin: 2em 0 .5em; }
.prose h4 { font: 650 1rem/1.4 var(--mono); margin: 1.8em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose ul li::marker { content: "› "; color: var(--blue); font-family: var(--mono); }
.prose ol li::marker { color: var(--muted); font-family: var(--mono); font-size: .9em; }
.prose strong { font-weight: 650; }
.prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--magenta); color: var(--muted); font-style: italic; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; font: .9rem/1.5 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .55em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 .74rem var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* images break out of the text column; an italic line right after an image is its caption */
.prose p:has(> img) { margin-inline: min(0px, (var(--measure) - min(100vw - 2.5rem, 58rem)) / 2); margin-block: 2em; }
.prose img { display: block; width: 100%; border-radius: var(--r); box-shadow: var(--shadow-lg); outline: 1px solid var(--line); }
.prose p:has(> img) > em { display: block; font: italic .88rem/1.55 var(--sans); color: var(--muted); margin-top: .8rem; padding-inline: max(0px, (min(100vw - 2.5rem, 58rem) - var(--measure)) / 2); }
.prose iframe, .prose video { display: block; width: 100%; border-radius: var(--r); }
.prose canvas { display: block; margin: 0 auto; border-radius: 8px; background: #000; }

/* code: a terminal window */
code, kbd, pre { font-family: var(--mono); font-size: .86em; }
.prose :not(pre) > code { background: var(--code-bg); border: 1px solid var(--line); padding: .08em .35em; border-radius: 4px; color: light-dark(#8c4351, #f7768e); }
.prose pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem; overflow-x: auto; line-height: 1.55; font-size: .84rem; tab-size: 4; }
.prose div.highlighter-rouge, .prose figure.highlight { position: relative; margin: 0 0 1.3em; }
.prose div.highlighter-rouge pre { padding-top: 2.3rem; }
.prose div.highlighter-rouge::before { content: ""; position: absolute; top: .85rem; left: 1rem; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--red); box-shadow: 1rem 0 var(--orange), 2rem 0 var(--green); opacity: .8; }
.prose .highlight pre { margin: 0; }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cp, .highlight .cd { color: light-dark(#848cb5, #565f89); font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt, .highlight .kc, .highlight .kp { color: var(--magenta); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sh, .highlight .se, .highlight .sr { color: var(--green); }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .il { color: var(--orange); }
.highlight .nf, .highlight .fm, .highlight .nc, .highlight .nn { color: var(--blue); }
.highlight .nb, .highlight .bp, .highlight .nt, .highlight .na { color: var(--cyan); }
.highlight .o, .highlight .ow, .highlight .p { color: light-dark(#006a83, #89ddff); }
.highlight .err { color: inherit; background: none; }

/* buttons inside posts (the WASM demos) */
.prose button { font: 500 .82rem var(--mono); padding: .45rem .85rem; margin: .2rem; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.prose button:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.prose button:disabled { opacity: .45; cursor: default; }
.prose button.active { background: var(--blue); border-color: var(--blue); color: var(--accent-ink); }
.prose .fps-display, .prose .info { font: .82rem/1.5 var(--mono); color: var(--muted); margin: .6rem 0; }

/* post footer */
.post-foot { margin-top: 4.5rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 3.5rem; }
.pager a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font: 700 .95rem/1.35 var(--mono); letter-spacing: -.03em; transition: border-color .2s, transform .3s var(--ease); }
.pager a:hover { border-color: var(--cyan); color: inherit; transform: translateY(-2px); }
.pager small { display: block; font: 500 .72rem/1.9 var(--mono); letter-spacing: 0; color: var(--faint); }
.pager .prev small::before { content: "← "; }
.pager .next small::after { content: " →"; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* comments */
.comments { border-top: 1px solid var(--line); padding-top: 1.8rem; }
.comments-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.comments-head h2 { font: 700 1.25rem var(--mono); letter-spacing: -.03em; margin: 0; }
.comments-head h2::before { content: "❯ "; color: var(--green); }
.comments-head .count { color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.comment-list { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: var(--gap); }
.comment { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; }
.comment header { display: flex; align-items: center; gap: .6rem; font: .8rem var(--mono); flex-wrap: wrap; }
.comment header img { border-radius: 50%; }
.comment header a { font-weight: 700; text-decoration: none; color: var(--blue); }
.comment header time { color: var(--faint); }
.badge { font-size: .68rem; font-weight: 600; padding: .08rem .45rem; border-radius: 4px; border: 1px solid var(--magenta); color: var(--magenta); }
.comment-text { font-size: .97rem; overflow-wrap: anywhere; margin-top: .45rem; }
.comment-text > :last-child { margin-bottom: 0; }
.comment-text pre { background: var(--code-bg); padding: .8rem 1rem; border-radius: 8px; overflow-x: auto; font-size: .82rem; }

/* ---------- scroll reveal (progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  }
}
