/* lydtjommi.online — dark and plain, like the box's own web app.
   The tokens are copied from musicplayer's companion/static/style.css so the
   site and the product read as one thing. System fonts, nothing external. */
:root {
  --bg: #0e1013; --surface: #17191f; --surface-2: #1e2128; --border: #272b33;
  --text: #e7e9ec; --text-dim: #949aa4; --text-faint: #7b818b;
  --accent: #3b82f6; --accent-text: #7fb0ff; --accent-soft: rgba(59,130,246,.15);
  --kid: #fbbf24; --kid-soft: rgba(251,191,36,.1); --kid-border: #5a4512;
  --ok: #86efac; --danger: #ef4444; --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* ---- header ---- */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(14,16,19,.94);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.top-inner { display: flex; align-items: center; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { width: 26px; height: 26px; color: var(--accent); }
.nav { display: flex; gap: .25rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--text-dim); padding: .45rem .7rem; border-radius: 10px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current] { color: var(--accent-text); background: var(--accent-soft); }
@media (max-width: 34rem) {
  .top-inner { padding-top: .4rem; padding-bottom: .4rem; gap: .25rem; }
  .nav { margin-left: -0.7rem; width: calc(100% + 1.4rem); }
}

/* ---- type ---- */
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; margin: .3rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.meta { color: var(--text-faint); font-size: .88rem; }
.block { padding-top: 2rem; padding-bottom: 1rem; }
/* Narrow text column, but left-aligned with the rest of the page: limit the
   children, not the .wrap container (that would centre it). */
.prose > *, .story > * { max-width: 44rem; }
.prose p, .prose li { color: var(--text); }
.prose blockquote { margin: 1rem 0; padding: .2rem 1rem; border-left: 3px solid var(--accent); color: var(--text-dim); }
time { color: var(--text-faint); font-size: .9rem; }
.sig { font-style: italic; color: var(--text-dim); }

/* ---- hero ---- */
.hero { border-bottom: 1px solid var(--border);
  background: radial-gradient(60rem 30rem at 85% 10%, rgba(59,130,246,.12), transparent 60%); }
.hero-inner { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-inner { grid-template-columns: 1.1fr 1fr; padding-top: 4rem; padding-bottom: 4rem; } }
.tagline { color: var(--accent-text); font-weight: 600; margin: 0 0 1rem; }
.lede { font-size: 1.12rem; color: var(--text-dim); max-width: 34rem; }
.hero-media { margin: 0; }
.hero-media img, .hero-media svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* ---- buttons ---- */
.ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 10px;
  padding: .6rem 1.1rem; font: inherit; font-weight: 600; font-size: .98rem; min-height: 44px; cursor: pointer; }
.btn:hover, button:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface); }
button[disabled] { opacity: .6; cursor: progress; }

/* ---- features ---- */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; } }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; }
.features strong { display: block; }
.features span { color: var(--text-dim); font-size: .95rem; }

/* ---- story ---- */
.story h2 { font-size: 1.5rem; }
.story p { font-size: 1.08rem; }

/* ---- panel + signup ---- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; max-width: 44rem; }
.panel h2 { margin-top: 0; }
.signup label { display: block; font-weight: 600; margin-bottom: .35rem; }
.signup .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.signup input[type=email] { flex: 1 1 14rem; min-width: 0; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: .65rem .8rem; font: inherit; min-height: 44px; }
.signup input::placeholder { color: var(--text-faint); }
.signup .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: .6rem 0 0; font-size: .95rem; }
.note:empty { display: none; }
.note.ok { color: var(--ok); }
.note.error { color: #fca5a5; }

/* ---- generic cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; margin: 0 0 .75rem; }
.card p { margin: .2rem 0 0; color: var(--text-dim); font-size: .93rem; }

/* ---- roadmap ---- */
.roadmap { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .roadmap { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.roadmap h2 { margin-top: 0; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.col-done h2 { color: var(--ok); }
.col-working h2 { color: var(--accent-text); }
.col-idea h2 { color: var(--kid); }
.col-done .card { border-left: 3px solid #2f6b46; }
.col-working .card { border-left: 3px solid var(--accent); }
.col-idea .card { border-left: 3px solid var(--kid-border); }

/* ---- devlog ---- */
.posts { list-style: none; padding: 0; margin: 1.5rem 0; }
.post { display: flex; gap: 1rem; align-items: flex-start; }
.post img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; }
.post h2 { margin: .1rem 0 .3rem; font-size: 1.15rem; }
.post p { margin: 0; }
@media (max-width: 30rem) { .post img { width: 84px; height: 63px; } }
.pager { display: flex; gap: 1rem; justify-content: space-between; }
.photo { margin: 1.25rem 0; }
.photo img { display: block; border-radius: 10px; }
.photo figcaption { color: var(--text-faint); font-size: .88rem; margin-top: .35rem; }

/* ---- software ---- */
.shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.shots.box { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.shot { margin: 0; }
.shot img { display: block; border-radius: 12px; border: 1px solid var(--border); }
.shot figcaption { color: var(--text-dim); font-size: .9rem; margin-top: .4rem; }
.soon { display: inline-block; color: var(--text-dim); background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: .5rem .8rem; }
.links { margin: .5rem 0; }
.status-badge { display: inline-block; color: var(--kid); background: var(--kid-soft); border: 1px solid var(--kid-border);
  border-radius: 999px; padding: .2rem .8rem; font-size: .9rem; font-weight: 600; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0 2.5rem; color: var(--text-dim); }
.foot p { margin: .3rem 0; }
