/* Tusivo: plain, fast, no scripts, no trackers. A quiet dark theme in the spirit of "Min Dark": near-black, hairlines, one calm accent. */
:root {
  color-scheme: dark;
  --bg: #1f1f1f;
  --deep: #191919;
  --surface: #242424;
  --line: #333333;
  --ink: #d4d4d4;
  --strong: #f3f3f3;
  --muted: #8b929a;
  --accent: #79b8ff;
  --accent-ink: #0b1b2e;
  --accent-soft: rgba(121, 184, 255, .12);
  --warm: #ffab70;
  --warm-soft: rgba(255, 171, 112, .08);
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(121, 184, 255, .3); color: var(--strong); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: .88em; background: #2a2a2a; border: 1px solid var(--line); border-radius: 4px; padding: .1em .4em; color: var(--strong); }
.wrap { width: min(920px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--strong); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* header: one quiet line */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--strong); text-decoration: none; font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand span { display: block; padding-top: 2px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 6px; font-size: .95rem; }
.nav a:hover { color: var(--strong); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }

/* type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--strong); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
section { padding: 56px 0; }
.band { background: var(--deep); border-block: 1px solid var(--line); }
.kicker { color: var(--accent); font-family: var(--mono); font-weight: 500; text-transform: lowercase; letter-spacing: .04em; font-size: .85rem; margin-bottom: 14px; }
.kicker::before { content: "// "; color: var(--muted); }

.hero { padding: 72px 0 48px; }
.hero h1 { max-width: 15em; }

/* buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px; font-weight: 600; font-size: .98rem; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn.alt:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* cards: flat, hairline, no shadow */
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.band .card { background: var(--bg); }

.app-card { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: center; }
.app-card img { width: 88px; height: 88px; border-radius: 20px; }
.app-card h2 a, .app-card h3 a { color: var(--strong); }
.tag { display: inline-block; font-family: var(--mono); font-size: .75rem; color: var(--muted); border: 1px solid var(--line); padding: 1px 9px; border-radius: 999px; }
.tag.beta { color: var(--warm); border-color: rgba(255, 171, 112, .45); }
.vs { color: var(--muted); font-size: .95rem; }

.notice { background: var(--warm-soft); border: 1px solid var(--line); border-left: 3px solid var(--warm); border-radius: 6px; padding: 14px 18px; }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding-left: 24px; position: relative; margin-bottom: .55em; }
ul.ticks li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin-bottom: .6em; }
ol.steps li::marker { color: var(--accent); font-family: var(--mono); }

/* screenshots */
.shots { display: grid; gap: 32px; }
figure.shot { margin: 0; }
figure.shot a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--deep); }
figure.shot a:hover { border-color: #4a4a4a; }
figure.shot figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }
figure.shot figcaption strong { color: var(--ink); font-weight: 600; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--strong); }
summary::marker { color: var(--accent); }
details[open] summary { margin-bottom: 8px; }
details p:last-child { margin-bottom: 0; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .9rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 24px 56px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); text-decoration: none; }
footer p { margin: 0 0 .45em; }
footer strong { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { position: static; }
  .top .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; }
  .nav { margin-left: -12px; }
  .app-card { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .hero { padding: 44px 0 32px; }
}

/* each app can have its own accent; the page says which with a class on the body */
body.app-pagjoro { --accent: #b392f0; --accent-ink: #1a1030; --accent-soft: rgba(179, 146, 240, .12); }
body.app-duejoro { --accent: #fb923c; --accent-ink: #2a1205; --accent-soft: rgba(251, 146, 60, .12); }

/* on paper: black on white, without the chrome */
@media print {
  :root { --bg: #fff; --deep: #fff; --surface: #fff; --line: #bbb; --ink: #111; --strong: #000; --muted: #444; --accent: #000; }
  .top, footer .cols a, .actions { display: none; }
  body { background: #fff; }
}
