/* Layout: eine schmale Terminal-Spalte, Statuszeile oben, Bernstein-Phosphor als einziger Akzent. */
:root {
  --bg: #0d1113;
  --panel: #141a1d;
  --line: #243036;
  --fg: #d6dbd4;
  --dim: #7d8a87;
  --accent: #f0a73c;
  --live: #8fc79a;
  --h0: #1a2226; --h1: #4a3a1e; --h2: #8a6222; --h3: #c88a2e; --h4: #f5b54a;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Martian Mono", "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef0ee; --panel: #e3e7e5; --line: #c6cecb; --fg: #161b1d; --dim: #5d6a68;
    --accent: #a85f00; --live: #2f7a45;
    --h0: #dde2e0; --h1: #f1d7a8; --h2: #e3aa52; --h3: #c27a12; --h4: #8a5200;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef0ee; --panel: #e3e7e5; --line: #c6cecb; --fg: #161b1d; --dim: #5d6a68;
  --accent: #a85f00; --live: #2f7a45;
  --h0: #dde2e0; --h1: #f1d7a8; --h2: #e3aa52; --h3: #c27a12; --h4: #8a5200;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.65 var(--mono);
  padding-inline: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 4px 8px; z-index: 5; }

.bar, .status, main, .foot { max-width: 760px; margin-inline: auto; }

.bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-block: 22px 6px;
}
.brand { font-family: var(--display); font-weight: 700; text-decoration: none; font-size: 14px; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--dim); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.lang { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--line); }
.lang button { font: 12px var(--mono); color: var(--dim); background: none; border: 0; padding: 2px 3px; cursor: pointer; }
.lang button:hover { color: var(--accent); }
.lang button[aria-pressed="true"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.kbd-btn { background: none; border: 0; padding: 0; cursor: pointer; }
kbd {
  font: 12px var(--mono); color: var(--dim);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px;
}
.kbd-btn:hover kbd { color: var(--accent); border-color: var(--accent); }

.status {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--dim);
  border-block: 1px solid var(--line); padding-block: 6px;
}
.status b { color: var(--accent); font-weight: 500; }
.sep { opacity: .5; }
.caret { width: 7px; height: 13px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero { padding-block: 56px 32px; }
.prompt { margin: 0 0 10px; color: var(--dim); }
.ps1 { color: var(--accent); }
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 8vw, 58px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 24px; text-wrap: balance;
}
.lede { max-width: 62ch; margin: 0 0 14px; font-size: 16px; }
.links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
.links a::before { content: "→ "; color: var(--accent); }

.block { padding-block: 40px; border-top: 1px dashed var(--line); }
h2 { font-family: var(--display); font-size: 15px; font-weight: 500; margin: 0 0 22px; letter-spacing: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
.note { margin: -12px 0 22px; max-width: 62ch; }

.projects { display: grid; gap: 14px; }
.project { border: 1px solid var(--line); background: var(--panel); padding: 18px 20px; border-radius: 3px; min-width: 0; }
.project header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.project p { margin: 0 0 14px; max-width: 66ch; }
.state { font-size: 12px; white-space: nowrap; }
.state::before { content: "● "; }
.state.live { color: var(--live); }
.state.wip { color: var(--accent); }
.state.done { color: var(--dim); }
.meta { display: grid; grid-template-columns: 9ch 1fr; gap: 2px 12px; margin: 0; font-size: 13px; }
.meta dt { color: var(--dim); }
.meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; }
.platforms { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.platforms th { text-align: left; font-weight: 500; color: var(--dim); padding: 0 16px 8px 0; border-bottom: 1px solid var(--line); }
.platforms td { padding: 7px 16px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.platforms td:first-child { color: var(--accent); white-space: nowrap; }
.platforms td:last-child { color: var(--dim); }

.git-summary { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 24px; }
.git-summary > div { display: flex; flex-direction: column; }
.big { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.lbl { font-size: 12px; color: var(--dim); }

.heat-wrap { overflow-x: auto; padding-bottom: 6px; }
.heat-months, .heat { display: grid; grid-auto-columns: 16px; gap: 4px; width: max-content; }
.heat { grid-template-rows: repeat(7, 16px); grid-auto-flow: column; }
.heat-months { font-size: 10px; color: var(--dim); height: 16px; }
.heat-months span { grid-row: 1; white-space: nowrap; }
.heat i, .heat-legend i { display: block; width: 16px; height: 16px; border-radius: 3px; background: var(--h0); }
.heat-legend i { width: 11px; height: 11px; border-radius: 2px; }
.heat .l1, .heat-legend .l1 { background: var(--h1); }
.heat .l2, .heat-legend .l2 { background: var(--h2); }
.heat .l3, .heat-legend .l3 { background: var(--h3); }
.heat .l4, .heat-legend .l4 { background: var(--h4); }
.heat .void { background: transparent; }
.heat-legend { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--dim); margin-top: 8px; }
.heat-legend i { display: inline-block; }

.git-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; margin-top: 30px; }
.git-cols h3 { font-size: 12px; font-weight: 500; color: var(--dim); margin-bottom: 10px; }
.git-cols ol { list-style: none; padding: 0; margin: 0; }
.repo-bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 13px; margin-bottom: 10px; }
.repo-bars .track { grid-column: 1 / -1; height: 4px; background: var(--h0); border-radius: 2px; }
.repo-bars .fill { height: 100%; background: var(--accent); border-radius: 2px; }
.feed li { display: grid; grid-template-columns: 8.5ch minmax(0, 1fr); gap: 0 10px; font-size: 13px; padding-block: 5px; border-bottom: 1px solid var(--line); }
.feed time { color: var(--dim); }
.feed .msg { min-width: 0; overflow-wrap: anywhere; }
.feed .repo { color: var(--accent); }
.feed .kind { color: var(--dim); }

.mail { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 18px; }
#mail-addr { user-select: all; }
.ghost { font: 12px var(--mono); color: var(--dim); background: none; border: 1px solid var(--line); border-radius: 3px; padding: 3px 9px; cursor: pointer; }
.ghost:hover { color: var(--accent); border-color: var(--accent); }

.foot { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); padding-block: 18px 40px; }
.foot a { color: var(--dim); }

[hidden] { display: none !important; }
.palette { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 0; z-index: 10; }
.palette-box { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
#palette-input { width: 100%; font: 15px var(--mono); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; outline: none; }
#palette-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
#palette-list li { padding: 8px 10px; border-radius: 3px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
#palette-list li span { color: var(--dim); font-size: 12px; }
#palette-list li[aria-selected="true"] { background: var(--line); color: var(--accent); }

@media (max-width: 640px) {
  .git-cols { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 36px 24px; }
  .platforms td:first-child { white-space: normal; }
  .nav { order: 3; flex-basis: 100%; }
  .brand { flex: 1; }
  .platforms th:last-child, .platforms td:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}
