:root {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --surface: #1a1a1a;
  --text: #f2f0ec;
  --text-muted: #a3a3a3;
  --text-faint: #757575;
  --border: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Side nav (desktop) */

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 0 32px;
  border-right: 1px solid var(--border);
  z-index: 10;
}

.nav-link {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-muted);
}

.nav-link.active {
  color: var(--text);
  font-weight: bold;
}

main {
  margin-left: 200px;
}

/* Showcase sections */

.showcase-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  scroll-margin-top: 56px;
  background: var(--bg);
}

.showcase-section.alt {
  background: var(--bg-alt);
}

.showcase-content {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

#play .showcase-content {
  max-width: min(94%, 1400px);
}

#novel .showcase-content {
  max-width: min(94%, 1400px);
}

#novel .showcase-content p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.showcase-content h2 {
  font-size: 2rem;
  margin-bottom: 28px;
}

.showcase-media {
  aspect-ratio: 16 / 9;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.showcase-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.streak {
  position: absolute;
  pointer-events: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), rgba(159, 212, 236, 0.35), transparent);
  filter: blur(1.5px);
  mix-blend-mode: screen;
}

.streak.s1 { width: 70%; top: 18%; left: -10%; transform: rotate(-16deg); opacity: 0.5; }
.streak.s2 { width: 55%; top: 62%; left: 40%; transform: rotate(-16deg); opacity: 0.32; height: 1.5px; }
.streak.s3 { width: 40%; top: 40%; left: -5%; transform: rotate(-16deg); opacity: 0.22; height: 1px; }

.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 90% at 50% 55%, transparent 55%, rgba(4, 8, 14, 0.65) 100%);
}

.fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  padding: 20px;
}

.showcase-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.learn-more {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.learn-more:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.link-list {
  list-style: none;
  margin: 0 auto 24px;
}

.link-list li {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.link-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.link-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
}

.link-list a:hover {
  color: var(--text-muted);
}

.link-list .source {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.author-photo {
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin: 0 auto 28px;
}

.about-section p {
  margin-bottom: 0;
  text-align: left;
}

/* Footer */

.site-footer {
  margin-left: 200px;
  padding: 8px 40px 32px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.site-footer p {
  font-size: 1.1rem;
}

.site-footer a {
  color: var(--text-muted);
}

.human-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 40px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 32px;
}

.human-badge-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.human-badge-subtext {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-faint);
  line-height: 1.5;
}

/* Mobile: side nav becomes a top bar */

@media (max-width: 768px) {
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 16px 12px;
    background: var(--bg);
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    gap: 16px;
  }

  .nav-link {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  main {
    margin-left: 0;
    padding-top: 56px;
  }

  .site-footer {
    margin-left: 0;
  }

  .showcase-content h2 {
    font-size: 1.6rem;
  }

  #play,
  #novel {
    min-height: 0;
    padding: 40px 12px 96px;
  }

  #play .showcase-content,
  #novel .showcase-content {
    max-width: 100%;
  }

  #novel .showcase-content p {
    padding: 0 20px;
  }
}
