@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/JetBrainsMono-Bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/JetBrainsMono-Italic.woff2") format("woff2"); }
:root {
  --ink: #000;
  --paper: #fff;
  --faint: #6b6b6b;
  --gutter: 24px;
  --page: 760px;
  --out: cubic-bezier(.2, .7, .2, 1);
  --inout: cubic-bezier(.65, 0, .35, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #fff; --paper: #000; --faint: #8a8a8a; }
}
:root[data-theme="dark"] { --ink: #fff; --paper: #000; --faint: #8a8a8a; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.75;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
}
.page { position: relative; z-index: 1; max-width: var(--page); margin: 0 auto; padding: 56px var(--gutter) 88px; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness .15s, text-underline-offset .15s; }
a:hover { text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
code, pre { font-family: inherit; font-size: inherit; }
p, li { margin: 0 0 12px; }
code { transition: background-color .15s, color .15s; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k: 1.1; } }
:root[data-theme="dark"] { --k: 1.1; }
/* mesh gradient: slow gray blobs behind everything, plus film grain on top */
.mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) calc(var(--a, 9) * var(--k, .45) * 1%), transparent), transparent); will-change: transform; animation: blob 40s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { --a: 11; left: -20vmax; top: -25vmax; animation-duration: 46s; }
.mesh i:nth-child(2) { --a: 8; right: -25vmax; top: 10vh; width: 80vmax; height: 80vmax; animation-duration: 58s; animation-delay: -18s; }
.mesh i:nth-child(3) { --a: 10; left: 5vw; bottom: -35vmax; animation-duration: 52s; animation-delay: -30s; }
.mesh i:nth-child(4) { --a: 6; right: 15vw; bottom: -20vmax; width: 50vmax; height: 50vmax; animation-duration: 38s; animation-delay: -8s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(14vmax, 8vmax) scale(1.18); } 66% { transform: translate(-8vmax, 16vmax) scale(.92); } 100% { transform: translate(10vmax, -10vmax) scale(1.1); } }
.grain { position: fixed; inset: -50%; z-index: 85; width: 200%; height: 200%; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .9s steps(1) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-7%, 4%); } 33% { transform: translate(5%, -8%); } 50% { transform: translate(-3%, 9%); } 67% { transform: translate(8%, 3%); } 83% { transform: translate(-6%, -5%); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { filter: invert(1); opacity: .07; } }
:root[data-theme="dark"] .grain { filter: invert(1); opacity: .07; }

/* header: the rule draws itself on load */
.top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding-bottom: 14px; border-bottom: 1px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1px no-repeat;
  background-origin: border-box;
  animation: draw 1.1s var(--inout) both, fade .8s ease both;
}
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top nav a { margin-left: 18px; }
.theme { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin-left: 18px; cursor: pointer; }
.theme:hover { text-decoration: underline; text-underline-offset: 3px; }
.theme .ico { display: inline-block; transition: transform .6s var(--out); }
@keyframes draw { from { background-size: 0 1px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }

/* intro: the name is typed, the cursor travels with it */
.hero { padding: 96px 0 72px; }
.hero h1 { --n: 13; --d: 1s; font-size: clamp(34px, 8vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 28px; }
.type { display: inline-block; animation: typein calc(var(--n) * 70ms) steps(var(--n)) var(--d, .25s) both; }
@keyframes typein { from { clip-path: inset(-.1em 100% -.35em 0); } to { clip-path: inset(-.1em 0 -.35em 0); } }
.cur {
  display: inline-block; width: 0.55em; height: 0.82em; margin-left: 0.06em; background: var(--ink); vertical-align: -0.04em;
  animation: curmove calc(var(--n) * 70ms) steps(var(--n)) var(--d, .25s) backwards, blink 1.2s steps(1) calc(var(--n) * 70ms + var(--d, .25s)) infinite;
}
@keyframes curmove { from { transform: translateX(calc(var(--n) * -0.565em)); } }
@keyframes blink { 50% { opacity: 0; } }
.lead { margin: 0 0 14px; }
.hero p { max-width: 60ch; }
.hero .lead { animation: up .9s var(--out) 2.05s both; }
.hero .more { color: var(--faint); animation: up .9s var(--out) 2.2s both; }
.hero { position: relative; }
.hero > :not(.sky) { position: relative; z-index: 1; }
.prompt { margin: 0 0 18px; font-size: 13px; color: var(--faint); }
.prompt span { display: inline-block; animation: typein calc(var(--n) * 70ms) steps(var(--n)) .2s both; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 3ch; margin: 28px 0 0; font-size: 12px; color: var(--faint); animation: up .9s var(--out) 2.35s both; }
.stats b { color: var(--ink); font-weight: 700; }

/* clouds drift behind the intro */
.sky { position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.cloud { position: absolute; margin: 0; color: var(--faint); opacity: .5; line-height: 1.15; font-size: 14px; white-space: pre; animation: drift linear infinite; }
.c1 { top: 12%; animation-duration: 160s; animation-delay: -40s; }
.c2 { top: 52%; animation-duration: 230s; animation-delay: -150s; opacity: .32; }
.c3 { top: 78%; animation-duration: 120s; animation-delay: -95s; opacity: .4; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }

/* ticker between the index and the projects */
.ticker { margin-top: 40px; overflow: hidden; border-bottom: 1px solid var(--faint); padding-bottom: 6px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.ticker > div { display: inline-flex; animation: ticker 60s linear infinite; }
.ticker:hover > div { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }



/* index: a row fills from the left, the arrow drops in */
.index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { margin: 0; border-bottom: 1px solid var(--ink); }
.index a { position: relative; isolation: isolate; display: grid; grid-template-columns: 5ch 17ch 1fr; padding: 9px 0; text-decoration: none; transition: color .2s; }
.index a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--inout); }
.index a::after { content: "↓"; position: absolute; right: 1ch; top: 9px; color: var(--paper); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .3s var(--out); }
.index a:hover, .index a:focus-visible { color: var(--paper); outline: none; }
.index a:hover::before, .index a:focus-visible::before { transform: scaleX(1); }
.index a:hover::after, .index a:focus-visible::after { opacity: 1; transform: none; }
.index .n, .index .tag { color: var(--faint); transition: color .2s, transform .3s var(--out); }
.index a:hover .n, .index a:focus-visible .n, .index a:hover .tag, .index a:focus-visible .tag { color: var(--paper); }
.index a:hover .name, .index a:focus-visible .name, .index a:hover .tag, .index a:focus-visible .tag { transform: translateX(1ch); }
.index .name { transition: transform .3s var(--out); }
.index .n { padding-left: 1ch; }

/* groups */
.group { margin-top: 112px; }
.group > header {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 14px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1px no-repeat;
  background-origin: border-box;
}
.group h2 { font-size: 14px; margin: 0; }
.group > header p { margin: 0; color: var(--faint); text-align: right; }

/* projects */
.project { padding-top: 56px; scroll-margin-top: 24px; }
.project h3 { width: fit-content; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 4px; }
.project h3 .n { font-size: 14px; font-weight: 400; color: var(--faint); margin-right: 2ch; vertical-align: 0.15em; }
.mark { display: inline-block; font-weight: 400; color: var(--faint); margin-left: 1ch; transition: transform .7s var(--out); }
.tagline { color: var(--faint); margin: 0 0 24px; }
.project ul { list-style: none; padding: 0; margin: 24px 0; max-width: 64ch; }
.project li { position: relative; padding-left: 3ch; }
.project li::before { content: "—"; position: absolute; left: 0; color: var(--faint); transition: transform .25s var(--out), color .25s; }
.project li:hover::before { transform: translateX(.6ch); color: var(--ink); }
.cmdwrap { position: relative; margin: 0 0 16px; }
.cmd { border: 1px solid var(--ink); padding: 14px 16px; margin: 0; line-height: 1.6; white-space: pre; overflow-x: auto; transition: background-color .2s, color .2s; }
.copy { position: absolute; top: 7px; right: 8px; font: inherit; font-size: 12px; line-height: 1.4; color: var(--faint); background: var(--paper); border: 0; padding: 0 4px; cursor: pointer; transition: opacity .2s, color .2s; }
.copy:hover, .copy.ok { color: var(--ink); }
@media (hover: hover) {
  .copy { opacity: 0; }
  .cmdwrap:hover .copy, .copy:focus-visible, .copy.ok { opacity: 1; }
  .project:hover .mark.rot { transform: rotate(180deg); }
  .project:hover .mark.bob { animation: bob 1.6s ease-in-out infinite; }
  .project:hover .mark.pulse { animation: pulse 1s steps(3) infinite; }
}
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes pulse { 50% { opacity: .25; } }
.meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); margin: 0; }
.meta a { color: var(--ink); margin-left: 2ch; }
.meta a:first-child { margin-left: 0; }


/* windows: terminal captures print line by line, screenshots wipe in */
.win { margin: 0 0 8px; border: 1px solid var(--ink); container-type: inline-size; overflow: hidden; }
.win figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 5px 12px; border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--faint); }
.win .try { animation: fade 1s ease 2.2s both; }
.shot { display: block; width: 100%; height: auto; transition: transform 1.2s var(--out); }
.zoombtn { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; cursor: zoom-in; overflow: hidden; }
@media (hover: hover) { .zoombtn:hover .shot { transform: scale(1.025); } }
.tui {
  margin: 0;
  padding: 12px 0;
  font-size: min(14px, calc((min(100vw, var(--page)) - 2 * var(--gutter) - 2px) / 50.4));
  font-size: min(14px, 100cqw / 50.4);
  line-height: 1.3;
  white-space: pre;
  overflow: hidden;
}
.rvw:not(.in) .tui, .rvw:not(.in) .shot { clip-path: inset(0 0 100% 0); }
.rvw.in .tui { animation: print calc(var(--lines, 14) * 55ms) steps(var(--lines, 14)) .1s both; }
.rvw.in .shot { animation: print 1.1s var(--inout) .1s both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.tui .b { font-weight: 700; }
.tui .m, .tui .d { color: var(--faint); }
.tui .i { font-style: italic; }
.tui .u { text-decoration: underline; }
.tui .s { text-decoration: line-through; }
.tui .r { background: var(--ink); color: var(--paper); }
.tui .r.m { color: color-mix(in srgb, var(--paper) 62%, var(--ink)); }
.tui .g { display: inline-block; width: 1ch; text-align: center; overflow: hidden; vertical-align: bottom; }
/* todoterm is alive: rows are lines, the selected one is inverted */
.tui .ln { display: block; }
.tui .t { margin-left: 1ch; }
.tui .t .tx { text-decoration: none; }
.tui .t.done .tx { text-decoration: line-through; color: var(--faint); }
.tui .t.done .b { font-weight: 400; color: var(--faint); }
.tui .t.sel { background: var(--ink); color: var(--paper); }
.tui .t.sel .m, .tui .t.sel .box, .tui .t.sel.done .tx, .tui .t.sel.done .b { color: color-mix(in srgb, var(--paper) 62%, var(--ink)); }
.win { position: relative; }
.win.on { outline: 1px solid var(--ink); outline-offset: 3px; }
.win .try { transition: opacity .2s; }
.tui[tabindex] { cursor: default; outline: none; }
.tui .cur2 { background: var(--ink); animation: blink 1.1s steps(1) infinite; }
.tui .kb { cursor: pointer; }
.tui .kb:hover { text-decoration: underline; }
.tui .t, .tui .jr { cursor: pointer; }
.jta { position: absolute; z-index: 2; margin: 0; padding: 0; border: 0; outline: 1px solid var(--faint); outline-offset: 4px; resize: none; overflow: auto; scrollbar-width: none; background: var(--paper); color: var(--ink); font: inherit; line-height: 1.3; white-space: pre-wrap; display: none; }
.jta::-webkit-scrollbar { display: none; }
.tui[tabindex]:focus-visible { outline: 1px solid var(--ink); outline-offset: -5px; }

/* footer */
.bottom { margin-top: 112px; padding-top: 14px; border-top: 1px solid var(--ink); color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bottom a { color: var(--ink); }
.bottom .up { margin-right: 2ch; }
.bottom .wx { margin-left: auto; margin-right: auto; }

/* reveal on scroll (the classes are added by script.js, so no script means no hidden content) */
.rv { transition: opacity .7s ease, transform .7s var(--out), background-size 1s var(--inout); }
.rv:not(.in) { opacity: 0; transform: translateY(14px); }
.group > header.rv:not(.in) { background-size: 0 1px; }

/* scroll progress and a vim-style status line */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; background: var(--ink); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.sl {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 2ch; height: 22px;
  background: color-mix(in srgb, var(--ink) 7%, var(--paper)); color: var(--faint); border-top: 1px solid color-mix(in srgb, var(--ink) 22%, var(--paper)); font-size: 12px; line-height: 21px; white-space: nowrap; overflow: hidden;
  transform: translateY(100%); transition: transform .4s var(--out); pointer-events: none;
}
.sl.show { transform: none; }
.sl .mode { padding: 0 1.5ch; background: color-mix(in srgb, var(--ink) 16%, var(--paper)); color: var(--ink); font-weight: 700; }
.sl .where { color: var(--ink); }
.sl .grow { flex: 1; }
.sl .hint { opacity: .8; }
.sl .pct { padding-right: 2ch; min-width: 6ch; text-align: right; }

/* ascii rain */
.rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .9s; }
.rain.on { opacity: 1; }

/* dialogs: help and screenshot viewer */
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--ink); padding: 0; max-width: calc(100vw - 32px); font: inherit; }
dialog::backdrop { background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .25s var(--out); }
dialog[open]::backdrop { animation: fade .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.help .pad { padding: 20px 24px 8px; }
.help h2 { font-size: 14px; margin: 0 0 14px; }
.help dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 3ch; margin: 0 0 14px; }
.help dt { white-space: nowrap; }
.help dd { margin: 0; color: var(--faint); }
.help p { color: var(--faint); font-size: 12px; margin: 0 0 12px; }
kbd { font: inherit; font-size: 12px; border: 1px solid var(--ink); padding: 0 .8ch; margin-right: .5ch; }
.lb { width: min(96vw, 1424px); max-height: 94vh; overflow: auto; cursor: zoom-out; }
.lb img { display: block; width: 100%; height: auto; }

/* details */
.skip { position: absolute; left: 16px; top: -48px; z-index: 120; padding: 4px 12px; background: var(--ink); color: var(--paper); text-decoration: none; transition: top .2s var(--out); }
.skip:focus-visible { top: 12px; outline: none; }
html { -webkit-tap-highlight-color: transparent; caret-color: var(--ink); }
html:has(dialog[open]) { overflow: hidden; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.group { scroll-margin-top: 24px; }

/* toasts, palette */
.toast { position: fixed; right: 16px; bottom: 36px; z-index: 96; max-width: calc(100vw - 32px); padding: 3px 12px; background: color-mix(in srgb, var(--ink) 7%, var(--paper)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 30%, var(--paper)); font-size: 12px; line-height: 1.6; pointer-events: none; opacity: 0; transform: translateY(8px); }
.toast.show { animation: toast 2.2s var(--out) both; }
@keyframes toast { 0% { opacity: 0; transform: translateY(8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(4px); } }
.pal { width: min(600px, calc(100vw - 32px)); margin: 12vh auto 0; overflow: hidden; }
.pal .pin { display: flex; gap: 1ch; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--ink); }
.pal input { flex: 1; min-width: 0; font: inherit; color: inherit; background: none; border: 0; outline: 0; padding: 14px 0; }
.pal input::placeholder { color: var(--faint); }
.pal .cnt { color: var(--faint); font-size: 12px; white-space: nowrap; }
.pal ul { position: relative; list-style: none; margin: 0; padding: 4px 0; max-height: 46vh; overflow: auto; scrollbar-width: none; }
.pal ul::-webkit-scrollbar { display: none; }
.pal .hl { position: absolute; left: 0; right: 0; top: 0; background: var(--ink); pointer-events: none; transition: transform .16s var(--out), height .16s var(--out), opacity .15s; }
.pal li { position: relative; display: flex; justify-content: space-between; gap: 2ch; margin: 0; padding: 4px 18px; cursor: pointer; transition: color .12s; }
.pal li.hdr { padding: 8px 18px 2px; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: default; }
.pal li .k { color: var(--faint); transition: color .12s; }
.pal li mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pal li.sel { color: var(--paper); }
.pal li.sel .k { color: color-mix(in srgb, var(--paper) 60%, var(--ink)); }
.pal li.none { color: var(--faint); cursor: default; }
.pal .pprev { min-height: 4.6em; padding: 8px 18px; border-top: 1px solid var(--ink); font-size: 12px; }
.pal .pd { color: var(--faint); }
.pal .pc { margin: 6px 0 0; padding: 0; color: var(--ink); white-space: pre; overflow: hidden; text-overflow: ellipsis; font-size: 11px; line-height: 1.5; max-height: 4.5em; }
.pal .phint { display: flex; justify-content: space-between; gap: 2ch; margin: 0; padding: 6px 18px; border-top: 1px solid var(--ink); color: var(--faint); font-size: 12px; }

/* a small visitor */
.clawd { position: fixed; left: 0; bottom: 30px; z-index: 93; width: 55px; pointer-events: none; }
.clawd svg { display: block; width: 55px; height: 25px; fill: #d97757; shape-rendering: crispEdges; }
.clawd .eye { fill: #111; }
.bubble { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px); padding: 3px 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); font-size: 12px; line-height: 1.6; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s var(--out); }
.bubble::after { content: ""; position: absolute; top: 100%; left: 50%; width: 6px; height: 6px; margin: -4px 0 0 -3px; background: var(--paper); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); }
.bubble.on { opacity: 1; transform: translateX(-50%); }

/* 404 */
.lost { padding: 96px 0 0; }
.lost h1 { --n: 3; font-size: clamp(34px, 8vw, 60px); line-height: 1; letter-spacing: -0.035em; margin: 0 0 28px; }
.lost p { animation: up .9s var(--out) .8s both; }
.lost .path { color: var(--faint); animation-delay: 1s; }

/* theme switch: a circle grows from the button */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 0; }
::view-transition-new(root) { z-index: 1; }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .page { padding-top: 32px; }
  .top { font-size: 13px; }
  .top nav a, .theme { margin-left: 12px; }
  .hero { padding: 64px 0 48px; }
  .index a { grid-template-columns: 5ch 1fr; }
  .index .tag { grid-column: 2; }
  .group { margin-top: 88px; }
  .group > header { flex-direction: column; gap: 2px; }
  .group > header p { text-align: left; }
  .project h3 { font-size: 18px; }
  .project h3 .n { margin-right: 1ch; }
  .cmd { font-size: 12.5px; padding: 12px 14px; }
  .sl .hint { display: none; }
  .cloud { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .mesh i, .grain { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .cur { animation: none; }
}

@media print {
  .progress, .sl, .rain, .sky, .mesh, .grain, .ticker, .copy, .theme, .toast, .skip, .top nav button { display: none !important; }
  .rv, .rvw .tui, .rvw .shot { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html, body { background: #fff; color: #000; }
}
