:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --ink: #1f2421;
  --muted: #6b716c;
  --line: #e7e2d8;
  --accent: #c2512f;
  --accent-ink: #ffffff;
  --leaf: #3f6b4f;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161917; --surface: #1e2220; --ink: #ecebe6; --muted: #9da39e;
    --line: #2d322f; --accent: #e07352; --leaf: #7fb08f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }

header.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 19px; }
.logo:hover { text-decoration: none; }
nav.main { display: flex; gap: 22px; flex: 1; }
nav.main a { color: var(--muted); font-size: 15px; }
nav.main a:hover, nav.main a.on { color: var(--ink); text-decoration: none; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 720px) { nav.main { display: none; } }

.hero { padding: 84px 0 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero small { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } }

.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px -24px rgba(40, 30, 20, .35); overflow: hidden; }
.shot .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px; }
.shot .grid span { aspect-ratio: 1; border-radius: 6px; }
.shot .caption { padding: 0 14px 14px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }

section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.01em; }
section.block p.sub { color: var(--muted); margin: 0 0 36px; max-width: 620px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 10px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { counter-increment: s; padding-left: 46px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--leaf); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }

pre, code { font-family: var(--mono); font-size: 14px; }
pre { background: #1d211f; color: #e8e6df; padding: 18px 20px; border-radius: 12px; overflow-x: auto; line-height: 1.55; }
p code, li code { background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 2px 6px; border-radius: 5px; }
pre .c { color: #8e978f; }

.quote { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote blockquote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quote cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; font-size: 14px; }
@media (max-width: 760px) { .quote { grid-template-columns: 1fr; } }

.page { padding: 56px 0 72px; }
.page h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -0.02em; }
.page h2 { margin-top: 44px; }
.page .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.release { border-left: 3px solid var(--line); padding: 2px 0 2px 22px; margin: 0 0 34px; }
.release h3 { margin: 0; font-size: 20px; }
.release .date { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px;
  background: color-mix(in srgb, var(--leaf) 18%, transparent); color: var(--leaf); vertical-align: 3px; }
.posts { list-style: none; padding: 0; display: grid; gap: 24px; }
.posts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.posts h3 { margin: 0 0 6px; }
.posts p { margin: 0; color: var(--muted); }
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.docs aside { position: sticky; top: 90px; align-self: start; font-size: 15px; }
.docs aside a { display: block; color: var(--muted); padding: 4px 0; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs aside { position: static; } }

.auth { max-width: 380px; margin: 72px auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; }
.auth h1 { font-size: 24px; margin: 0 0 4px; }
.auth p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.auth label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.auth input { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; }
.auth button { width: 100%; margin-top: 22px; border: 0; cursor: pointer; }
.auth .err { color: var(--accent); font-size: 14px; margin-top: 14px; }

footer.bottom { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.bottom a { color: var(--muted); margin-right: 16px; }
