:root {
  color-scheme: dark;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

[data-theme="moss"] {
  --bg: #0b0c0a;
  --surface: #111310;
  --line: #23261f;
  --text: #d8d3bd;
  --muted: #8b8d80;
  --dim: #5f6257;
  --accent: #b9c77e;
  --accent-2: #9ccf9c;
  --accent-3: #e2b872;
  --accent-4: #8fbcd4;
  --accent-5: #d98a8a;
}

[data-theme="ink"] {
  --bg: #05070a;
  --surface: #0b0f15;
  --line: #1b222c;
  --text: #d7dee9;
  --muted: #8e9bad;
  --dim: #5f6a79;
  --accent: #7fd1ff;
  --accent-2: #7ce0c3;
  --accent-3: #ffcb6b;
  --accent-4: #c3a0ff;
  --accent-5: #ff8da1;
}

[data-theme="ember"] {
  --bg: #0d0806;
  --surface: #140d09;
  --line: #2a1d15;
  --text: #ead9c8;
  --muted: #a4897a;
  --dim: #705c51;
  --accent: #ff9b52;
  --accent-2: #ffc46b;
  --accent-3: #e8605d;
  --accent-4: #c99df0;
  --accent-5: #7fcfa8;
}

[data-theme="paper"] {
  color-scheme: light;
  --bg: #f3f1e9;
  --surface: #faf8f2;
  --line: #ddd8c8;
  --text: #22251f;
  --muted: #5e6257;
  --dim: #8d9183;
  --accent: #5a7d2a;
  --accent-2: #2f7d6b;
  --accent-3: #a9681a;
  --accent-4: #30618f;
  --accent-5: #a33c4a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 72px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 320ms ease, color 320ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* animated backdrop */
.wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, transparent 10%, var(--bg) 78%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}

/* boot overlay */
.boot {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.boot.is-done {
  visibility: hidden;
  opacity: 0;
}

.boot-text {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  line-height: 1.9;
  white-space: pre;
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(20px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand .tld {
  color: var(--dim);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.topbar nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar nav a {
  position: relative;
}

.topbar nav a::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transition: width 180ms ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible,
.topbar nav a.is-active {
  color: var(--accent);
}

.topbar nav a:hover::after,
.topbar nav a.is-active::after {
  width: 100%;
}

.topbar-tools {
  display: flex;
  gap: 8px;
}

.key,
.chip-btn,
.btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease,
    transform 150ms ease;
}

.key .glyph {
  color: var(--accent);
}

.key:hover,
.chip-btn:hover,
.btn:hover,
.key:focus-visible,
.chip-btn:focus-visible,
.btn:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.chip-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.btn {
  padding: 9px 20px;
  font-size: 0.92rem;
}

.btn.primary {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: clamp(40px, 8vw, 90px) 0 clamp(32px, 6vw, 64px);
}

.avatar-col {
  display: grid;
  justify-items: center;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.ascii {
  width: 100%;
  max-width: 320px;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 4px;
  line-height: 1;
  white-space: pre;
  text-align: center;
  user-select: none;
  cursor: crosshair;
  touch-action: pan-y;
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: opacity 300ms ease;
}

[data-theme="paper"] .ascii {
  color: #1b1f18;
  text-shadow: none;
}

.ascii.photo-mode {
  width: min(250px, 70vw);
  height: min(250px, 70vw);
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-image: url("https://avatars.githubusercontent.com/u/11676024?v=4");
  background-position: center;
  background-size: cover;
  color: transparent;
  text-shadow: none;
}

.toggle-row {
  display: flex;
  gap: 10px;
}

.prompt,
.cmd {
  margin: 0 0 10px;
  color: var(--dim);
}

.cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.cmd.sub {
  margin-top: 44px;
}

.cmd-right {
  font-size: 0.82rem;
}

h1 {
  position: relative;
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.glitch::before,
.glitch::after {
  position: absolute;
  top: 0;
  left: 0;
  content: attr(data-text);
  opacity: 0;
  pointer-events: none;
}

.glitch:hover::before {
  color: var(--accent-5);
  opacity: 0.85;
  transform: translate(-3px, 1px);
}

.glitch:hover::after {
  color: var(--accent-4);
  opacity: 0.85;
  transform: translate(3px, -1px);
}

.role {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.02em;
}

.role::after {
  color: var(--accent);
  content: "▌";
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.bio {
  max-width: 64ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.building {
  margin: 0 0 26px;
  color: var(--muted);
}

.building strong {
  color: var(--accent-3);
}

.caret {
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}

.stats div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.stats dt {
  color: var(--dim);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats dd {
  margin: 2px 0 0;
  color: var(--accent-2);
  font-size: 1.35rem;
  font-weight: 600;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.stack li {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.86rem;
  transition: border-color 150ms ease, transform 150ms ease;
}

.stack li:hover {
  border-color: currentColor;
  transform: translateY(-2px);
}

.stack li:nth-child(5n + 1) { color: var(--accent-2); }
.stack li:nth-child(5n + 2) { color: var(--text); }
.stack li:nth-child(5n + 3) { color: var(--accent); }
.stack li:nth-child(5n + 4) { color: var(--accent-4); }
.stack li:nth-child(5n + 5) { color: var(--accent-3); }

.socials {
  display: flex;
  gap: 20px;
  margin-bottom: 26px;
}

.socials a {
  display: inline-flex;
  color: var(--muted);
  transition: color 150ms ease, transform 150ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--accent);
  transform: translateY(-3px);
}

.socials svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  fill: currentColor;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stamp {
  position: absolute;
  top: clamp(24px, 6vw, 58px);
  right: 0;
  padding: 7px 15px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  animation: sway 6s ease-in-out infinite;
}

@keyframes sway {
  50% { transform: rotate(-3deg) translateY(-3px); }
}

/* contributions */
.panel {
  margin-bottom: clamp(48px, 9vw, 92px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.graph-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.months,
.graph {
  min-width: 920px;
}

.months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 13px;
  gap: 4px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.months span {
  white-space: nowrap;
}

.graph {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 13px;
  grid-template-rows: repeat(7, 13px);
  gap: 4px;
}

.graph i,
.legend i {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-radius: 4px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.graph i:hover {
  transform: scale(1.35);
  box-shadow: 0 0 0 1px var(--accent),
    0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
}

.lvl0 { background: color-mix(in srgb, var(--text) 5%, var(--bg)); }
.lvl1 { background: color-mix(in srgb, var(--accent) 24%, var(--bg)); }
.lvl2 { background: color-mix(in srgb, var(--accent) 46%, var(--bg)); }
.lvl3 { background: color-mix(in srgb, var(--accent) 70%, var(--bg)); }
.lvl4 { background: var(--accent); }

.graph-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* blocks */
.block {
  margin-bottom: clamp(56px, 10vw, 110px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.wins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.win {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.win::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  content: "";
  opacity: 0.35;
  transition: opacity 180ms ease;
}

.win:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
}

.win:hover::before {
  opacity: 1;
}

.win h2 {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 1rem;
}

.win p,
.timeline p,
.note p,
.plain li {
  margin: 0;
  color: var(--muted);
}

.win strong,
.timeline strong {
  color: var(--text);
  font-weight: 600;
}

.timeline {
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 1px solid var(--line);
}

.timeline > li {
  position: relative;
  padding-bottom: 32px;
}

.timeline > li::before {
  position: absolute;
  top: 11px;
  left: -31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.timeline > li:nth-child(n + 3)::before {
  background: var(--accent-3);
}

.timeline h2 {
  margin: 0 0 2px;
  color: var(--accent-2);
  font-size: 1rem;
}

.bullets {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.bullets > li {
  padding-left: 16px;
  margin-bottom: 2px;
  text-indent: -16px;
}

.bullets > li::before {
  content: "— ";
  color: var(--dim);
}

.meta {
  margin: 0 0 6px !important;
  color: var(--dim) !important;
  font-size: 0.82rem;
}

.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.repos {
  display: grid;
}

.repo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease, transform 150ms ease;
}

.repo:hover,
.repo:focus-visible {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  transform: translateX(4px);
}

.repo .arrow {
  color: var(--dim);
}

.repo .name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.repo .lang {
  flex: 0 0 auto;
  color: var(--dim);
  font-size: 0.8rem;
}

.note {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.note p + p {
  margin-top: 18px;
}

.more {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
}

/* mail */
.mail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.mail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--line) 28%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-head .bulbs {
  display: inline-flex;
  gap: 6px;
}

.mail-head .bulbs i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
}

.mail-head .bulbs i:first-child { background: var(--accent-5); }
.mail-head .bulbs i:nth-child(2) { background: var(--accent-3); }
.mail-head .bulbs i:last-child { background: var(--accent-2); }

.field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: background 160ms ease;
}

.field:focus-within {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.field label {
  flex: 0 0 76px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.field:focus-within label {
  color: var(--accent);
}

.field output {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.field input,
.field textarea {
  flex: 1 1 auto;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-style: normal;
  resize: none;
}

.field input:focus,
.field textarea:focus {
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
  font-style: normal;
  opacity: 1;
}

.field.body {
  display: block;
  padding: 16px 18px;
  border-bottom: 0;
}

.field.body textarea {
  min-height: 140px;
  line-height: 1.7;
}

.mail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.muted {
  color: var(--dim);
  font-size: 0.84rem;
}

/* footer + statusline */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.84rem;
}

.statusline {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 5px 16px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.78rem;
}

.statusline .mode {
  padding: 1px 10px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.statusline .spacer {
  flex: 1 1 auto;
}

.statusline .theme-name {
  color: var(--accent-3);
}

/* help overlay */
.help {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
}

.help[hidden] {
  display: none;
}

.help-card {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.help-card ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.help-card li {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  color: var(--muted);
}

kbd {
  min-width: 30px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--mono);
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stamp {
    top: 10px;
    font-size: 0.7rem;
  }

  .ascii {
    font-size: 4px;
    line-height: 4px;
  }

  .topbar nav {
    gap: 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  .wrap,
  .footer {
    width: calc(100% - 24px);
  }

  .topbar {
    flex-wrap: wrap;
    padding: 12px;
  }

  .field {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* recruiter tl;dr */
.tldr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cmd-inline {
  color: var(--dim);
  font-size: 0.86rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.8rem;
}

.availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 55%, transparent); }
  50% { opacity: 0.65; box-shadow: 0 0 0 6px transparent; }
}

.tldr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 28px;
  margin: 0 0 20px;
}

.tldr-grid dt {
  color: var(--dim);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tldr-grid dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

.tldr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* command console */
.console-wrap {
  margin-bottom: clamp(48px, 9vw, 92px);
}

.console {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.console-hint {
  margin: 0 0 12px;
  color: var(--dim);
  font-size: 0.84rem;
}

.console-hint kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
}

.console-log {
  max-height: 230px;
  overflow-y: auto;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.console-log p {
  margin: 0 0 2px;
  white-space: pre-wrap;
}

.console-log .echo {
  color: var(--accent);
}

.console-log .err {
  color: var(--accent-5);
}

.console-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.console-input label {
  color: var(--accent-2);
  font-size: 0.88rem;
  white-space: nowrap;
}

.console-input input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  caret-color: var(--accent);
}

.console-input input:focus {
  outline: none;
}

@media (max-width: 560px) {
  .console-input label { font-size: 0.76rem; }
}

/* print one-pager */
@media print {
  .wall, .vignette, .boot, .topbar, .statusline, .help,
  .console-wrap, .graph-panel, .socials, .cta, .toggle-row,
  .stamp, #hire, .tldr-actions { display: none !important; }

  body { background: #fff; color: #000; padding: 0; font-size: 11pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .ascii { color: #000; text-shadow: none; }
  a { color: #000; text-decoration: underline; }
  .block, .panel { break-inside: avoid; margin-bottom: 18px; page-break-inside: avoid; }
  .wins { display: block; }
  .win { break-inside: avoid; margin-bottom: 10px; }
}
