:root {
  --colour-sky: #e8f4fd;
  --colour-sun: #ffeaa7;
  --colour-coral: #fab1a0;
  --colour-purple: #6c5ce7;
  --colour-purple-light: #a29bfe;
  --colour-green: #00b894;
  --colour-text: #2d3436;
  --colour-muted: #636e72;
  --colour-white: #fffdf8;
  --font-main: "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(45, 52, 54, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-main);
  color: var(--colour-text);
  background: var(--colour-white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--colour-purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--colour-sky) 0%, var(--colour-sun) 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(45, 52, 54, 0.15);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--colour-purple);
  line-height: 1.2;
}

.logo-tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--colour-muted);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--colour-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--colour-purple);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--colour-purple);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  background: #5b4cdb;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--colour-purple);
  border: 2px solid var(--colour-purple);
}

.btn-secondary:hover {
  background: var(--colour-purple-light);
  color: #fff;
  border-color: var(--colour-purple-light);
}

.btn-small {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--colour-sky) 0%, var(--colour-white) 60%);
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--colour-sun);
  color: var(--colour-text);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--colour-purple);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--colour-coral);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--colour-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  color: var(--colour-purple);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--colour-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Characters */
.characters {
  background: linear-gradient(180deg, var(--colour-white) 0%, var(--colour-sky) 100%);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.character-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease;
}

.character-card:hover {
  transform: translateY(-4px);
}

.character-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.character-card h3 {
  font-size: 1.2rem;
  color: var(--colour-purple);
  padding: 1rem 1rem 0.25rem;
}

.character-card p {
  font-size: 0.95rem;
  color: var(--colour-muted);
  padding: 0 1rem 1.25rem;
}

/* Books */
.books {
  background: var(--colour-white);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.book-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.book-card-cover {
  aspect-ratio: 1;
  overflow: hidden;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-body h3 {
  font-size: 1.35rem;
  color: var(--colour-purple);
  margin-bottom: 0.5rem;
}

.book-card-body p {
  color: var(--colour-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.book-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Songs */
.songs {
  background: linear-gradient(180deg, var(--colour-sky) 0%, var(--colour-sun) 100%);
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.song-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.song-card h3 {
  font-size: 1.2rem;
  color: var(--colour-purple);
  margin-bottom: 0.25rem;
}

.song-card .from-book {
  font-size: 0.85rem;
  color: var(--colour-muted);
  margin-bottom: 1rem;
}

.song-card .lyrics-preview {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--colour-text);
  background: var(--colour-sky);
  padding: 1rem;
  border-radius: 8px;
  font-style: italic;
}

.song-card .lyrics-preview strong {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--colour-coral);
}

/* Bookshop */
.bookshop {
  background: linear-gradient(135deg, var(--colour-purple-light) 0%, var(--colour-sun) 100%);
  text-align: center;
}

.bookshop .section-title {
  color: var(--colour-text);
}

.bookshop-content {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.bookshop-content p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.bookshop-list {
  font-weight: 600;
  color: var(--colour-purple);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--colour-text);
  color: #b2bec3;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--colour-sun);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--colour-purple);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Privacy page */
.privacy-page {
  padding: 3rem 0 4rem;
  min-height: 60vh;
}

.privacy-page h1 {
  font-size: 2rem;
  color: var(--colour-purple);
  margin-bottom: 1.5rem;
}

.privacy-page h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--colour-text);
}

.privacy-page p {
  margin-bottom: 1rem;
  color: var(--colour-muted);
  max-width: 700px;
}

.privacy-page a {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .character-grid,
  .book-grid,
  .song-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
}
