/* posterm.sh — the same wall as the app: deep black, an acid rule, post-its. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #000; --panel: #0b0b0b; --line: #2a2a2a; --fg: #f2f2f2; --dim: #9a9a9a;
  --acc: #ccff00; --acc-soft: rgba(204, 255, 0, .18); --ink: #141414;
  --encours: #ff8f85; --question: #ffe45c; --pose: #b6f09c; --eteint: #bdb9b0;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --gutter: 16px; --max: 1180px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--mono); overflow-x: hidden; }
@media (min-width: 720px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
code { font-family: var(--mono); font-size: .92em; background: #1a1a1a; padding: .08em .35em; border: 1px solid #262626; overflow-wrap: anywhere; }
strong, b { font-weight: 700; color: #fff; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
::selection { background: var(--acc); color: #000; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: #000; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* --- top bar, like the app's ------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .92); border-bottom: 1px solid var(--acc); }
@supports (backdrop-filter: blur(6px)) { .top { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { font-weight: 700; letter-spacing: .14em; color: #fff; text-decoration: none; font-size: 18px; margin: 0; }
.logo span { color: var(--acc); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; text-transform: lowercase; }
.top nav a { color: var(--fg); text-decoration: none; padding: 4px 0; }
.top nav a:hover { color: var(--acc); }
.top nav .lang { border: 1px solid var(--acc); color: var(--acc); padding: 3px 9px; text-transform: uppercase; letter-spacing: .08em; }
.top nav .lang:hover { background: var(--acc); color: #000; }
@media (max-width: 560px) {
  .top { position: static; }
  .top nav { gap: 2px 14px; font-size: 13px; }
}

/* --- hero ----------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 9vw, 104px); padding-bottom: clamp(28px, 5vw, 56px); }
.kicker { color: var(--dim); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.kicker strong { color: var(--acc); }
.hero h1 { font-size: clamp(34px, 7.4vw, 76px); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--acc); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em::after { content: "▌"; color: var(--acc); animation: blink 1.1s steps(1) infinite; margin-left: .05em; }
}
@keyframes blink { 50% { opacity: 0; } }
.lede { margin-top: 26px; max-width: 64ch; font-size: clamp(16px, 2vw, 19px); color: #d6d6d6; }
.lede code { background: none; border: 0; padding: 0; color: #fff; }

.install { margin-top: 30px; display: flex; align-items: stretch; max-width: 720px; border: 2px solid var(--acc); box-shadow: 10px 10px 0 var(--acc-soft); background: var(--panel); }
.install .cmd { margin: 0; flex: 1; min-width: 0; padding: 16px 18px; overflow-x: auto; font-size: clamp(13px, 1.9vw, 17px); white-space: pre; }
.install .cmd code { background: none; border: 0; padding: 0; color: #fff; }
.ps { color: var(--acc); user-select: none; -webkit-user-select: none; }
.copy { font: 700 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--acc); color: #000; border: 0; padding: 0 18px; cursor: pointer; min-width: 92px; }
.copy:hover { background: #e2ff66; }
.copy.done { background: var(--pose); }
.install .cmd { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .install { flex-direction: column; }
  .install .cmd { white-space: pre-wrap; word-break: break-all; }
  .copy { padding: 12px 18px; }
}
.fine { color: var(--dim); font-size: 14px; margin-top: 16px; }
.fine code { color: var(--fg); }

/* --- screenshots: acid frame, offset shadow (the X cards' look) ---------- */
.shot { margin: 0; }
.shot img { border: 2px solid var(--acc); box-shadow: 8px 8px 0 var(--acc-soft); background: #000; }
@media (min-width: 720px) { .shot img { box-shadow: 14px 14px 0 var(--acc-soft); } }
.shot.wrap { margin: 0 auto; }
.shot.wide { max-width: 1340px; padding-bottom: 28px; }
.shot.phone img { max-width: 360px; margin: 0 auto; }

/* --- sections ------------------------------------------------------------- */
.band { padding-top: clamp(56px, 9vw, 112px); }
.label { color: var(--acc); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.label::before { content: "// "; color: var(--dim); }
.band h2 { font-size: clamp(26px, 4.4vw, 44px); max-width: 26ch; margin-bottom: 22px; }
.band h2 code { font-size: .8em; }
.band > p { max-width: 68ch; color: #d6d6d6; }
.kbd { display: inline-block; background: var(--acc); color: #000; padding: 0 .3em; font-size: .85em; }

/* the four states, as post-its */
.notes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 720px) { .notes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; } }
.note { color: var(--ink); padding: 16px 14px 22px; min-height: 150px; box-shadow: 8px 8px 0 #262626; position: relative; display: flex; flex-direction: column; gap: 14px; }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; border-style: solid; border-width: 0 0 22px 22px; border-color: transparent transparent rgba(0,0,0,.55) transparent; }
.note b { color: var(--ink); font-size: 19px; letter-spacing: .02em; }
.note span { font-size: 14px; line-height: 1.45; }
@media (min-width: 720px) { .note { padding: 22px 22px 26px; min-height: 190px; } .note b { font-size: 24px; } .note span { font-size: 16px; line-height: 1.5; } }
.note.r { background: var(--encours); } .note.y { background: var(--question); } .note.g { background: var(--pose); } .note.k { background: var(--eteint); }
@media (min-width: 720px) {
  .note:nth-child(odd) { transform: rotate(-1.2deg); } .note:nth-child(even) { transform: rotate(.9deg); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .note { transition: transform .15s; } .note:hover { transform: rotate(0) translateY(-4px); }
}

/* features */
.feature { margin-top: clamp(36px, 6vw, 64px); }
.feature h3 { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 14px; }
.feature h3::before { content: "■ "; color: var(--acc); }
.copy-col { max-width: 68ch; }
@media (min-width: 960px) {
  .feature:not(.split) .copy-col { max-width: none; }
  .feature:not(.split) .copy-col ul { columns: 2; column-gap: 56px; }
  .feature:not(.split) .copy-col li { break-inside: avoid; }
  .feature:not(.split) .copy-col > p { max-width: 76ch; }
  .stack .copy-col { margin-top: 36px; }
}
.copy-col ul, .copy-col ol, .col ol { padding-left: 1.2em; margin: 0 0 1em; }
.copy-col li, .col li { margin-bottom: .55em; color: #d6d6d6; }
.copy-col li::marker { color: var(--acc); }
.copy-col p { color: #d6d6d6; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .split.flip > .shot { order: 2; }
}

/* terminals */
.term { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.7; margin: 0 0 1.2em; white-space: pre; }
.term code { background: none; border: 0; padding: 0; color: #fff; font-size: inherit; }
.term .c { color: var(--dim); }
.term.big { font-size: clamp(13px, 1.6vw, 16px); }

/* a day */
.day { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.day li { padding: 22px 20px 6px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .day li { border-bottom: 0; border-right: 1px solid var(--line); padding: 26px 22px 10px; } .day li:first-child { padding-left: 0; } .day li:last-child { border-right: 0; } }
.day b { color: var(--acc); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; display: block; margin-bottom: 10px; }
.day p { color: #d6d6d6; font-size: 15px; }

/* install columns */
.cols { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 30px; }
.col h3 { font-size: 20px; margin-bottom: 14px; }
.col p { color: #d6d6d6; font-size: 15px; }
.col .term { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }

/* the "no" list */
.nos { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 40px; }
.nos li { padding: 16px 0; border-bottom: 1px dashed var(--line); color: #d6d6d6; }
.nos b { display: block; color: #fff; }
.nos b::before { content: "✕ "; color: var(--encours); }
.btn { display: inline-block; background: var(--acc); color: #000; text-decoration: none; font-weight: 700; padding: 12px 18px; letter-spacing: .04em; margin: 0 10px 10px 0; border: 2px solid var(--acc); }
.btn:hover { background: #e2ff66; }
.btn.ghost { background: transparent; color: var(--acc); }
.btn.ghost:hover { background: var(--acc); color: #000; }

.dog .big { font-size: clamp(20px, 3vw, 30px); line-height: 1.4; max-width: 34ch; color: #fff; }

/* --- footer --------------------------------------------------------------- */
.foot { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--acc); padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
.foot p { margin: 0 0 8px; }
.foot .logo { font-size: 16px; }

/* --- design doc ----------------------------------------------------------- */
.doc { display: grid; gap: 32px; padding-top: clamp(32px, 6vw, 72px); }
@media (min-width: 1040px) {
  .doc { grid-template-columns: 270px minmax(0, 1fr); gap: 0 56px; align-items: start; }
  .doc-head { grid-column: 2; }
  .toc { grid-column: 1; grid-row: 1 / span 2; }
  .doc .prose:not(.doc-head) { grid-column: 2; }
  .toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.toc details { border: 1px solid var(--line); background: var(--panel); padding: 12px 16px; }
.toc summary { cursor: pointer; color: var(--acc); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.toc ol { margin: 12px 0 0; padding-left: 1.6em; font-size: 13px; line-height: 1.5; }
.toc li { margin-bottom: 6px; color: var(--dim); }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--acc); }
.prose { max-width: 76ch; min-width: 0; }
.prose h1 { font-size: clamp(30px, 5.6vw, 52px); margin-bottom: 28px; }
.doc-head p { font-size: 1.05em; }
.doc-head + .toc + .prose > h2:first-child { margin-top: 24px; }
.prose h2 { font-size: clamp(22px, 3.2vw, 30px); margin: 64px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h2::before { content: "■ "; color: var(--acc); }
.prose h3 { font-size: 19px; margin: 32px 0 12px; }
.prose p, .prose li { color: #d6d6d6; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--acc); }
.hash { color: var(--dim); text-decoration: none; font-size: .7em; opacity: 0; }
h2:hover .hash, h3:hover .hash, .hash:focus { opacity: 1; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc); padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; margin: 0 0 1.4em; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.table { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--acc); font-weight: 700; background: var(--panel); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
