:root {
  --cream: #f4efe9;
  --cream-deep: #efe8e0;
  --card: #fcfaf7;
  --ink: #1c1917;
  --mute: #6f6a64;
  --rose: #c4a394;
  --rose-deep: #b89586;
  --line: rgba(28, 25, 23, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, sans-serif;
}

.logo-word {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.38em;
  line-height: 0.85;
  padding-left: 0.38em;
}

.logo-sub {
  display: block;
  margin-top: 0.38rem;
  font-family: Manrope, sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.46em;
  line-height: 1;
  padding-left: 0.46em;
  text-align: center;
}

.hero-copy {
  padding-left: max(1.5rem, calc((100vw - 72rem) / 2 + 1.5rem));
  padding-right: 2.5rem;
}

.hero-photo {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}

.book {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 3 / 4.05;
  margin-inline: auto;
  padding: 1.65rem 1.35rem 1.35rem;
  background:
    linear-gradient(90deg, rgba(80, 60, 40, 0.05), transparent 14%),
    #f7f1ea;
  border-radius: 3px 14px 14px 3px;
  box-shadow:
    0 30px 50px rgba(70, 50, 30, 0.16),
    18px 22px 40px rgba(70, 50, 30, 0.08);
  transform: rotate(-7deg);
}

.book::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #e4d9cf, #f7f1ea);
}

.book-eye {
  height: 42%;
  overflow: hidden;
  border-radius: 2px;
}

.book-eye img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: sepia(0.18) contrast(0.95);
}

.dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d5cfc8;
}

.dot.is-on::before {
  background: var(--ink);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.accordion.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel > div {
  overflow: hidden;
}

.accordion-icon {
  transition: transform 0.28s ease;
}

.accordion.is-open .accordion-icon {
  transform: rotate(180deg);
}

@media (max-width: 1023px) {
  .hero-copy {
    padding-right: 1.5rem;
  }

  .hero-photo {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .book {
    transform: none;
  }
}
