:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --text: #111111;
  --muted: #737373;
  --border: #e5e5e5;
  --accent: #111111;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
  --r: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(0, 0, 0, 0.04), transparent 60%),
    var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

/* Inline code in paragraphs (light chips) */
:not(pre) > code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

.wrap {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.top-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav > a {
  text-decoration: none;
  color: var(--muted);
}

.nav > a:hover {
  color: var(--text);
}

.seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  gap: 2px;
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 28px;
  border-radius: 6px;
  padding: 0 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.seg button.is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2.75rem 0 1.25rem;
}

.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.lead {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 62ch;
}

.fine {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fafafa;
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  filter: brightness(1.08);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
}

.btn.ghost:hover {
  background: var(--surface-2);
}

.shot {
  padding: 0.5rem 0 1.5rem;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  display: block;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel {
  margin-bottom: 1rem;
}

.panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.panel h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.muted a {
  color: var(--text);
}

/* Multi-line install snippets — high contrast (light panel, dark text) */
.codeblock {
  position: relative;
  margin: 0.5rem 0 0;
  background: #f4f4f5;
  color: #111111;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.codeblock pre,
.codeblock code {
  margin: 0;
  color: #111111 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
}

.codeblock pre {
  padding: 1rem 3.25rem 1rem 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre;
}

.codeblock code {
  display: block;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: inherit;
}

.codeblock .copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #111111;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 1;
}

.codeblock .copy:hover {
  background: #e5e5e5;
}

.panel.warn {
  background: var(--surface-2);
}

.panel.warn .links {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}

.panel.warn .links a {
  font-weight: 600;
}

.foot {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.foot a {
  color: var(--text);
  font-weight: 500;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: #111;
  color: #fafafa;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 50;
}

@media (max-width: 640px) {
  .nav > a {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }
}
