@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #000; --ink: #e8e8e2; --muted: #7c8178; --dim: #40453e; --line: #1a1d19;
  --gold: #f4b728; --green: #3ddc84; --red: #ff5c5c; --panel: #0a0b0a;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.6 "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* labels: the "system" voice */
.lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lbl.gold { color: var(--gold); }
.val { font-size: 22px; color: var(--ink); line-height: 1.2; }
.val.gold { color: var(--gold); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: inherit; word-break: break-all; }
.small { font-size: 12px; }

/* nav */
nav { border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: .22em; font-weight: 600; }
.brand img { width: 22px; height: 22px; image-rendering: pixelated; }
nav .links { display: flex; gap: 22px; margin-left: 12px; }
nav .links a { text-decoration: none; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
nav .links a.on, nav .links a:hover { color: var(--ink); }
nav .status { margin-left: auto; font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
nav .status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
nav .status .dot.behind { background: var(--gold); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 56px 0 40px; align-items: center; }
.hero h1 { font-size: 34px; line-height: 1.15; font-weight: 500; margin: 0 0 18px; letter-spacing: -.01em; }
.hero p.lead { color: var(--muted); margin: 0 0 24px; }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.wall img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; display: block; background: #050605; }

/* facts row */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .lbl { margin-bottom: 6px; }

/* sections */
section { padding: 44px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 22px; }
section h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.cols p { margin: 0 0 12px; color: var(--muted); }
.cols p strong { color: var(--ink); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .hero, .two { grid-template-columns: 1fr; } .wall { grid-template-columns: repeat(4, 1fr); } }

/* progress */
.bar { height: 4px; background: var(--line); margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: var(--gold); }

/* controls */
button, .btn { font: inherit; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 12px 18px; background: var(--gold); color: #000; border: 1px solid var(--gold); cursor: pointer; text-decoration: none; display: inline-block; }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--dim); }
button.ghost:hover, .btn.ghost:hover { border-color: var(--ink); }
button.link { background: none; border: 0; color: var(--muted); padding: 0; text-decoration: underline; letter-spacing: .06em; text-transform: none; font-size: 12px; }
button:disabled { opacity: .35; cursor: not-allowed; }
input, textarea { font: inherit; width: 100%; max-width: 560px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--dim); color: var(--ink); margin: 6px 0; }
input:focus { outline: none; border-color: var(--gold); }
label { display: block; margin: 10px 0; color: var(--muted); }
label input[type=checkbox] { width: auto; margin-right: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.box { border: 1px solid var(--line); padding: 18px; margin: 12px 0; background: var(--panel); }
.warn { color: var(--gold); }
.err { color: var(--red); }
pre { background: var(--panel); border: 1px solid var(--line); padding: 14px; overflow: auto; font-size: 12px; line-height: 1.55; margin: 8px 0; }
.secret { display: block; background: var(--panel); border: 1px solid var(--dim); padding: 12px; margin: 8px 0; word-break: break-all; font-size: 13px; }

/* grids of trees */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.item { text-decoration: none; display: block; }
.item img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; display: block; background: #050605; border: 1px solid var(--line); }
.item:hover img { border-color: var(--dim); }
.item .n { margin-top: 8px; font-size: 12px; }
.item .t { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.item .p { font-size: 12px; color: var(--gold); }

/* item page */
.item-page { display: grid; grid-template-columns: 384px 1fr; gap: 40px; padding: 44px 0; }
.item-page img.big { width: 384px; height: 384px; image-rendering: pixelated; border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 13px; margin: 14px 0; }
.kv .lbl { align-self: start; padding-top: 3px; }
@media (max-width: 800px) { .item-page { grid-template-columns: 1fr; } .item-page img.big { width: 100%; height: auto; } }

/* invoice */
.invoice { display: grid; grid-template-columns: 176px 1fr; gap: 20px; align-items: start; }
.invoice canvas { width: 176px; height: 176px; background: #fff; padding: 6px; image-rendering: pixelated; }
@media (max-width: 600px) { .invoice { grid-template-columns: 1fr; } }

footer { padding: 32px 0 60px; color: var(--muted); font-size: 12px; }
footer .row { justify-content: space-between; }
.tag { color: var(--dim); }
