/* kowalski.yarenty.com — Commando theme (same tokens as docs/architecture.html and the app). */
:root {
  color-scheme: light dark;
  --paper: #f7f6f3; --surface: #ffffff; --sunk: #eeece7;
  --ink: #111418; --body: #2b2f36; --muted: #5f6670; --line: #d9d6d0; --hair: #e7e4de;
  --red: #d62828; --red-ink: #b71f1f; --red-soft: #fbe3e1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1013; --surface: #171a1f; --sunk: #12151a;
    --ink: #f2efea; --body: #d6d2cc; --muted: #9aa0a8; --line: #2a2f36; --hair: #1f2329;
    --red: #ff5a4e; --red-ink: #ff7a70; --red-soft: #3a1614;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1013; --surface: #171a1f; --sunk: #12151a;
  --ink: #f2efea; --body: #d6d2cc; --muted: #9aa0a8; --line: #2a2f36; --hair: #1f2329;
  --red: #ff5a4e; --red-ink: #ff7a70; --red-soft: #3a1614;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 17px/1.65 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red-ink); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
code { font: 0.86em "JetBrains Mono", ui-monospace, Menlo, monospace; background: var(--sunk); border: 1px solid var(--hair); border-radius: 4px; padding: 0.05em 0.35em; }
pre { background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; font-size: 0.85rem; }
h1, h2, h3 { font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; }
h2 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; margin: 1.8em 0 0.5em; }
h3 { font-weight: 700; font-size: 1.1rem; margin: 1.5em 0 0.4em; }
.eyebrow, .label { font: 500 11.5px "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 14px; }
.standfirst { font-size: 1.2rem; line-height: 1.55; max-width: 64ch; margin: 0 0 24px; }

/* bar */
.bar { background: #111418; color: #f2efea; border-bottom: 4px solid var(--red); }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f2efea; text-decoration: none; font: 800 17px "Archivo", sans-serif; letter-spacing: 0.08em; }
.bar nav { display: flex; gap: 22px; }
.bar nav a { color: #d6d2cc; text-decoration: none; font: 500 12px "JetBrains Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.bar nav a:hover { color: #ffffff; }

main { margin: 0 auto; padding: 56px 24px 80px; }
main.narrow { max-width: 760px; }
main.wide { max-width: 1120px; }

/* home */
.hero { padding: 8px 0 40px; border-bottom: 3px solid var(--ink); position: relative; }
.hero h1 { max-width: 20ch; }
.install { max-width: 720px; background: #111418; color: #f2efea; border: 0; border-left: 5px solid var(--red); }
.install code { color: #f2efea; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font: 700 14px "Archivo", sans-serif; letter-spacing: 0.04em; padding: 11px 20px; border-radius: 5px; border: 2px solid var(--red); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.hordes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 44px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 5px; padding: 20px 20px 10px; }
.card.red { border-top-color: var(--red); }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { font-size: 0.97rem; }
.card .label { color: var(--muted); margin-bottom: 8px; }
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; padding: 30px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.how h2 { margin-top: 0; }
.how figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.latest { margin-top: 40px; }
.latest h2 { margin-top: 0; }

/* demo */
.demo { margin: 40px 0 0; }
.demo video, .prose video { width: 100%; height: auto; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.muted-cap { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

/* post list */
.posts { list-style: none; padding: 0; margin: 10px 0 20px; }
.posts li { border-top: 1px solid var(--hair); }
.posts li:last-child { border-bottom: 1px solid var(--hair); }
.posts a { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 20px; padding: 16px 0; text-decoration: none; color: var(--body); }
.posts .date { grid-row: span 2; font: 500 12px "JetBrains Mono", monospace; color: var(--muted); padding-top: 4px; }
.posts .t { font: 700 1.15rem "Archivo", sans-serif; color: var(--ink); letter-spacing: -0.01em; }
.posts .s { font-size: 0.95rem; color: var(--muted); }
.posts a:hover .t { color: var(--red-ink); }

/* post */
.post h1 { margin-top: 6px; }
.prose { font-size: 1.04rem; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { padding-top: 0.6em; border-top: 3px solid var(--red); width: fit-content; padding-right: 1em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 18px; border-left: 4px solid var(--red); background: var(--red-soft); }
.prose figure { margin: 2em 0; }
.prose figure img { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.prose figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--hair); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font: 500 11px "JetBrains Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--sunk); }
.back { margin-top: 48px; font: 500 13px "JetBrains Mono", monospace; }

/* footer */
.foot { border-top: 3px solid var(--ink); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 20px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font: 12px "JetBrains Mono", monospace; color: var(--muted); }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  main { padding: 36px 16px 60px; }
  .bar-in, .foot-in { padding-left: 16px; padding-right: 16px; }
  .bar nav { gap: 14px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .posts a { grid-template-columns: minmax(0, 1fr); }
  .posts .date { grid-row: auto; }
}
