@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen:wght@400;700&display=swap');

html[data-theme='nes'] {
  --bg: #0f1331;
  --card: #1a2358;
  --text: #f7f7ff;
  --muted: #d7ddff;
  --accent: #36f1ff;
  --accent-2: #ffef5a;
  --accent-3: #36f1ff;
  --border: #f8f8f8;
  --shadow: none;
  --font-body: 'Silkscreen', 'Trebuchet MS', 'Verdana', sans-serif;
  --body-bg: linear-gradient(180deg, #1c2d85, #090d24 60%);
  --aurora-bg: none;
  --grid-image: linear-gradient(rgba(248, 248, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 248, 248, 0.08) 1px, transparent 1px);
  --grid-opacity: 0.35;
  --header-bg: rgba(15, 19, 49, 0.93);
}

html[data-theme='nes'] body {
  font-size: 0.88rem;
}

html[data-theme='nes'] .brand,
html[data-theme='nes'] .theme-toggle,
html[data-theme='nes'] nav a,
html[data-theme='nes'] .menu-button {
  font-family: 'Silkscreen', 'Trebuchet MS', 'Verdana', sans-serif;
  letter-spacing: 0;
  font-size: 0.72rem;
  font-weight: 400;
  font-synthesis: none;
}

html[data-theme='nes'] .brand-tagline {
  font-size: 0.432rem;
}

html[data-theme='nes'] .brand > span,
html[data-theme='nes'] nav a[aria-current='page'] {
  font-weight: 400;
}

html[data-theme='nes'] h1,
html[data-theme='nes'] h2 {
  font-family: 'Press Start 2P', monospace;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

html[data-theme='nes'] .hero h1 {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
}

html[data-theme='nes'] .hero-copy {
  font-size: clamp(0.74rem, 0.9vw, 0.86rem);
  letter-spacing: 0;
  line-height: 1.3;
  overflow-wrap: normal;
}

html[data-theme='nes'] .hero {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(1.5rem, 3vw, 3rem);
}

html[data-theme='nes'] .hero-visual {
  width: 100%;
}

@media (max-width: 900px) {
  html[data-theme='nes'] .hero {
    grid-template-columns: 1fr;
  }
}

html[data-theme='nes'] h2 {
  font-size: clamp(0.8rem, 1.3vw, 1rem);
}

html[data-theme='nes'] .card,
html[data-theme='nes'] .compact-item-static,
html[data-theme='nes'] input,
html[data-theme='nes'] textarea,
html[data-theme='nes'] .theme-toggle {
  border-radius: 0;
}

html[data-theme='nes'] .button {
  color: #0f1331;
  background: linear-gradient(120deg, #ffef5a, #36f1ff);
  border: 1px solid #f8f8f8;
  box-shadow: none;
}

html[data-theme='nes'] .button-secondary {
  color: #f7f7ff;
  background: #1a2358;
  border-color: #f8f8f8;
}

html[data-theme='nes'] .category-stack .compact-section {
  background: rgba(20, 28, 74, 0.94);
}

html[data-theme='nes'] .category-stack .compact-item-static {
  background: #121a45;
  border-color: #f8f8f8;
}

html[data-theme='nes'] #bookGrid .compact-main p,
html[data-theme='nes'] .book-spotlight-copy {
  color: #f2f5ff;
}
