/* Pixel Paint — shared styles for content-hub pages */
:root {
  --bg: #fff9ef;
  --surface: #ffffff;
  --surface-muted: #f3e9d8;
  --text: #221c18;
  --muted: #75675a;
  --border: #e6d8c7;
  --accent: #25b99a;
  --accent-dark: #15846e;
  --gold: #f7b642;
  --pink: #ff5ea8;
  --violet: #7d5cff;
  --cyan: #33c7f0;
  --shadow: 0 24px 70px rgba(59, 43, 24, 0.15);
  --radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 94, 168, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(51, 199, 240, 0.16), transparent 26rem),
    linear-gradient(180deg, #fff9ef 0%, #fffdf8 48%, #fff9ef 100%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.page { overflow: hidden; }

.section {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(230, 216, 199, 0.76);
  background: rgba(255, 249, 239, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(34, 28, 24, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.25) 50%),
    linear-gradient(0deg, transparent 50%, rgba(255, 255, 255, 0.25) 50%),
    conic-gradient(from 45deg, var(--pink), var(--gold), var(--accent), var(--cyan), var(--violet), var(--pink));
  background-size: 50% 50%, 50% 50%, 100% 100%;
  box-shadow: 0 10px 24px rgba(37, 185, 154, 0.24);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

/* Breadcrumb */
.crumbs {
  width: min(920px, calc(100% - 32px));
  margin: 20px auto 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.crumbs a { text-decoration: none; color: var(--accent-dark); }
.crumbs a:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 26px 0 8px; }

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 0.98;
  font-weight: 900;
}

.lede {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  line-height: 1.45;
  font-weight: 700;
}

/* Prose */
.prose {
  max-width: 680px;
  margin-top: 18px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 500;
}
.prose.muted { color: var(--muted); font-weight: 600; }
.prose a {
  color: var(--accent-dark);
  text-decoration-color: rgba(37, 185, 154, 0.5);
  text-underline-offset: 3px;
  font-weight: 800;
}

.block { padding: 34px 0; }
.block h2 {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}
.block h2 + .prose { margin-top: 14px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pixel-art gallery */
.gallery {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(59, 43, 24, 0.06);
  text-align: center;
}

.tile figcaption {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}
.tile small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

/* Pixel renderer */
.px {
  display: grid;
  gap: 2px;
  background: transparent;
}
.px.framed {
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-muted);
}
.px i { aspect-ratio: 1; border-radius: 1px; }
.px.lg { width: 128px; }
.px.md { width: 84px; }
.px.sm { width: 52px; }
.px.grid-lines { gap: 1px; background: var(--border); padding: 1px; }
.px.grid-lines i { border-radius: 0; background: var(--surface); }
.px.grid-lines i.on { background: var(--accent); }

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 600;
  line-height: 1.5;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
}
.steps li strong { font-weight: 900; }

/* Tips list */
.ticks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 600; line-height: 1.5; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.65);
}

/* Related links */
.related {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  grid-template-columns: 1fr;
}
.related a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease;
}
.related a:hover, .related a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 185, 154, 0.5);
}
.related span small { display: block; color: var(--muted); font-weight: 700; font-size: 0.82rem; margin-top: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 2px 18px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 0;
  font-weight: 900;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 900; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq p { padding: 14px 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; font-weight: 600; }

/* CTA */
.cta { padding: 44px 0; }
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 32px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 185, 154, 0.16), rgba(255, 94, 168, 0.12)),
    var(--surface);
  box-shadow: 0 20px 60px rgba(59, 43, 24, 0.12);
}
.cta-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  line-height: 1.02;
  font-weight: 900;
}
.cta-panel .prose { position: relative; z-index: 1; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-badge {
  display: inline-flex;
  filter: drop-shadow(0 12px 22px rgba(34, 28, 24, 0.16));
  border-radius: 8px;
}
.store-badge svg { width: 168px; height: 56px; display: block; }
.store-badge:focus-visible {
  outline: 3px solid rgba(37, 185, 154, 0.38);
  outline-offset: 4px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fffdf8; }
.footer-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.footer-inner a { color: var(--text); text-decoration-color: rgba(37, 185, 154, 0.5); text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .hero { padding: 44px 0 12px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { padding: 44px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
