@charset "utf-8";

:root {
  --navy: #24344d;
  --cream: #f7efe4;
  --warm-cream: #fff8ee;
  --terracotta: #c8754f;
  --gold: #e8c56a;
  --soft-blue: #dce9f2;
  --ink: #24344d;
  --shadow: 0 18px 45px rgba(36, 52, 77, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  background: #ffffff;
  color: var(--ink);
  text-align: center;
}

.readalong-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 36px;
}

.hero-card {
  background: rgba(255, 248, 238, 0.9);
  border: 1px solid rgba(36, 52, 77, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px 16px 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--terracotta);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--navy);
}

.intro,
.tip {
  max-width: 680px;
  margin: 0 auto 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2px auto 18px;
  padding: 9px 14px;
  background: #ffffff;
  border: 1px solid rgba(36, 52, 77, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(36, 52, 77, 0.08);
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.book-frame {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  padding: 14px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(36, 52, 77, 0.18);
  border: 1px solid rgba(36, 52, 77, 0.08);
}

.book-frame img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

button {
  appearance: none;
  background: var(--navy);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(36, 52, 77, 0.18);
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

button.primary {
  background: var(--terracotta);
  min-width: 110px;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: 0.92;
  box-shadow: 0 10px 20px rgba(36, 52, 77, 0.22);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

#pageLabel {
  margin: 14px 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.tip {
  margin-bottom: 0;
  color: rgba(36, 52, 77, 0.78);
  font-size: 0.94rem;
}

@media (max-width: 640px) {
  .readalong-wrapper {
    padding: 14px 10px 24px;
  }

  .hero-card {
    padding: 20px 10px 22px;
    border-radius: 22px;
  }

  .book-frame {
    padding: 9px;
    border-radius: 18px;
  }

  .book-frame img {
    max-height: 64vh;
    border-radius: 12px;
  }

  button {
    padding: 11px 16px;
  }
}
