/* Landing and download pages. vendor/style.css supplies the theme tokens, buttons and the heading face. */
.site body, body.site { padding-bottom: 0; }
.site-header { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 18px 0 8px; }
.site-header .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.site-header .brand img { width: 40px; height: 40px; border-radius: 9px; }
.site-header nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.site-header nav a { color: var(--text-secondary); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.site-header nav a:hover { background: var(--grid); color: var(--text-primary); }
.site-header nav a.primary { background: var(--accent); color: #fff; }
.site-header nav a.primary:hover { filter: brightness(1.08); }
header h1 a { color: inherit; text-decoration: none; }
header a.brand { color: inherit; text-decoration: none; }
header .logo { width: 34px; height: 34px; border-radius: 8px; vertical-align: middle; }

.hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 36px 0 24px; }
@media (min-width: 960px) { .hero { grid-template-columns: 5fr 7fr; gap: 40px; padding: 56px 0 36px; } }
.hero h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em; }
.hero p.lead { font-size: 17px; line-height: 1.55; color: var(--text-secondary); margin: 0 0 22px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--border); color: var(--text-primary); background: var(--surface-1); }
.cta a:hover { background: var(--grid); }
.cta a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta a.primary:hover { filter: brightness(1.08); background: var(--accent); }
.cta .fine { width: 100%; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.cta .fine a { display: inline; padding: 0; border: 0; background: none; font-weight: 500; font-size: inherit; color: var(--text-secondary); text-decoration: underline; }

.shot { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14); }
:root[data-theme="dark"] .shot { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); } }
.shot-wrap { overflow: hidden; border-radius: 12px; }
.shot-wrap.tall { max-height: 560px; }
.shot-wrap.tall .shot { border-radius: 12px 12px 0 0; }

.section { padding: 28px 0; }
.section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 18px; font-weight: 600; }
.feature { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; padding: 26px 0; border-top: 1px solid var(--border); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 4fr 8fr; gap: 40px; padding: 40px 0; }
  .feature.flip { grid-template-columns: 8fr 4fr; } /* the picture keeps the wide column on either side */
  .feature.flip .copy { order: 2; }
}
.feature h4 { font-size: 22px; margin: 0 0 10px; line-height: 1.2; }
.feature p { color: var(--text-secondary); line-height: 1.55; margin: 0 0 10px; }
.feature ul { color: var(--text-secondary); line-height: 1.55; padding-left: 18px; margin: 0; }
.feature li { margin: 4px 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tiles .tile h4 { font-size: 16px; margin: 0 0 6px; }
.tiles .tile p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; margin: 0; }
.tiles .tile .n { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; line-height: 26px; font-weight: 700; font-size: 13px; margin-bottom: 8px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 22px 0 36px; color: var(--text-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-footer a { color: var(--text-secondary); }
.site-footer .grow { flex: 1; }
.site-footer .maker { color: var(--text-primary); font-weight: 600; }

/* download page */
.release { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .release { grid-template-columns: 1fr 1fr; } }
.release .card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.release .card h2 { font-size: 18px; }
.release .card .desc { flex: 1; }
.release .meta { color: var(--text-muted); font-size: 12.5px; }
.release .meta code { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; word-break: break-all; }
.release .cta { margin-top: 4px; }
.notice { border: 1px solid var(--border); background: var(--surface-1); border-radius: 10px; padding: 12px 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.notice.bad { border-color: var(--bad); }
.cta a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
details#notes { margin: 0 0 24px; }
details#notes summary { cursor: pointer; color: var(--text-secondary); font-size: 14px; }
details#notes pre { white-space: pre-wrap; font-size: 12.5px; color: var(--text-secondary); background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-top: 8px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { position: relative; padding-left: 40px; color: var(--text-secondary); line-height: 1.5; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; line-height: 26px; font-weight: 700; font-size: 13px; }
.steps b { color: var(--text-primary); }
.prose { max-width: 760px; color: var(--text-secondary); line-height: 1.6; }
.prose h2 { color: var(--text-primary); font-size: 20px; margin: 28px 0 8px; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--grid); padding: 1px 5px; border-radius: 4px; }

/* guide page */
.section-more { color: var(--text-secondary); font-size: 14px; margin: 16px 0 0; }
.guide-hero { padding-bottom: 4px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .guide-hero { grid-template-columns: 1fr; padding-top: 40px; } }
.guide-hero .lead { max-width: 720px; }
.guide { display: grid; grid-template-columns: 1fr; gap: 24px 40px; align-items: start; padding: 12px 0 8px; }
@media (min-width: 960px) {
  .guide { grid-template-columns: 200px minmax(0, 1fr); }
  .guide .toc { position: sticky; top: 16px; }
}
.guide .toc h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 8px; font-weight: 600; }
.guide .toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (min-width: 960px) { .guide .toc ol { flex-direction: column; } }
.guide .toc a { color: var(--text-secondary); text-decoration: none; font-size: 14px; line-height: 1.6; }
.guide .toc a:hover { color: var(--text-primary); text-decoration: underline; }
.guide .prose { max-width: 820px; }
.guide .prose h2 { font-size: 24px; margin: 40px 0 10px; scroll-margin-top: 16px; }
.guide .prose h2:first-child { margin-top: 0; }
.guide .prose h3 { color: var(--text-primary); font-size: 16px; margin: 22px 0 6px; }
.guide .prose p, .guide .prose li { line-height: 1.6; }
.guide .prose ul { padding-left: 20px; margin: 0 0 12px; }
.guide .prose li { margin: 6px 0; }
.guide .prose b { color: var(--text-primary); font-weight: 600; }
.guide .prose .steps { margin: 8px 0 14px; }
.guide figure.shot-wrap { margin: 14px 0 20px; overflow: visible; }
.guide figure.shot-wrap.tall { max-height: none; }
.guide figure.shot-wrap.tall .shot { border-radius: 12px; }
.guide figure.shot-wrap.narrow { max-width: 480px; }
.guide figcaption { color: var(--text-muted); font-size: 12.5px; margin-top: 8px; }
