:root {
  --cyan: #00ffff;
  --green: #29ab87;
  --magenta: #ff00ff;
  --indigo: #4b0082;
  --orange: #ff4500;
  --purple: #bf00ff;
  --bg: #05030a;
  --surface: #0d0a18;
  --border: #241a3d;
  --text: #e8e4f5;
  --text-muted: #9a91b8;
  --max-width: 1280px;
  --radius: 8px;
  --gap-section: clamp(4rem, 8vw, 8rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Rajdhani, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .eyebrow {
  font-family: Orbitron, Rajdhani, sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: var(--cyan);
}

.grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(191, 0, 255, 0.28), transparent 70%),
    radial-gradient(45% 40% at 85% 60%, rgba(0, 255, 255, 0.16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 255, 255, 0.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 0, 255, 0.05) 0 1px, transparent 1px 72px);
}

.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

/* Hero: asymmetric, cover on the left, copy on the right */
.hero {
  padding: clamp(4rem, 9vw, 7rem) 1.5rem clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-cover svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  filter: drop-shadow(0 0 24px rgba(191, 0, 255, 0.45));
}

.hero-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 28px rgba(191, 0, 255, 0.4);
}

.eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 1rem 0;
  background: linear-gradient(100deg, var(--cyan), var(--purple) 55%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-quote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--magenta);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  max-width: 55ch;
}

.hero-blurb {
  font-size: 1.15rem;
  max-width: 60ch;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem var(--gap-section);
}

section {
  margin-top: var(--gap-section);
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

h2::after {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.about-copy {
  max-width: 72ch;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 0 24px rgba(191, 0, 255, 0.25);
}

.about-grid p:first-child {
  margin-top: 0;
}

/* Books: asymmetric grid, first card spans wider on desktop */
.book-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.book-card {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.card-cover {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.15);
}

.book-card:first-child {
  grid-column: span 4;
}

.book-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.18);
}

.book-card h3 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.25rem;
}

.card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0;
}

/* Buttons */
.button-primary,
.button-ghost {
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 24px;
  border-radius: 0.5rem;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease-out, background-color 200ms ease-out, box-shadow 200ms ease-out;
}

.button-primary {
  background: var(--cyan);
  color: var(--indigo);
  border: none;
}

.button-primary:hover {
  background: #00d6d6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.button-primary:active {
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--cyan);
}

.button-ghost:hover {
  background: rgba(0, 255, 255, 0.08);
}

.button-ghost.is-disabled {
  color: var(--text-muted);
  cursor: default;
  opacity: 0.7;
}

.button-link {
  display: inline-block;
  margin: 1rem 0 0 1rem;
  font-weight: 600;
  color: var(--cyan);
}

.button-ghost.is-disabled:hover {
  background: transparent;
}


footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Entry animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 540ms ease-out, transform 540ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .book-card:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-cover {
    max-width: 220px;
  }

  .hero-blurb {
    margin-inline: auto;
  }

  .hero-quote {
    border-left: none;
    padding-left: 0;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  h2::after {
    margin-inline: auto;
  }

  .book-card,
  .book-card:first-child {
    grid-column: span 6;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-photo {
    max-width: 220px;
  }

  .about-copy {
    margin-inline: auto;
  }
}
