/* get.hiveloom.cloud — hand-written, no framework, no build step. */

:root {
  --bg: #0a0e14;
  --bg-alt: #0d1219;
  --bg-elevated: #11171f;
  --bg-code: #0d1117;
  --border: #1c2531;
  --border-subtle: #161d26;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --text-faint: #6e7681;
  --accent: #56d4ff;
  --accent-dim: #2a9fd6;
  --accent-ink: #04121a;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 0.5rem 0.9rem; border-radius: 6px;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.5rem;
  padding: 0 1.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--text); font-weight: 600; letter-spacing: -0.01em; font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 5px; }

.topnav { margin-left: auto; display: flex; gap: 1.4rem; font-size: 0.9rem; }
.topnav a { color: var(--text-dim); }
.topnav a:hover { color: var(--text); text-decoration: none; }

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

.hero {
  max-width: 52rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(86, 212, 255, 0.10), transparent 70%);
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 650;
  text-wrap: balance;
}

.lede {
  margin: 0 auto 2.25rem;
  max-width: 40rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  text-wrap: pretty;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.install code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
}
.install .copy {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  min-width: 4.2rem;
}
.install .copy:hover { color: var(--text); border-color: var(--accent-dim); }

.install-alt { margin: 0.85rem 0 0; font-size: 0.86rem; color: var(--text-faint); }
.install-alt code { font-family: var(--font-mono); }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.btn:hover { border-color: var(--accent-dim); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-primary:hover { background: #7ee0ff; border-color: #7ee0ff; }

/* ----------------------------------------------------------------- bands */

.band { padding: 4.5rem 0; border-top: 1px solid var(--border-subtle); }
.band.alt { background: var(--bg-alt); }

.band h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 640;
}

.section-lede {
  margin: 0 0 2.5rem;
  max-width: 44rem;
  color: var(--text-dim);
  text-wrap: pretty;
}

.band h3 { margin: 0 0 0.5rem; font-size: 1.02rem; font-weight: 600; }
.band p { text-wrap: pretty; }

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.35rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.card p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

/* -------------------------------------------------------------- evidence */

figure { margin: 0 0 2rem; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-wrap: pretty;
}

.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 34rem;
}
caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
th, td { border: 1px solid var(--border); padding: 0.55rem 0.8rem; text-align: right; }
thead th { background: var(--bg-elevated); font-weight: 600; text-align: right; }
th[scope="row"], thead th:first-child { text-align: left; font-weight: 500; }
tbody tr.hi { background: rgba(86, 212, 255, 0.07); }
tbody tr.hi th[scope="row"] { color: var(--accent); font-weight: 600; }

.caveat {
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--accent-dim);
  background: var(--bg-elevated);
  border-radius: 0 8px 8px 0;
  margin-bottom: 2.5rem;
}
.caveat p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.split p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.more { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

/* ----------------------------------------------------------------- code */

pre.code {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
}
pre.code code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}
pre.code .c { color: var(--text-faint); }
pre.code .s { color: #a5d6ff; }
pre.code .k { color: #ff7b72; }
pre.code.plain { font-size: 0.82rem; }

.ticks { margin: 0; padding-left: 1.2rem; color: var(--text-dim); font-size: 0.93rem; }
.ticks li { margin: 0.45rem 0; }

/* -------------------------------------------------------------- closing */

.closing { text-align: center; }
.closing .section-lede { margin-left: auto; margin-right: auto; }
.closing .cta { margin-top: 1.5rem; }

.doclinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: center;
  margin: 2.5rem 0 0;
  font-size: 0.9rem;
}
.doclinks a { color: var(--text-dim); }
.doclinks a:hover { color: var(--accent); }

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

.sitefoot {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.sitefoot .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.sitefoot p { margin: 0; }
.sitefoot a { color: var(--text-dim); margin-right: 1.25rem; }
.sitefoot a:last-child { margin-right: 0; }

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

@media (max-width: 720px) {
  .topnav { gap: 1rem; font-size: 0.85rem; }
  .topnav a:nth-child(1), .topnav a:nth-child(2) { display: none; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .band { padding: 3.25rem 0; }
  .install { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
