/* shpiel.dev — black, Geist, white highlight blocks, hairline borders.
   Same family vibe as loewenthal.net, structured like spegel.dev. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/geist-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-mono-400.woff2") format("woff2");
}

:root {
  --bg: #000;
  --fg: #fff;
  --dim: #d1d5db;
  --muted: #9ca3af;
  --faint: #6b7280;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.25);
  --code-bg: #0a0a0a;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

a {
  color: inherit;
}

mark {
  background: var(--fg);
  color: var(--bg);
  padding: 0.05em 0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

p code,
li code,
td code,
h2 code,
h3 code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12em 0.35em;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.wrap-narrow {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ---- nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand .tld {
  color: var(--faint);
  font-weight: 400;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav nav a:hover,
.nav nav a[aria-current="page"] {
  color: var(--fg);
}

.nav .stars {
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.5rem;
}

/* ---- hero ---- */

.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: border-color 0.2s;
}

.pill:hover {
  border-color: var(--line-strong);
}

.pill .dot {
  width: 0.4rem;
  height: 0.4rem;
  background: var(--fg);
  border-radius: 50%;
}

.pill .pill-date {
  color: var(--faint);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 60rem;
}

.lead {
  margin-top: 2rem;
  max-width: 42rem;
  color: var(--dim);
  font-size: 1.2rem;
}

.hero pre {
  margin-top: 2.5rem;
  max-width: 42rem;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.75;
}

pre code {
  font-size: inherit;
  background: none;
  padding: 0;
}

pre .c {
  color: var(--faint);
}

.cta-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: #d4d4d4;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.clients {
  margin-top: 2.5rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* ---- sections ---- */

.section {
  border-top: 1px solid var(--line);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.eyebrow {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 46rem;
}

.prose-cols {
  margin-top: 2rem;
  max-width: 46rem;
  display: grid;
  gap: 1.5rem;
  color: var(--dim);
  font-size: 1.05rem;
}

.prose-cols a {
  color: var(--fg);
  text-underline-offset: 3px;
}

/* ---- feature grid ---- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.features .cell {
  background: var(--bg);
  padding: 2rem;
}

.features h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.features h3 code {
  background: none;
  padding: 0;
}

.features p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- install ---- */

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.install-grid h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-note {
  margin-top: 2rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-note a {
  color: var(--fg);
  text-underline-offset: 3px;
}

/* ---- compatibility table ---- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  text-align: left;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0 1rem 0.75rem 0;
  border-bottom: 1px solid var(--line-strong);
}

td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td:first-child {
  color: var(--fg);
  font-weight: 600;
}

td .note {
  color: var(--faint);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

/* ---- final CTA ---- */

.cta-final {
  text-align: center;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.cta-final h2 {
  max-width: none;
}

.cta-final .cta-row {
  justify-content: center;
  margin-top: 3rem;
}

/* ---- content pages (releases / changelog) ---- */

.page {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.page h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.page .lead {
  font-size: 1.05rem;
}

.page .lead a,
.page .error a {
  color: var(--fg);
  text-underline-offset: 3px;
}

.error {
  margin-top: 3rem;
  color: var(--dim);
}

.release {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

.release header h2 {
  font-size: 1.75rem;
}

.release header h2 a {
  text-decoration: none;
}

.release header h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.release-meta {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.badge {
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
}

.badge-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.release-assets {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.release-assets a {
  color: var(--muted);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.release-assets a:hover {
  color: var(--fg);
}

/* ---- rendered markdown ---- */

.md {
  margin-top: 1.5rem;
  color: var(--dim);
}

.md h2,
.md h3,
.md h4 {
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
  max-width: none;
}

.md h2 {
  font-size: 1.5rem;
}

.md h3 {
  font-size: 1.1rem;
}

.md p {
  margin: 0.75rem 0;
}

.md ul,
.md ol {
  margin: 0.75rem 0;
  padding-left: 1.4rem;
}

.md li {
  margin: 0.4rem 0;
}

.md li::marker {
  color: var(--faint);
}

.md a {
  color: var(--fg);
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.md a:hover {
  text-decoration-color: var(--fg);
}

.md pre {
  margin: 1rem 0;
}

.md hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.md blockquote {
  border-left: 2px solid var(--line-strong);
  padding-left: 1rem;
  color: var(--muted);
}

/* ---- footer ---- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}

.footer-links {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-meta {
  color: var(--faint);
  margin-left: auto;
}

.footer-mark {
  display: block;
  width: 100%;
  height: auto;
}

.footer-mark text {
  fill: var(--fg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 270px;
  letter-spacing: -0.04em;
}

/* ---- responsive ---- */

@media (max-width: 56rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .install-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .wrap,
  .wrap-narrow,
  .nav-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav nav {
    gap: 0.85rem;
  }

  .nav nav a {
    font-size: 0.85rem;
  }

  .brand .tld {
    display: none;
  }

  .nav .stars {
    margin-left: 0.35rem;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    margin-left: 0;
  }

  table,
  thead,
  tbody,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    display: block;
    padding: 0.35rem 0;
    border-bottom: 0;
  }

  tr {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
}
