:root {
  color-scheme: dark;
  --bg: #05040a;
  --bg-2: #10131c;
  --panel: #120f18;
  --panel-2: #1c2130;
  --ink: #f4f1ea;
  --muted: #9aa3b8;
  --line: rgba(255, 45, 149, 0.28);
  --violet: #c4b5fd;
  --violet-2: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #ff2d95;
  --amber: #fbbf24;
  --good: #b8ff3c;
  --bad: #fb7185;
  --acid: #b8ff3c;
  --shadow: 8px 8px 0 rgba(255, 45, 149, 0.55);
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mx: 50%;
  --my: 18%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(480px 260px at var(--mx) var(--my), rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(900px 420px at 8% -8%, rgba(255, 45, 149, 0.16), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(184, 255, 60, 0.1), transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.22) 3px
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--violet-2);
  color: white;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--acid);
  color: #050308;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 0 18px rgba(184, 255, 60, 0.55);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.topnav {
  display: flex;
  gap: 0.85rem;
  margin-left: auto;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--violet);
}

.hero {
  padding: 3.2rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0.35rem 0 1rem;
}

h1 em {
  font-style: italic;
  background: none;
  color: var(--acid);
  text-shadow: 0 0 22px rgba(184, 255, 60, 0.45);
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  border: 0;
  border-radius: 4px;
  padding: 0.72rem 1.15rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--acid);
  color: #050308;
  box-shadow: 0 0 24px rgba(184, 255, 60, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--pink);
  box-shadow: 3px 3px 0 var(--pink);
}

.hero-card {
  background: #120f18;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  padding: 1.2rem;
  box-shadow: 10px 10px 0 var(--pink), 0 0 28px rgba(34, 211, 238, 0.2);
  transform: rotate(1.4deg);
}

.hero-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.kind {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #232838;
  color: var(--ink);
  cursor: pointer;
}

.kind:hover,
.kind:focus {
  border-color: var(--cyan);
}

.kind-30617,
.kind-30618 {
  background: rgba(139, 92, 246, 0.22);
  color: #ddd6fe;
}
.kind-1618,
.kind-1621,
.kind-1111 {
  background: rgba(94, 234, 212, 0.14);
  color: #99f6e4;
}
.kind-35128 {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
}
.kind-32267,
.kind-3063,
.kind-30063 {
  background: rgba(244, 114, 182, 0.16);
  color: #f9a8d4;
}
.kind-7,
.kind-10018,
.kind-1337 {
  background: rgba(74, 222, 128, 0.14);
  color: #bbf7d0;
}
.kind-10317,
.kind-10002 {
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
}
.kind-9806,
.kind-24133,
.kind-23194,
.kind-24242 {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

.kinds-board .kind {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.72rem;
}

section {
  padding: 2.4rem 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 800;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
}

.layer {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  padding: 1.2rem 1.25rem;
}

.layer h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.layer.git h3 {
  color: var(--cyan);
}
.layer.nostr h3 {
  color: var(--violet);
}
.layer.pages h3 {
  color: var(--amber);
}
.layer.blossom h3 {
  color: var(--pink);
}

.shot {
  margin: 1.3rem 0 0;
  background: #f4efe4;
  color: #111;
  border: 2px solid #111;
  border-radius: 0;
  padding: 0.55rem 0.55rem 0.2rem;
  box-shadow:
    14px 14px 0 var(--pink),
    0 0 40px rgba(184, 255, 60, 0.18);
  transform: rotate(-1.4deg);
}

.shot.tilt-l {
  transform: rotate(-2.2deg);
}
.shot.tilt-r {
  transform: rotate(2.4deg);
  box-shadow:
    14px 14px 0 var(--violet),
    0 0 40px rgba(34, 211, 238, 0.18);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  background: #0b1118;
  border-radius: 0;
  border: 0;
  filter: contrast(1.08) saturate(1.08);
}

.shot.portrait {
  max-width: 16rem;
  width: 100%;
  justify-self: center;
}

.shot.portrait img {
  max-height: 28rem;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.shot.strip img {
  background: #111;
}

.shot figcaption {
  margin: 0;
  padding: 0.5rem 0.25rem 0.65rem;
  color: #1a1a1a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.shot figcaption a {
  color: #0e7490;
}

.shot figcaption code {
  font-size: 0.85em;
}

.steps {
  display: grid;
  gap: 0.85rem;
}

.step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1.05rem;
}

.num {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(160deg, var(--violet-2), #312e81);
}

.step h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.2rem;
}

.filter {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  cursor: pointer;
  font-weight: 650;
}

.filter[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.2);
}

.recipe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.15rem;
  margin: 0 0 1.6rem;
  align-items: start;
}

.recipe.flip {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.recipe.stacked,
.recipe.stacked.flip {
  grid-template-columns: 1fr;
}

.recipe > .shot {
  margin: 0;
  height: auto;
  display: block;
}

.recipe > .shot img {
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
}

.recipe > .shot.strip img {
  object-fit: contain;
  height: auto;
  max-height: none;
}

button.kind {
  appearance: none;
  -webkit-appearance: none;
}

.recipe > .lede {
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.snippet {
  background: #0c1018;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.snippet-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: #141824;
}

.snippet-head strong {
  font-size: 0.92rem;
}

.snippet-head span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-right: auto;
}

.snippet-head .open-folder {
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.snippet pre {
  flex: 1;
}

.copy {
  margin-left: auto;
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.copy.copied {
  color: var(--good);
  border-color: rgba(74, 222, 128, 0.5);
}

pre {
  margin: 0;
  padding: 0.95rem 1rem 1.1rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e7e5e4;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
}

a.card {
  color: inherit;
  text-decoration: none;
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--cyan);
  color: inherit;
}

.card[hidden] {
  display: none;
}

.card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.card .folder {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.gotchas {
  display: grid;
  gap: 0.75rem;
}

.gotcha {
  border-left: 4px solid var(--bad);
  background: rgba(251, 113, 133, 0.08);
  border-radius: 0 14px 14px 0;
  padding: 0.85rem 1rem;
}

.gotcha.ok {
  border-left-color: var(--good);
  background: rgba(74, 222, 128, 0.08);
}

.gotcha h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.gotcha p {
  margin: 0;
  color: var(--muted);
}

.kinds-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #111827;
  color: var(--good);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .hero,
  .two,
  .three,
  .recipe,
  .recipe.flip,
  .recipe.stacked {
    grid-template-columns: 1fr;
  }
  .hero-card {
    transform: none;
  }
  .topnav {
    display: none;
  }
  .shot,
  .shot.tilt-l,
  .shot.tilt-r {
    transform: none;
  }
}

.stamp {
  display: inline-block;
  margin: 0.4rem 0 0.2rem;
  padding: 0.2rem 0.55rem;
  border: 3px solid var(--pink);
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transform: rotate(-8deg);
  box-shadow: 0 0 18px rgba(255, 45, 149, 0.35);
  animation: stamp-flicker 3.2s steps(2, end) infinite;
}

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  background: #04060c;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  padding: 0.45rem 0;
  animation: marquee 32s linear infinite;
}

.glitch {
  position: relative;
}

.xerox {
  filter: contrast(1.08) saturate(1.2);
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(184, 255, 60, 0.35);
  }
  50% {
    box-shadow: 0 0 26px rgba(184, 255, 60, 0.8);
  }
}
@keyframes stamp-flicker {
  0%,
  92%,
  100% {
    opacity: 1;
  }
  94% {
    opacity: 0.35;
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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