:root {
  --bg: #121212; --panel: #1b1b1b; --panel-hover: #232323;
  --surface: #181818;
  --text: #f0f0f0; --secondary: #a7a7a7; --dim: #8a8a8a;
  --accent: #1ed760; --accent-text: #08290f; --outline: #2e2e2e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 32px 24px 96px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* the shared site nav: Download · Plugins · Guide */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 56px;
}
.nav-logo {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--secondary); text-decoration: none; font-size: 14px; transition: color 150ms ease-out; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent); }

/* page intro under the nav */
header { margin-bottom: 44px; }
header h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
header p { color: var(--secondary); max-width: 560px; margin-top: 12px; }
header a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--outline); }
header a:hover { text-decoration-color: var(--secondary); }

/* section headings: sentence case, the type carries the hierarchy */
h2 {
  font-size: 17px; font-weight: 650; color: var(--text);
  margin: 44px 0 14px; text-wrap: balance;
}
.section-lead { color: var(--secondary); max-width: 560px; margin: 0 0 18px; }
.section-lead strong { color: var(--text); }

/* the landing hero: the headline is the promise, not the name */
.hero { padding: 32px 0 8px; }
.hero h1 {
  font-size: clamp(32px, 5vw, 46px); font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.08; text-wrap: balance; max-width: 640px;
}
.pitch { color: var(--secondary); font-size: 17px; max-width: 560px; margin: 18px 0 30px; }
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.button.cta { font-size: 16px; padding: 13px 26px; }
.os-links { margin-top: 18px; color: var(--dim); font-size: 13px; }
.os-links a {
  color: var(--secondary); text-decoration: none;
  border-bottom: 1px solid var(--outline); padding-bottom: 1px;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.os-links a:hover { color: var(--text); border-color: var(--secondary); }
.fineprint { margin-top: 14px; color: var(--dim); font-size: 12.5px; }

/* one quiet entrance, and only on the hero; still shows without it */
@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    opacity: 0; transform: translateY(12px);
    animation: arrive 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero > :nth-child(2) { animation-delay: 60ms; }
  .hero > :nth-child(3) { animation-delay: 120ms; }
  .hero > :nth-child(4) { animation-delay: 180ms; }
  .hero > :nth-child(5) { animation-delay: 240ms; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* three listener-facing promises, kept in one row on wider screens. */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--panel);
}
.feature::before {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 44px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}
.feature h3 { font-size: 15px; font-weight: 650; margin-bottom: 8px; }
.feature p { color: var(--secondary); font-size: 13.5px; }

/* plugin cards, on both the landing teaser and the catalog */
.plugin {
  background: var(--panel); border: 1px solid var(--outline); border-radius: 14px;
  padding: 22px 24px; margin-bottom: 14px;
  transition: background 150ms ease-out;
}
.plugin:hover { background: var(--panel-hover); }
.row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.name { font-size: 18px; font-weight: 650; }
.version { color: var(--dim); font-size: 13px; }
.publisher { color: var(--secondary); font-size: 13px; margin-left: auto; }
.desc { color: var(--secondary); margin: 8px 0 14px; max-width: 560px; }
.chip {
  display: inline-block; font-size: 12px; color: var(--secondary);
  border: 1px solid var(--outline); border-radius: 999px; padding: 2px 10px; margin-right: 6px;
}
.chip.cat { color: var(--accent); border-color: #2b5233; }
.actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  font-weight: 600; font-size: 14px; text-decoration: none;
  border-radius: 999px; padding: 9px 18px;
  transition: filter 150ms ease-out;
}
.button:hover { filter: brightness(1.08); }
.button.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--outline); font-weight: 500;
  transition: border-color 150ms ease-out;
}
.button.ghost:hover { border-color: var(--secondary); }
.digest { color: var(--dim); font-size: 12px; font-family: ui-monospace, monospace; }
.note { color: var(--dim); font-size: 12.5px; }
.quiet-link { color: var(--secondary); text-decoration: none; transition: color 150ms ease-out; }
.quiet-link:hover { color: var(--text); }

/* the install how-to box */
.how {
  background: var(--panel); border: 1px solid var(--outline); border-radius: 14px;
  padding: 22px 24px; color: var(--secondary);
}
.how ol { margin: 10px 0 0 20px; }
.how li { margin: 6px 0; }
.how code {
  background: var(--panel-hover); border-radius: 6px; padding: 1px 7px;
  font-size: 13px; color: var(--text);
}
.how strong { color: var(--text); }

/* the guide: sections with a quiet sticky contents column */
.guide { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
.guide-nav {
  position: sticky; top: 24px; align-self: start;
  display: flex; flex-direction: column; gap: 8px;
}
.guide-nav a { color: var(--secondary); text-decoration: none; font-size: 14px; transition: color 150ms ease-out; }
.guide-nav a:hover { color: var(--text); }
.section { margin-bottom: 48px; }
.section > h2:first-child { margin-top: 0; }
.guide h3 { font-size: 15px; font-weight: 650; margin: 22px 0 4px; }
.guide p { color: var(--secondary); margin-bottom: 10px; max-width: 560px; }
.guide ul, .guide ol { margin: 0 0 12px 20px; }
.guide li { color: var(--secondary); margin: 4px 0; max-width: 560px; }
.guide strong { color: var(--text); }
.guide code {
  background: var(--panel-hover); border-radius: 6px; padding: 1px 7px;
  font-size: 13px; color: var(--text);
}
.guide a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--outline); }
.guide a:hover { text-decoration-color: var(--secondary); }

footer { margin-top: 56px; color: var(--dim); font-size: 13px; }
footer a { color: var(--secondary); }

@media (max-width: 720px) {
  .wrap { padding-top: 24px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 34px; }
  .guide { grid-template-columns: 1fr; }
  .guide-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { min-height: 250px; padding: 20px; }
  .feature::before { margin-bottom: 32px; }
}
