:root {
  --bg: #000000;
  --panel: #121212;
  --raised: #1c1c1c;
  --line: #2c2c2c;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --accent: #f7781a;
  --accent-bright: #ff9a2e;
  --accent-ink: #1a0d00;
  --blue: #739fc6;
  --good: #6bd38a;
  --radius: 14px;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.92em; }
code { background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.top nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.top nav a { color: var(--muted); font-size: 0.95rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 48px 0 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); }
.hero .art { display: flex; justify-content: center; }
.hero .art img { max-width: 380px; border-radius: var(--radius); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 12px 18px;
  font-weight: 600; min-width: 160px; border: 1px solid transparent;
}
.btn:hover { background: var(--accent-bright); text-decoration: none; }
.btn.alt { background: var(--raised); color: var(--text); border-color: var(--line); }
.btn.alt:hover { border-color: var(--muted); background: #222; }
.btn .sub { font-weight: 400; font-size: 0.82rem; opacity: 0.85; }

/* Sections */
section { padding: 36px 0; border-top: 1px solid var(--line); }
section.plain { border-top: 0; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.card h3 .tag { font-size: 0.75rem; font-weight: 600; color: var(--accent-bright); background: var(--accent-ink); border: 1px solid #3a2000; border-radius: 999px; padding: 2px 10px; }
.card ul { padding-left: 1.1em; margin: 0.4em 0 0; }
.card li { margin: 0.25em 0; }
.features { columns: 2; column-gap: 28px; padding-left: 1.1em; margin: 0; }
.features li { break-inside: avoid; margin: 0 0 0.7em; }
.features b { color: var(--text); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border-radius: 16px; border: 1px solid var(--line); }
.shots figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.note { background: var(--raised); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 16px; color: var(--muted); }
.steps { padding-left: 1.3em; }
.steps li { margin: 0.4em 0; }
.release { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; color: var(--muted); font-size: 0.92rem; margin: 6px 0 12px; }
.release .version { color: var(--good); font-weight: 600; font-size: 1rem; }
.files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.files li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.files li a.name { font-weight: 600; word-break: break-all; }
.files li .size { color: var(--muted); font-size: 0.88rem; }
.files li .sum { margin-left: auto; font-size: 0.85rem; color: var(--muted); }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.links a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); }
.links a:hover { border-color: var(--muted); text-decoration: none; }
.links a span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer .wrap p { margin: 0; }
footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.toc a { background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; color: var(--text); font-size: 0.9rem; }
.toc a:hover { border-color: var(--muted); text-decoration: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero .art { order: -1; }
  .hero .art img { max-width: 260px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .features { columns: 1; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .top nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
}
