/* Nekobit site. Same palette as the App Store art (Tools/make_store_images.py):
   pink sunburst, ink outlines, die-cut stickers, pixel lettering. */

:root {
  --ink: #34265c;
  --pink: #ec78a0;
  --pink-light: #fbd6e4;
  --ray-a: #fbd6e4;
  --ray-b: #ffeef5;
  --red: #e84868;
  --gold: #face3c;
  --sky: #60b0ec;
  --mint: #6ec88c;
  --lavender: #a898f0;
  --card: #ffffff;
  --text: #34265c;
  --muted: #6b5d8f;
  --bg: #ffeef5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ray-a: #603870;
    --ray-b: #3e2854;
    --card: #1e1932;
    --text: #f4eefe;
    --muted: #c9bde8;
    --bg: #3e2854;
    --pink-light: #4a3366;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-conic-gradient(from 0deg at 50% 0, var(--ray-a) 0deg 9deg, var(--ray-b) 9deg 18deg);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--red); font-weight: 700; }

.pixel {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 3px solid var(--ink); }
.nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--text); text-decoration: none; font-family: "Silkscreen", monospace; font-weight: 400; font-size: 15px; }
.nav ul a:hover { color: var(--red); }

/* Die-cut card: white border, ink edge, soft drop shadow */
.card {
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 0 0 8px #fff, 0 0 0 11px var(--ink), 10px 18px 30px rgba(40, 20, 70, 0.3);
  padding: 28px;
  margin: 40px 11px;
}
@media (prefers-color-scheme: dark) {
  .card { border-color: #fff; box-shadow: 0 0 0 8px var(--ink), 0 0 0 11px #fff, 10px 18px 30px rgba(0, 0, 0, 0.45); }
}

/* Hero */
.hero { text-align: center; padding: 8px 0 12px; }
.hero picture img { width: 100%; height: auto; display: block; border-radius: 18px; }
.hero .card { padding: 0; overflow: hidden; }
.tagline { font-size: clamp(26px, 5vw, 40px); margin: 32px 0 8px; color: var(--text); }
.lede { max-width: 620px; margin: 0 auto 24px; color: var(--muted); font-size: 20px; }

.button {
  display: inline-block;
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.button:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
.button.soon { background: var(--lavender); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 24px; }
.feature h3 { font-size: 20px; margin: 0 0 6px; color: var(--red); }
.feature p { margin: 0 0 18px; }

/* Screenshot strip */
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 4px 24px;
  margin: 0 -16px;
  padding-left: 16px;
}
.shots img {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
  border-radius: 18px;
  border: 4px solid var(--ink);
  box-shadow: 8px 12px 0 rgba(52, 38, 92, 0.25);
  scroll-snap-align: center;
}
.shots img:nth-child(odd) { transform: rotate(-2deg); }
.shots img:nth-child(even) { transform: rotate(2deg); }

h1, h2 { color: var(--text); }
h2 { font-size: 26px; margin: 0 0 16px; }
.doc h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 4px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; color: var(--red); }
.doc .updated { color: var(--muted); font-style: italic; margin-top: 0; }
.doc details { border-top: 2px dashed var(--pink); padding: 12px 0; }
.doc details:last-of-type { border-bottom: 2px dashed var(--pink); }
.doc summary { cursor: pointer; font-weight: 800; }
.doc summary::marker { color: var(--red); }

footer {
  text-align: center;
  padding: 24px 16px 48px;
  color: var(--muted);
  font-size: 15px;
}
footer a { color: var(--muted); }
footer .sticker { width: 72px; height: auto; display: block; margin: 0 auto 8px; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { flex-direction: column; gap: 8px; }
  .card { padding: 20px; }
  .shots img { width: 180px; }
}
