/* palebluegeometry — terminal theme on the GJ Design System */
:root {
  --night: #14161c;
  --bg-app: #1c1c1f;
  --bg-elevated: #26262a;
  --bg-control: #38383c;
  --bg-control-hover: #46464b;
  --bg-control-active: #54545a;
  --card: #222226;
  --card-alt: #202024;
  --hairline: #343439;
  --hairline-soft: #2a2a2e;
  --well: #161619;
  --text: #f0f0f5;
  --text-body: #c8c8cc;
  --text-secondary: #9898a2;
  --text-faint: #54545a;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-text: #64aaff;
  --danger: #ff6961;
  --c-arch: #f28e2b;
  --c-code: #64aaff;
  --c-life: #b07aa1;
  --c-work: #76b7b2;
  --radius-control: 7px;
  --radius-card: 9px;
  --radius-panel: 10px;
  --radius-window: 12px;
  /* Martian Mono: titles, menus, terminal. Geist Mono: reading text. */
  --font-sans: "Geist Mono", ui-monospace, Consolas, "Cascadia Mono", monospace;
  --font-display: "Martian Mono", ui-monospace, Consolas, monospace;
  --font-mono: "Martian Mono", ui-monospace, Consolas, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-app);
  color: var(--text);
  font: 12.5px/21px var(--font-mono);
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* window chrome */
/* the whole screen is the terminal window */
.win {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, rgba(10, 132, 255, 0.08), transparent 55%) fixed;
}
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* pointer: a pale blue dot with a trailing ring (added by bg.js on mouse devices) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="range"]):not([type="checkbox"]), html.has-cursor textarea { cursor: text !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform; }
.cur-dot {
  z-index: 1001; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(10, 132, 255, 0.55);
  transition: opacity .2s, width .18s, height .18s, margin .18s;
}
.cur-ring {
  z-index: 1000; width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 1px solid rgba(100, 170, 255, 0.45);
  transition: opacity .2s, width .25s, height .25s, margin .25s, background-color .25s, border-color .25s;
}
html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }
html.cur-hover .cur-ring { width: 48px; height: 48px; margin: -24px 0 0 -24px; background-color: rgba(10, 132, 255, 0.12); border-color: rgba(10, 132, 255, 0.8); }
html.cur-hover .cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
html.cur-drag .cur-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-style: dashed; border-color: rgba(100, 170, 255, 0.7); }
html.cur-down .cur-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
html.cur-down .cur-ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
html.cur-text .cur-dot, html.cur-text .cur-ring { opacity: 0; }

/* motion helpers (added by site.js) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.glow { position: relative; isolation: isolate; }
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(10, 132, 255, 0.14), transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.glow:hover::after { opacity: 1; }
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  min-height: 46px; padding: 0 clamp(12px, 2vw, 24px);
  background: rgba(38, 38, 42, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex; align-items: center; gap: 8px; color: var(--text);
  font: 800 14px var(--font-display); letter-spacing: -0.2px;
}
.brand:hover { color: var(--text); }
.brand .logo { width: 26px; height: 26px; display: block; margin: 0 -2px 0 -4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(10, 132, 255, 0.7); flex: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.tab { padding: 7px 12px; border-radius: var(--radius-control); color: var(--text-secondary); font-size: 12.5px; transition: background .2s, color .2s; }
.tab:hover { background: #2e2e33; color: var(--text); }
.tab[aria-current="page"] { background: rgba(10, 132, 255, 0.14); color: var(--accent-text); }
.clock { margin-left: auto; color: var(--text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }

.page {
  flex: 1; width: 100%; max-width: 1280px; margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 44px;
}

.status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  padding: 7px clamp(12px, 2vw, 24px); background: var(--well); border-top: 1px solid var(--hairline);
  color: var(--text-secondary); font-size: 11.5px;
}
.status .online { display: flex; align-items: center; gap: 6px; }
.status .online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status .right { margin-left: auto; }

/* prompt line */
.prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prompt .who { color: var(--accent-text); }
.prompt .path { color: var(--text-secondary); }
.caret { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: var(--accent); animation: blink 1s step-end infinite; }
.caret.thin { width: 2px; height: 14px; margin-left: 2px; }
.split > .side.portrait { flex: 0 1 340px; }
.portrait {
  position: relative; margin: 0; width: 100%; max-width: 340px; aspect-ratio: 545 / 768;
  border: 1px solid var(--hairline); border-radius: var(--radius-panel); overflow: hidden; background: var(--well);
}
.portrait canvas, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; cursor: crosshair; }
.portrait .hud { position: absolute; display: flex; gap: 6px; font-size: 11px; color: var(--text-secondary); pointer-events: none; }
.portrait .hud span { background: rgba(38, 38, 42, 0.85); border-radius: 6px; padding: 2px 8px; }
.portrait .tl { left: 10px; top: 10px; }
.portrait .br { right: 10px; bottom: 10px; }
.skip { margin-left: auto; border: 0; background: transparent; color: var(--text-secondary); font-size: 12px; cursor: pointer; }
.skip:hover { color: var(--text); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.out { animation: fadeUp .45s cubic-bezier(.2, .7, .2, 1) both; }
.js .pending { display: none; }

/* type */
.title { font: 800 clamp(34px, 5.2vw, 64px)/1 var(--font-display); letter-spacing: -0.04em; }
.title.xl { font-size: clamp(38px, 6.2vw, 80px); }
.title .us { color: var(--accent); }
/* the home page name ends in the logo's round blue dot */
.ndot { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.07em; border-radius: 50%; background: var(--accent); vertical-align: baseline; }
#name { line-height: 1.18; }
#name .nm { white-space: nowrap; }
#name.naming { min-height: 2.36em; }
.ncur {
  display: inline-block; width: 0.08em; height: 0.82em; margin-left: 0.06em; vertical-align: -0.06em;
  background: var(--accent); animation: blink 1s step-end infinite; transition: opacity .35s;
}
#name.typing .ncur { animation: none; }
.ncur.gone { opacity: 0; animation: none; }
#name.hold .ndot { animation: dotPulse 1.1s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.5); } 50% { box-shadow: 0 0 0 0.12em rgba(10, 132, 255, 0); } }
.lead { max-width: 620px; font: 16px/25px var(--font-sans); color: var(--text-body); }
.role { color: var(--accent-text); }
.muted { color: var(--text-secondary); }
.sans { font-family: var(--font-sans); }

/* layout helpers */
.split { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; margin-top: 22px; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 260px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }

/* buttons */
.btn {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-card);
  background: var(--bg-control); color: var(--text); font-weight: 500; transition: background .2s;
}
.btn:hover { background: var(--bg-control-hover); color: var(--text); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); color: #fff; }
.btn.sm { display: inline-flex; padding: 5px 11px; border-radius: var(--radius-control); }
.stack-btns { display: flex; flex-direction: column; gap: 8px; }
.chip {
  display: inline-block; border: 0; border-radius: var(--radius-control); padding: 4px 10px;
  background: #2e2e33; color: var(--text-body); font: 500 12px var(--font-mono); cursor: pointer;
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg { display: flex; gap: 2px; padding: 2px; background: var(--well); border-radius: 8px; }
.seg button { border: 0; border-radius: 6px; padding: 4px 11px; background: transparent; cursor: pointer; font: 500 12px var(--font-mono); transition: background .2s; }
.seg button[aria-pressed="true"] { background: var(--bg-control-active); }

/* home: folders */
.dir {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  border: 1px solid var(--hairline); border-radius: var(--radius-panel); background: var(--card); color: var(--text);
  transition: border-color .25s, transform .25s, background .25s;
}
.dir:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--bg-elevated); color: var(--text); }
.dir .art { height: 150px; border-radius: 8px; background: var(--well); display: flex; align-items: center; justify-content: center; }
.dir .head { display: flex; align-items: baseline; gap: 8px; }
.dir .name { font-weight: 700; }
.dir .go { margin-left: auto; color: var(--text-faint); transition: color .2s; }
.dir:hover .go { color: var(--accent); }
.dir p { color: var(--text-secondary); font: 13.5px/20px var(--font-sans); }
.art .draw { stroke-dasharray: 600; animation: draw 2.6s ease both; }
.art .pulse { animation: pulse 2.4s ease infinite; }
.lines { flex-direction: column; justify-content: center; align-items: stretch !important; gap: 10px; padding: 0 28px; }
.lines span { height: 6px; border-radius: 3px; background: var(--bg-control-hover); transform-origin: left; animation: grow 1s ease both; }

/* home: log */
.log { margin-top: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-panel); overflow: hidden; }
.log .row { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px 16px; border-top: 1px solid var(--hairline-soft); }
.log .row:first-child { border-top: 0; }
.log .row:nth-child(odd) { background: var(--card-alt); }
.log .year { width: 80px; color: var(--text-secondary); }
.log .tag { width: 72px; font-weight: 700; }
.log .msg { flex: 1 1 280px; }
.log .msg b { font: 500 14px var(--font-sans); }

/* home: steps */
.step { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius-panel); background: var(--card); }
.step .bar-track { height: 3px; border-radius: 2px; background: var(--bg-control); overflow: hidden; }
.step .bar-fill { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: grow .8s ease both; }
.step h3 { font: 600 15px var(--font-sans); }
.step p { color: var(--text-secondary); font: 13px/19px var(--font-sans); }

/* home: contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 24px; margin-top: 16px; }
.contact .k { display: inline-block; width: 84px; color: var(--text-secondary); }
.lnk { color: var(--text); border-bottom: 1px solid var(--bg-control-hover); transition: border-color .2s, color .2s; }
.lnk:hover { color: var(--accent-text); border-color: var(--accent); }

/* console */
.console { border-top: 1px dashed var(--hairline); padding-top: 20px; }
.console .line { white-space: pre-wrap; color: var(--text-secondary); animation: fadeUp .3s ease both; }
.console .line.cmd { color: var(--text); }
.console .line.err { color: var(--danger); }
.console .input { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.console input, .search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: inherit; caret-color: var(--accent);
}
.console input:focus, .search input:focus { outline: none; }
.console .chips { margin-top: 12px; }

/* code page */
.split > .side.stats { flex: 1 1 340px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { min-width: 0; background: var(--card); border-radius: var(--radius-card); padding: 10px 14px; }
.stat b { display: block; font: 800 26px/32px var(--font-display); }
.stat span { color: var(--text-secondary); font-size: 11.5px; }
.table { border: 1px solid var(--hairline); border-radius: var(--radius-panel); overflow: hidden; }
.table .th { display: flex; gap: 16px; padding: 8px 16px; background: var(--card); color: var(--text-secondary); font-size: 11.5px; }
.repo { border-top: 1px solid var(--hairline-soft); }
.repo > button {
  display: flex; flex-wrap: wrap; width: 100%; align-items: baseline; gap: 4px 16px;
  border: 0; padding: 14px 16px; background: transparent; text-align: left; cursor: pointer; transition: background .15s;
}
.repo > button:hover { background: var(--bg-elevated); }
.repo[data-open] > button { background: var(--card-alt); }
.repo[data-open] .rname { color: var(--accent-text); }
.c-mode { width: 96px; color: var(--text-secondary); }
.c-name { flex: 1 1 260px; min-width: 0; }
.c-name .rname { font-weight: 700; }
.c-name .rtag { color: var(--text-secondary); font: 13.5px var(--font-sans); margin-left: 10px; }
.c-lang { width: 80px; color: var(--text-secondary); }
.c-ver { width: 64px; color: var(--text-secondary); }
.c-caret { width: 14px; color: var(--text-secondary); }
.readme { display: flex; flex-wrap: wrap; gap: 20px 32px; padding: 6px 16px 22px 128px; background: var(--card-alt); animation: fadeUp .4s ease both; }
.readme[hidden] { display: none; }
.readme .doc { flex: 999 1 380px; min-width: 0; }
.readme .doc p { margin-bottom: 12px; font: 15px/24px var(--font-sans); }
.readme ul { list-style: none; margin: 0; padding: 0; }
.readme li { display: flex; gap: 10px; font: 13.5px/22px var(--font-sans); color: var(--text-body); }
.readme li::before { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.meta { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; align-self: flex-start; background: var(--bg-elevated); border-radius: var(--radius-card); padding: 12px 14px; font-size: 12px; }
.meta .k { display: inline-block; width: 92px; color: var(--text-secondary); }
.meta .btn { margin-top: 8px; align-self: flex-start; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag-list span { padding: 4px 10px; border-radius: var(--radius-control); background: var(--bg-elevated); border: 1px solid var(--hairline); color: var(--text-body); font-size: 12px; }

/* architecture page */
.project { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.viewport { flex: 999 1 520px; min-width: 0; position: relative; background: var(--well); border-radius: var(--radius-panel); overflow: hidden; aspect-ratio: 4 / 3; }
.viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewport .hud { position: absolute; display: flex; gap: 6px; font-size: 11px; color: var(--text-secondary); }
.viewport .hud span { background: var(--bg-elevated); border-radius: 6px; padding: 2px 8px; }
.viewport .tl { left: 12px; top: 10px; }
.viewport .br { right: 12px; bottom: 10px; }
.project .info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.project h2 { font: 800 30px/34px var(--font-display); letter-spacing: -0.8px; }
.project .num { color: var(--text-secondary); }
.spec { background: var(--card); border-radius: var(--radius-card); padding: 10px 14px; font-size: 12.5px; }
.spec .k { display: inline-block; width: 92px; color: var(--accent-text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-control); border: 1px solid var(--hairline); }

/* blog */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 360px; display: flex; align-items: center; gap: 8px; background: var(--well); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 8px 12px; }
.search .g { color: var(--accent-text); }
.posts { border: 1px solid var(--hairline); border-radius: var(--radius-panel); overflow: hidden; }
.post { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding: 18px; border-top: 1px solid var(--hairline-soft); color: var(--text); transition: background .15s; }
.post:first-child { border-top: 0; }
.post:hover { background: var(--card); color: var(--text); }
.post .date { width: 92px; color: var(--text-secondary); font-size: 12px; }
.post .body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.post .ttl { font: 700 20px/26px var(--font-display); letter-spacing: -0.3px; transition: color .2s; }
.post:hover .ttl { color: var(--accent-text); }
.post .ex { color: var(--text-secondary); font: 13.5px var(--font-sans); }
.post .ptag { font-size: 12px; }
.post .mins { width: 56px; text-align: right; color: var(--text-secondary); font-size: 12px; }
.empty { padding: 24px 18px; color: var(--text-secondary); }

/* article */
.article { max-width: 720px; }
.article .meta-line { color: var(--text-secondary); font-size: 12px; margin-bottom: 14px; }
.article h1 { font: 800 clamp(32px, 5vw, 56px)/1.02 var(--font-display); letter-spacing: -0.04em; margin-bottom: 28px; }
.prose { font: 17px/29px var(--font-sans); color: var(--text-body); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font: 700 26px/32px var(--font-display); color: var(--text); letter-spacing: -0.4px; margin-top: 40px; }
.prose h3 { font: 600 19px/26px var(--font-sans); color: var(--text); margin-top: 28px; }
.prose a { border-bottom: 1px solid rgba(100, 170, 255, 0.4); }
.prose code { font: 0.86em var(--font-mono); background: var(--bg-elevated); border-radius: 5px; padding: 1px 5px; color: var(--text); }
.prose pre { background: var(--well); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 14px 16px; overflow-x: auto; font: 13px/21px var(--font-mono); }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin-left: 0; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--text); }
.prose img { max-width: 100%; border-radius: var(--radius-panel); }
.prose ul, .prose ol { padding-left: 22px; }

/* subscribe */
.subscribe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius-panel); padding: 14px 16px; }
.subscribe .txt { flex: 1 1 280px; }
.subscribe b { display: block; font: 600 14px var(--font-sans); }
.subscribe span { color: var(--text-secondary); font: 13px var(--font-sans); }

.next { border-top: 1px dashed var(--hairline); padding-top: 18px; }

/* site terminal */
.term-btn {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  border: 1px solid var(--hairline); border-radius: var(--radius-control); background: var(--well);
  padding: 4px 6px 4px 10px; cursor: pointer; color: var(--text-secondary); font: 12px var(--font-mono);
  transition: border-color .2s, color .2s;
}
.term-btn:hover { border-color: var(--accent); color: var(--text); }
.term-btn .g { color: var(--accent-text); }
.term-btn kbd { font: 11px var(--font-mono); border: 1px solid var(--hairline); border-radius: 5px; padding: 0 6px; color: var(--text-secondary); }
.term-btn + .clock { margin-left: 0; }
.term-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px;
  background: rgba(10, 11, 14, 0.6); backdrop-filter: blur(6px);
  animation: fadeUp .18s ease both;
}
.term-overlay[hidden] { display: none; }
.term {
  width: min(760px, 100%); max-height: 70vh; display: flex; flex-direction: column; position: relative;
  background: #17171a; border: 1px solid var(--bg-control); border-radius: var(--radius-window);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(10, 132, 255, 0.15);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--hairline); color: var(--text-secondary); font-size: 12px; }
.term-x { margin-left: auto; border: 1px solid var(--hairline); border-radius: 5px; background: transparent; color: var(--text-secondary); font: 11px var(--font-mono); padding: 0 6px; cursor: pointer; }
.term-x:hover { color: var(--text); border-color: var(--text-faint); }
.term-out { flex: 1; overflow-y: auto; padding: 12px 14px 4px; min-height: 120px; }
.term-out .line, .console .line { white-space: pre-wrap; color: var(--text-secondary); animation: fadeUp .25s ease both; }
.line.cmd { color: var(--text); margin-top: 6px; }
.line.err { color: var(--danger); }
.line.ok { color: var(--accent-text); }
.line.dim { color: var(--text-faint); }
.line a { color: var(--accent-text); }
.term-in { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; }
.term-in .who { color: var(--accent-text); }
.term-in .path { color: var(--text-secondary); }
.term-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; caret-color: var(--accent); }
.term-in input:focus { outline: none; }
.term-sug { list-style: none; margin: 0; padding: 4px; border-top: 1px solid var(--hairline); }
.term-sug li { display: flex; gap: 14px; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.term-sug li:hover, .term-sug li[aria-selected="true"] { background: rgba(10, 132, 255, 0.16); }
.term-sug .s-text { color: var(--text); white-space: nowrap; }
.term-sug .s-hint { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.term-open { overflow: hidden; }
@media (max-width: 640px) { .term-btn .t, .term-btn kbd { display: none; } .term-overlay { padding-top: 8vh; } }

@media (max-width: 640px) {
  .readme { padding-left: 16px; }
  .c-mode { display: none; }
  .clock { display: none; }
  /* top bar: brand and search on one row, tabs on a single scrollable row below */
  .bar { gap: 0 12px; padding-top: 6px; }
  .bar .tabs { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px -4px 6px; }
  .bar .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 6px 10px; white-space: nowrap; }
  .page { gap: 36px; }
  .split > .side.portrait { flex: 1 1 100%; max-width: none; }
  .portrait { max-width: 420px; margin: 0 auto; }
  .project .info { flex-basis: 100%; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post .date { width: auto; }
  .post .mins { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
