/* The Coloring Book — by Devyn R. Thomas
   Theme pulled from the cover: a magical twilight-purple desk, warm
   fairy-lights, a gilded title, and a tin of rainbow pencils. Playful
   and storybook, in the same shape as the other book pages. */
:root {
  --twilight: #211a36;        /* deep desk twilight */
  --twilight-deep: #15102a;
  --plum: #3a2d5c;
  --cream: #f7f1e6;
  --cream-dim: rgba(247, 241, 230, 0.78);
  --gold: #e4c66a;            /* gilded title gold */
  --gold-bright: #f4dd8f;
  --berry: #c0457f;           /* the neon heart pink */
  --berry-bright: #e35d9a;
  --amazon: #ff9900;
  --amazon-deep: #e07b00;
  --shadow: 0 14px 34px rgba(10, 6, 24, 0.45);
}

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

body {
  background-color: var(--twilight);
  /* twilight wash with a warm glow up top, like the fairy-lit desk */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(228, 198, 106, 0.16), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(192, 69, 127, 0.14), transparent 40%),
    linear-gradient(180deg, var(--twilight) 0%, var(--twilight-deep) 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  min-height: 100vh;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* Hero */
.hero { text-align: center; margin-bottom: 28px; }

.hero__cover {
  display: block;
  max-width: 340px;
  width: 82%;
  height: auto;
  margin: 0 auto 24px;
  border-radius: 8px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 28px rgba(228, 198, 106, 0.35));
}

.hero__title {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 3px 18px rgba(228, 198, 106, 0.25);
  margin: 8px 0 0;
  line-height: 1.05;
}

.hero__byline {
  font-weight: 700;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  margin: 14px 0 0;
}

.hero__byline em {
  font-style: normal;
  display: block;
  color: var(--berry-bright);
  font-size: 1.15em;
  margin-top: 2px;
}

.hero__series {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold);
  margin: 14px 0 0;
}

/* CTA — paired buttons, side by side */
.cta-wrap { text-align: center; margin: 32px 0 48px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 38px;
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, var(--berry-bright) 0%, var(--berry) 100%);
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: var(--shadow), 0 0 22px rgba(227, 93, 154, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover, .cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(10, 6, 24, 0.5), 0 0 30px rgba(227, 93, 154, 0.5);
}
.cta:active { transform: translateY(0); }

.cta--amazon {
  background: linear-gradient(100deg, #ffb84d 0%, var(--amazon) 55%, var(--amazon-deep) 100%);
  color: #2a1a00;
  box-shadow: var(--shadow), 0 0 22px rgba(255, 153, 0, 0.3);
}
.cta--amazon:hover, .cta--amazon:focus {
  box-shadow: 0 18px 38px rgba(10, 6, 24, 0.5), 0 0 30px rgba(255, 153, 0, 0.5);
}

/* Sections */
.section { margin: 56px 0; }

.section__title {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--gold);
  margin: 0 0 18px;
  text-align: center;
  line-height: 1.1;
}

.section__title::after {
  content: "";
  display: block;
  width: 140px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  /* rainbow-pencil divider */
  background: linear-gradient(90deg,
    #e35d9a, #f4a23c, #f4dd8f, #6fc36b, #4aa3d6, #8e6fd0);
}

.section__body { font-size: 1.12rem; margin: 0; }

/* Book blurb — cream card so it lifts off the twilight */
.about-book .section__body {
  background: rgba(247, 241, 230, 0.95);
  color: #2c2440;
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 22px 28px;
  box-shadow: var(--shadow);
}

/* Author section — cream panel with photo inside */
.about-author { margin: 56px 0; }

.author-panel {
  background: rgba(247, 241, 230, 0.95);
  color: #2c2440;
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.author-panel .section__body { margin: 0; }

.about-author__photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: var(--shadow), 0 0 18px rgba(228, 198, 106, 0.3);
}

/* Footer */
footer {
  text-align: center;
  padding: 36px 16px;
  font-size: 0.95rem;
  color: var(--cream-dim);
  border-top: 1px dashed rgba(228, 198, 106, 0.3);
  margin-top: 48px;
}
footer a { color: var(--gold-bright); }

/* Desktop tweaks */
@media (min-width: 720px) {
  .author-panel {
    grid-template-columns: 200px 1fr;
    text-align: left;
    align-items: center;
  }
}
