:root {
  --paper: #f3efe6;
  --card: #fbf9f4;
  --ink: #161513;
  --muted: #6b665c;
  --line: #d9d3c5;
  --accent: #d9481a;
  --accent-ink: #ffffff;
  --code-bg: #161513;
  --code-ink: #ece7dc;
  --notice: #fff3d6;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121110;
    --card: #1a1917;
    --ink: #ece7dc;
    --muted: #9b9589;
    --line: #2e2b27;
    --accent: #ff6b35;
    --accent-ink: #121110;
    --code-bg: #0b0a09;
    --code-ink: #ece7dc;
    --notice: #2a2316;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--mono);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
h3 {
  font-size: 1.1rem;
}

code,
pre,
.mono {
  font-family: var(--mono);
}
code {
  font-size: 0.92em;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 28px;
  }
}
.narrow {
  max-width: 760px;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* Header / footer */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-mark {
  color: var(--accent);
  margin-right: 8px;
}
.lm-b {
  fill: var(--ink);
}
.logo-year {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
}
@media (max-width: 520px) {
  .nav {
    gap: 12px;
    font-size: 0.875rem;
  }
  .nav a[href="/faq"] {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 40px 0 28px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 6px 32px;
  font-size: 0.9rem;
}
.footer-links a {
  text-decoration: none;
}
.fineprint {
  margin-top: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem/1 var(--mono);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
  color: var(--accent-ink);
}
.btn-block {
  width: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hero */
.hero {
  padding: 56px 0 24px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
  .hero {
    padding: 88px 0 40px;
  }
}
.kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}
.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}
.assurances li::before {
  content: "✓ ";
  color: var(--accent);
}

.terminal {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.45);
}
.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #2a2724;
}
.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3632;
}
.terminal pre {
  margin: 0;
  padding: 18px;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}
.terminal code {
  background: none;
  padding: 0;
}
.t-dim {
  color: #8f897d;
}
.t-accent {
  color: #ff6b35;
}

/* Sections */
.section {
  padding: 40px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.link-arrow {
  font-family: var(--mono);
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
}
.page-title {
  margin-bottom: 0.3em;
}
.section-lede {
  margin: -8px 0 22px;
}
.subhead {
  margin-top: 40px;
  font-size: 1.25rem;
}

/* Categories */
.cat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.cat:hover {
  border-color: var(--ink);
  color: inherit;
}
.cat-name {
  font-family: var(--mono);
  font-weight: 700;
}
.cat-count {
  margin-top: auto;
  color: var(--accent);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  text-decoration: none;
}
.card-link:hover {
  color: inherit;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font: 0.72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}
.tag-accent {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.price {
  font-family: var(--mono);
  font-weight: 700;
}
.card-title {
  margin-bottom: 6px;
}
.card-tagline {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  overflow: hidden;
}
.card-meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.card-meta span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}
.bundle-list {
  margin: auto 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
  columns: 2;
  color: var(--muted);
}
.bundle-list li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.steps li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.steps p {
  margin: 0;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}
.filters a {
  font: 0.85rem/1 var(--mono);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}
.filters a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Product */
.crumbs {
  color: var(--muted);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.crumbs a {
  text-decoration: none;
}
.product-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
  .buybox {
    position: sticky;
    top: 84px;
  }
}
.product-main {
  min-width: 0;
}
.mobile-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  margin: 8px 0 8px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.mobile-buy .buybox-price {
  font-size: 1.8rem;
}
@media (min-width: 900px) {
  .mobile-buy {
    display: none;
  }
}
.buybox {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
}
.buybox form {
  margin: 16px 0;
}
.buybox-price {
  font: 700 2.2rem/1 var(--mono);
  letter-spacing: -0.03em;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.checks li {
  padding: 3px 0;
}
.checks li::before {
  content: "✓ ";
  color: var(--accent);
}
.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 16px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.specs dt {
  color: var(--muted);
}
.specs dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.notice {
  background: var(--notice);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.highlights {
  padding-left: 1.2em;
}
.highlights li {
  margin: 4px 0;
}
.highlights li::marker {
  color: var(--accent);
}

.example {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.example figcaption {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.example-in,
.example-out {
  padding: 14px;
}
.example-in p {
  margin: 4px 0 0;
}
.example-out {
  background: var(--code-bg);
  color: var(--code-ink);
}
.example-out .example-label {
  color: #ff6b35;
}
.example-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.example-out pre {
  margin: 6px 0 0;
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.6;
}
pre.tree,
pre.code {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.55;
}
pre.code {
  font-size: 0.85rem;
}

/* Prose */
.prose {
  max-width: 72ch;
}
.prose h2 {
  margin-top: 1.8em;
  font-size: 1.3rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose p,
.prose li {
  overflow-wrap: break-word;
}

/* Order */
.downloads {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
}
.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (max-width: 520px) {
  .download {
    flex-direction: column;
    align-items: stretch;
  }
}

/* FAQ */
.faq dt {
  font-family: var(--mono);
  font-weight: 700;
  margin-top: 22px;
}
.faq dd {
  margin: 6px 0 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
