@font-face { font-family: "Departure"; src: url("fonts/departure-mono.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --ground: #0b0c0a; --raised: #141512; --raised-2: #1c1e19; --line: #262922;
  --ink: #eeefe6; --muted: #a6a89c; --accent: #d8ff3e; --accent-hover: #e6ff80; --accent-ink: #10130a;
  --pixel: "Departure", ui-monospace, monospace;
  --text: "Bricolage", system-ui, sans-serif;
  --notch: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 5; }
.skip:focus { left: 8px; }

.top { display: flex; align-items: center; justify-content: space-between; max-width: 940px; margin: 0 auto; padding: 26px 30px 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 16px var(--pixel); }
.mark { width: 26px; height: 26px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 400 15px var(--pixel); }
.top small { font: 400 12px var(--pixel); color: var(--muted); }

main { max-width: 940px; margin: 0 auto; padding: 0 30px 60px; }

.hero { padding: 40px 0 30px; }
.eyebrow { font: 400 11px var(--pixel); letter-spacing: 0.14em; color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
h1 { font-weight: 400; }
.word1, .word2 { display: block; font: 400 clamp(38px, 7vw, 58px)/0.95 var(--pixel); letter-spacing: -0.01em; }
.word2 { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.lede { margin-top: 18px; font-size: 15.5px; line-height: 1.5; color: var(--muted); max-width: 56ch; }

.machine { border: 1px solid var(--line); background: var(--raised); }
.bar { display: flex; align-items: center; justify-content: space-between; background: var(--raised-2); padding: 11px 14px; border-bottom: 1px solid var(--line); gap: 10px; }
.bar b { font: 400 11px var(--pixel); letter-spacing: 0.12em; color: var(--muted); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.lights { display: flex; gap: 6px; }
.lights i { width: 7px; height: 7px; background: #3a3d33; }
.lights i:first-child { background: var(--accent); }
.lights.is-idle i:first-child { background: #3a3d33; }
.body { padding: 18px 16px 20px; }

.label { font: 400 10px var(--pixel); letter-spacing: 0.14em; color: var(--muted); margin: 0 0 8px; }
.row { display: flex; gap: 10px; }
.input { flex: 1; min-width: 0; background: var(--ground); border: 1px solid #2c2f25; color: var(--ink); font: 400 15px var(--pixel); padding: 12px 14px; }
.input::placeholder { color: #6d7064; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 400 13px var(--pixel); letter-spacing: 0.06em; padding: 0 22px; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); clip-path: var(--notch); min-height: 46px; text-decoration: none; }
.btn:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--raised-2); color: var(--ink); }
.btn-ghost:hover { background: #262922; }
.btn-sm { min-height: 30px; padding: 0 12px; font-size: 11px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.chips { display: flex; gap: 8px; margin: 14px 0 10px; flex-wrap: wrap; }
.chip { font: 400 11px var(--pixel); letter-spacing: 0.08em; padding: 8px 12px; background: var(--raised-2); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.note { font-size: 12.5px; color: var(--muted); }
.alert { margin-top: 12px; font: 400 13px var(--pixel); color: #ffb199; }

.count { font: 400 13px var(--pixel); margin-bottom: 10px; }
.count em { color: var(--accent); font-style: normal; }
.track { height: 10px; background: #0a0b09; border: 1px solid var(--line); margin-bottom: 16px; }
.fill { height: 100%; width: 0; background: var(--accent); transition: width 0.4s ease; }

.feed { display: grid; gap: 6px; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #101210; border: 1px solid #1d201a; padding: 9px 12px; }
.frow.is-new { border-left: 2px solid var(--accent); animation: land 0.35s ease; }
.frow b { font: 400 12px var(--pixel); font-weight: 400; }
.frow .at { font: 400 12px var(--pixel); color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; }
.frow .ids { font: 400 11px var(--pixel); color: var(--muted); max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow a { color: var(--muted); text-decoration: none; font: 400 12px var(--pixel); white-space: nowrap; }
.frow a:hover { color: var(--accent); }
@keyframes land { from { opacity: 0; transform: translateY(-3px); } }
.empty { font: 400 12px var(--pixel); color: var(--muted); padding: 10px 2px; }

.beat { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 400 12px var(--pixel); color: var(--muted); }
.beat::before { content: ""; width: 7px; height: 7px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.share-label { margin-top: 4px; }
#done-extras { margin-bottom: 18px; }
.share { display: flex; gap: 10px; margin: 0 0 14px; }
.share-input { font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.summary { border: 1px solid var(--line); border-left: 2px solid var(--accent); background: #101210; padding: 14px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }

.foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 400 11px var(--pixel); color: var(--muted); flex-wrap: wrap; }
.foot a { color: var(--muted); }
.text-link { color: var(--accent); text-decoration: underline; }

@media (max-width: 620px) {
  .top, main { padding-left: 18px; padding-right: 18px; }
  .frow .ids { display: none; }
  .share { flex-wrap: wrap; }
  .share .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .frow.is-new { animation: none; }
  .fill { transition: none; }
  .beat::before { animation: none; }
}
