/* Nyuzi: no web fonts, no framework. Keeps the page light on slow or metered connections. */
:root {
  --ink: #16132e;
  --ink-2: #2a2650;
  --paper: #faf6ef;
  --paper-2: #f1ebdf;
  --text: #1f1c33;
  --muted: #5b5672;
  --saffron: #f2a541;
  --terracotta: #c95a2e;
  --line: #ddd4c4;
  --ok: #1f7a4d;
  --err: #b3261e;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

a { color: var(--terracotta); }
img { display: block; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--saffron); color: var(--ink); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, var(--ink-2), var(--ink) 60%);
  color: var(--paper);
  padding-bottom: 5rem;
}
.threads {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 70%;
  opacity: .35; pointer-events: none;
}
.threads path { fill: none; stroke-width: 2; }
.threads path:nth-child(1) { stroke: var(--saffron); }
.threads path:nth-child(2) { stroke: #e0703f; }
.threads path:nth-child(3) { stroke: var(--paper); opacity: .6; }
.threads path:nth-child(4) { stroke: var(--saffron); opacity: .5; }

.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.25rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--paper); text-decoration: none;
  font-weight: 700; font-size: 1.35rem; letter-spacing: .02em;
}

.hero-body { position: relative; padding-top: 3.5rem; max-width: 820px; margin-left: max(1.25rem, calc((100% - 1080px) / 2)); }
.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--saffron);
  border: 1px solid rgba(242, 165, 65, .45); border-radius: 999px; padding: .25rem .8rem;
}
h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  line-height: 1.08; letter-spacing: -.02em;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e4def0; max-width: 640px; margin: 0 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.meaning { margin: 0; color: #bdb6d3; font-size: .95rem; }
.meaning span { font-family: var(--mono); font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .6rem 1.3rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--saffron); outline-offset: 2px;
}
.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { background: #f5b25c; }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { color: inherit; border-color: currentColor; background: transparent; }
.join .btn-ghost, .simple .btn-ghost { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: 5rem; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.01em; }
.section-lede { color: var(--muted); max-width: 620px; margin: 0 0 2.5rem; }
.group-label {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta); margin: 2rem 0 1rem;
}

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; border-top: 4px solid var(--saffron);
}
.card h4 { margin: 0 0 .4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.roadmap li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.roadmap li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: .9rem; height: 2px; background: var(--terracotta);
}
.roadmap strong { color: var(--text); }

.how { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .how { grid-template-columns: 1fr 1.1fr; } }
.steps { padding-left: 1.25rem; margin: 1rem 0 0; display: grid; gap: .9rem; }
.steps li::marker { color: var(--terracotta); font-weight: 700; }

.code { margin: 0; }
.code figcaption { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.code pre {
  margin: 0; overflow-x: auto;
  background: var(--ink); color: #eae5f5;
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  font-family: var(--mono); font-size: .9rem; line-height: 1.55;
}

/* ---------- Form ---------- */
.form {
  max-width: 640px; display: grid; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .7rem .85rem; min-height: 46px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
}
textarea { resize: vertical; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--err); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #bdb6d3; padding-block: 1.75rem; font-size: .95rem; }
.footer a { color: var(--saffron); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* ---------- Simple pages (thanks) ---------- */
.simple { min-height: 100vh; display: grid; place-items: center; }
.center { text-align: center; display: grid; justify-items: center; gap: .5rem; }
.center h1 { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 1rem; }
