:root {
  --night: #161113;
  --wing: #2a2124;
  --line: #3a2e32;
  --text: #f2ece4;
  --muted: #b3a7a0;
  --dim: #7d716c;
  --lime: #c3e126;
  --kiwi: #a6d62b;
  --lime-ink: #1b2205;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; background: var(--night); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  display: flex; flex-direction: column; overflow-x: hidden;
}
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

/* night sky: a few soft stars and a moon-ish lime haze */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 32%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 62%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 70%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 84%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 8%, #fff5 50%, transparent 51%),
    radial-gradient(900px 600px at 50% -10%, #c3e12614, transparent 70%);
}

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1100px; width: 100%; margin: 0 auto; padding: 1.1rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.4rem; }
nav a { color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--text); text-decoration: none; }
.pill {
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--lime);
  border: 1px solid #c3e12666; border-radius: 999px; padding: .25rem .7rem;
}

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.hero { text-align: center; padding: 2.5rem 0 4rem; }
.logo-wrap { position: relative; width: 280px; height: 321px; margin: 0 auto 1.5rem; }
.glow {
  position: absolute; inset: 10% 5% 20%; border-radius: 50%;
  background: radial-gradient(circle, #c3e12655, transparent 65%);
  filter: blur(30px); animation: pulse 5s ease-in-out infinite;
}
.logo { position: relative; width: 100%; height: auto; animation: hang 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes hang { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

.eyebrow { margin: 0 0 .5rem; color: var(--lime); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.lime { color: var(--lime); }
.lede { max-width: 620px; margin: 1.3rem auto 2rem; color: var(--muted); font-size: 1.12rem; }

.status {
  display: inline-flex; align-items: center; gap: .7rem; text-align: left;
  background: var(--wing); border: 1px solid var(--line); border-radius: 14px;
  padding: .8rem 1.2rem; color: var(--text); font-size: .98rem;
}
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 #c3e12688; animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px #c3e12600; } 100% { box-shadow: 0 0 0 0 #c3e12600; } }
.status.in { border-color: #c3e12666; }

html:not(.in-fruitbat) [data-fb-only], .in-fruitbat [data-not-fb] { display: none !important; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem;
  padding-bottom: 4rem;
}
.grid article {
  background: linear-gradient(180deg, #2a2124, #1f181a); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem;
  transition: border-color .2s, transform .2s;
}
.grid article:hover { border-color: #c3e12655; transform: translateY(-2px); }
.grid h3 { margin: .7rem 0 .35rem; font-size: 1.08rem; }
.grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #c3e1261a; font-size: 1.25rem; color: var(--lime); }
.ico.mono { font: 700 .95rem ui-monospace, Menlo, Consolas, monospace; }

footer { text-align: center; color: var(--dim); font-size: .85rem; padding: 1.5rem; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  nav a { display: none; }
  .logo-wrap { width: 200px; height: 229px; }
  .hero { padding-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logo, .glow, .dot { animation: none; }
}
.grid article > img { display: block; }

/* search.fruitbat.app */
.brand em { font-style: normal; color: var(--lime); font-weight: 600; }
.logo.small { width: 140px; height: auto; display: block; margin: 0 auto 1.2rem; animation: hang 6s ease-in-out infinite; transform-origin: 50% 0; }
.searchbox {
  display: flex; align-items: center; gap: .6rem; max-width: 640px; margin: 0 auto;
  background: #1f181a; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .45rem .4rem 1.1rem;
  box-shadow: 0 10px 40px #0006; transition: border-color .2s, box-shadow .2s;
}
.searchbox:focus-within { border-color: #c3e12699; box-shadow: 0 0 0 4px #c3e1261f, 0 10px 40px #0006; }
.searchbox svg { color: var(--dim); flex: none; }
.searchbox input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text);
  font: inherit; font-size: 1.08rem; padding: .55rem 0;
}
.searchbox input::placeholder { color: var(--dim); }
.searchbox input::-webkit-search-cancel-button { filter: invert(.6); }
.searchbox button {
  flex: none; border: 0; border-radius: 999px; background: var(--lime); color: var(--lime-ink);
  font: 700 .95rem system-ui, sans-serif; padding: .7rem 1.3rem; cursor: pointer;
}
.searchbox button:hover { filter: brightness(1.08); }
.note { margin: .9rem 0 2rem; color: var(--dim); font-size: .9rem; }
.note strong { color: var(--muted); font-weight: 600; }
.search-page .hero { padding-bottom: 3.5rem; }
@media (prefers-reduced-motion: reduce) { .logo.small { animation: none; } }
