/* Crypkids — shared styles
   Sizes are in rem against a 14px root, matching the original WordPress theme. */

:root {
  --plum: #50044d;
  --pink: #ff4471;
  --navy: #17143c;
  --white: #fff;
  --display: "degular-display", "Poppins", sans-serif;
  --body: "Poppins", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--plum);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }

.container {
  width: 88%;
  max-width: 1200px;
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.65em 1.6em 0.7em;
  border: 3px solid var(--pink);
  border-radius: 100em;
  background: transparent;
  color: var(--pink);
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.btn:hover,
.btn:focus-visible { background: var(--pink); color: var(--white); }

.btn--light { border: 2px solid var(--white); color: var(--white); }
.btn--light:hover,
.btn--light:focus-visible { background: var(--white); color: #f75294; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 120vh;
  padding: 12% 0 65px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero__bg--blue {
  /* taller than the section so it can drift for the parallax effect */
  top: -25%;
  bottom: -25%;
  background-image: url("../img/blue-squiggles.png");
  background-position: right center;
  background-size: 10% auto;
  will-change: transform;
}
.hero__bg--red {
  background-image: url("../img/red-squiggle-small.png");
  background-position: left top;
  background-size: 15% auto;
}
.hero__logo { width: 510px; max-width: 100%; margin-left: 3%; }
.hero__body { padding-left: 4%; }
.hero__headline {
  margin-top: 7%;
  padding: 0.67em 0;
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--plum);
}
.hero__headline span { color: var(--pink); }
.hero__cta { margin-top: 8%; }

/* ---------- Coloured bands ---------- */

.band { padding: 85px 0; color: var(--white); }
.band--plum { padding: 100px 0; background: var(--plum); }
.band--pink { background: var(--pink); }
.band--navy { padding-bottom: 30px; background: var(--navy); }

.band__title {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.03em;
}
.band__title--lg { font-size: 3.5rem; line-height: 1; letter-spacing: 0.02em; }

.prose { font-size: 1.25rem; }
.prose p + p { margin-top: 1.4em; }
.prose--lg { margin-top: 3%; font-size: 1.5rem; }
.prose--lg p + p { margin-top: 1em; }

/* ---------- Book intro ---------- */

.intro { margin-top: 10%; padding-bottom: 10px; text-align: center; }
.intro--top { margin-top: 0; padding: 12% 0 65px; }

.eyebrow {
  padding: 1em 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  color: var(--pink);
}
.title {
  margin-top: 0.75rem;
  padding: 1em 0;
  font-size: 4.93rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--plum);
}
.title--left { padding: 0.6em 0 0.3em; font-size: 4rem; text-align: left; }
.intro__cta { margin-top: 2em; }

/* ---------- Book images ---------- */

.showcase { padding-top: 65px; margin-bottom: 10%; }
.showcase--book { padding: 0 0 85px; margin-bottom: 0; }
.showcase__cover { width: 100%; margin-top: 20px; }
.showcase__pair,
.showcase__trio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.showcase__trio { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 1rem; }
.showcase__pair img,
.showcase__trio img { width: 100%; }
.showcase__cta { margin-top: 8%; text-align: center; }

.blurb { padding-top: 4%; }
.blurb .prose { margin-top: 1em; color: var(--plum); }

/* ---------- Buy ---------- */

.buy { text-align: center; }
.buy__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.buy__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  margin: 5.5em 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- Creators ---------- */

.creators__grid {
  display: grid;
  grid-template-columns: 44.97fr 55.03fr;
  gap: 35px;
}
.creators__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.creators__text .prose { margin: 2.4em 0 1em; }
.creators__sig { width: 157px; margin-bottom: 30px; }
.creators__photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.creators__photos img { width: 500px; }

/* ---------- Book page header ---------- */

.masthead {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 9rem;
  padding: 0 20px;
}
.masthead a { display: block; width: 255px; max-width: 50%; }
.masthead img { width: 100%; }

/* ---------- Footer ---------- */

.footer-bar { height: 130px; background: var(--plum); }

/* ---------- Responsive ---------- */

@media (max-width: 978px) {
  .hero__headline { font-size: 3rem; }
  .title { font-size: 2.96rem; }
  .title--left { font-size: 2.4rem; }
  .eyebrow { font-size: 1.2rem; }
  .creators__grid { grid-template-columns: 1fr; }
  .creators__photos { align-items: flex-start; }
}

@media (max-width: 767px) {
  .eyebrow { font-size: 1rem; }
  .blurb { padding-top: 2.2em; }
}

@media (max-width: 479px) {
  .hero { min-height: 100vh; padding-top: 22%; }
  .hero__body { padding-left: 0; }
  .hero__logo { margin-left: 0; }
  .eyebrow { font-size: 1.5rem; }
  .title,
  .title--left { font-size: 1.9rem; }
  .showcase__pair { grid-template-columns: 1fr; }
  .band--plum { padding: 70px 0; }
  .prose--lg { font-size: 1.25rem; }
  .btn { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
