@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  src: url("../font/inter.woff2?h=d98bb97cd3") format("woff2");
}

:root {
  --acc: #4ade80;     /* green-400 */
  --bg: #000000;      /* javier.beaumont.eus */
  --bg-code: #18181b; /* zinc-900 */
  --bg-mm: #09090b;   /* zinc-950: minimoni */
  --brd: #27272a;     /* zinc-800 */
  --mut: #a1a1aa;     /* zinc-400 */
  --surf: #18181b;    /* zinc-900 */
  --txt: #fafafa;     /* zinc-50  */
  --maxw: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  margin: 0;
}

a {
  color: var(--acc);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

h1, h2 {
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: lowercase;
}

/* Hero */

.hero {
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 800;
  margin: 0;
}

.hero h1::before {
  background: url("../image/mark.svg") center / contain no-repeat;
  content: "";
  display: inline-block;
  height: 0.89em;
  margin-right: 0.1em;
  vertical-align: -0.19em;
  width: 0.89em;
}

.tagline {
  color: var(--mut);
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  margin: 12px auto 0;
  max-width: 42ch;
  text-wrap: balance;
}

.stat-line {
  color: var(--mut);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 8px 0;
  justify-content: center;
  margin-top: 20px;
}

.stat-line span {
  padding: 0 16px;
}

.stat-line span + span {
  border-left: 1px solid var(--brd);
}

/* Sections */

main {
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 0 24px;
}

section {
  border-top: 1px solid var(--brd);
  padding-bottom: 24px;
}

section h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0 0 8px;
  padding-top: 24px;
}

/* Pillars */

.pillars {
  border-top: none;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pillar {
  background: var(--surf);
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 24px;
}

.pillar h2 {
  color: var(--acc);
  font-size: 1.2rem;
  margin: 0 0 8px;
  padding: 0;
}

.pillar p {
  color: var(--mut);
  margin: 0;
}

/* Install */

.install p {
  color: var(--mut);
}

.code-wrap {
  margin: 20px 0;
  position: relative;
}

.code-wrap pre {
  background: var(--bg-code);
  border: 1px solid var(--brd);
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
  overflow-x: auto;
  padding: 20px;
}

.copy-btn {
  background: var(--surf);
  border: 1px solid var(--brd);
  border-radius: 6px;
  color: var(--txt);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  padding: 6px 12px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.copy-btn:hover {
  border-color: var(--acc);
}

.copy-btn.copied {
  border-color: var(--acc);
  color: var(--acc);
}

.fine {
  font-size: 0.85rem;
}

/* Preview */

/* No divider or heading above the screenshot: it flows straight from the pillars. */
.preview {
  border-top: none;
}

.preview img {
  border: 1px solid var(--brd);
  border-radius: 12px;
  display: block;
  height: auto;
  width: 100%;
}

/* Call to action */

.cta {
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta a {
  align-items: center;
  background: var(--bg-mm);
  border: 1px solid var(--brd);
  border-radius: 8px;
  color: var(--txt);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 8px;
  padding: 10px 20px;
}

.cta a:hover {
  border-color: var(--acc);
  text-decoration: none;
}

.cta a::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 16px;
  width: 16px;
}

.cta .github::before {
  background-image: url("../image/github.svg");
}

.cta .releases::before {
  background-image: url("../image/download.svg");
}

/* Honest framing */

.honest p {
  color: var(--mut);
}

.honest em {
  color: var(--txt);
  font-style: italic;
}

.honest ul {
  color: var(--mut);
  margin: 0 0 16px;
  padding-left: 20px;
}

.honest li {
  margin: 4px 0;
}

/* Footer */

footer {
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 0 24px;
  text-align: center;
}

.foot-note {
  border-top: 1px solid var(--brd);
  color: var(--mut);
  font-size: 0.85rem;
  margin: 0;
  padding: 24px;
}

/* Utilities */

.hide {
  display: none;
}

/* Hidden visually but kept in the DOM and accessibility tree (screen readers, heading outline, SEO).
Not display:none, which would remove it from both. */
.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Off-screen but still selectable: the clipboard fallback cannot copy from a display:none node. */
.offscreen {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
}
