:root {
  --cream: #fff9ef;
  --paper: #fff4df;
  --apricot: #f7c998;
  --poppy: #e85f50;
  --plum: #2a1833;
  --purple: #8574bd;
  --mint: #a7d9d4;
  --ink: #211526;
  --shadow: 0 1rem 2.5rem rgba(42, 24, 51, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { line-height: 1.08; }

h1, h2 { font-family: "Fraunces", Georgia, serif; }

h1 { font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -0.04em; }

h2 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -0.05em; }

h3 { font-size: 1.7rem; letter-spacing: -0.04em; }

.shell { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--cream);
  background: var(--plum);
}

.skip-link:focus { top: 1rem; }

.site-header { background: var(--cream); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; }

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--plum);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
}

.nav-links { display: flex; gap: 1rem; }

.nav-links a, .site-footer a { font-size: 0.92rem; font-weight: 700; text-decoration-thickness: 0.11em; text-underline-offset: 0.22em; }

.hero { overflow: hidden; background: linear-gradient(135deg, #f8cf9c 0%, #f5b783 100%); }

.hero-grid { display: grid; min-height: 44rem; align-items: center; gap: 3rem; padding: 4.5rem 0; }

.eyebrow { margin-bottom: 0.9rem; color: var(--plum); font-size: 0.77rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.hero h1 { max-width: 10ch; margin-bottom: 1.4rem; font-family: "DM Sans", Arial, sans-serif; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }

.hero-lede { max-width: 35rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
  padding: 0.9rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary { color: var(--cream); background: var(--plum); }

.hero-note { margin-top: 1.5rem; font-size: 0.85rem; }

.hero-art { position: relative; min-height: 24rem; }

.hero-sun {
  position: absolute;
  top: 5%;
  right: 6%;
  width: min(26rem, 80vw);
  aspect-ratio: 1;
  border: 0.8rem solid var(--plum);
  border-radius: 50%;
  background: var(--cream);
}

.hero-card {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 8%;
  max-width: 15rem;
  padding: 1.2rem;
  transform: rotate(4deg);
  border: 3px solid var(--plum);
  border-radius: 0.45rem;
  background: var(--mint);
  box-shadow: 0.65rem 0.65rem 0 var(--plum);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.14;
}

.flower { position: absolute; z-index: 1; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--poppy); }

.flower::before, .flower::after, .flower span::before, .flower span::after {
  position: absolute;
  width: 2.7rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--poppy);
  content: "";
}

.flower::before { top: -2.25rem; left: 1.4rem; }
.flower::after { right: -1.7rem; top: 0.3rem; transform: rotate(90deg); }
.flower span::before { bottom: -2.2rem; left: 1.4rem; }
.flower span::after { top: 0.3rem; left: -1.7rem; transform: rotate(90deg); }

.flower-one { bottom: 2rem; left: 3%; transform: scale(0.82); }
.flower-two { top: 4rem; left: 15%; transform: scale(0.54); }
.flower-three { top: 42%; right: 0; transform: scale(0.4); }

.books-section, .about-section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.books-section { background: var(--paper); }

.section-heading { display: grid; gap: 1rem; margin-bottom: 3rem; }

.section-heading h2 { max-width: 13ch; margin-bottom: 0; }

.section-heading > p { max-width: 24rem; margin-bottom: 0; }

.book-grid { display: grid; gap: 3rem; }

.book-card { display: grid; gap: 1.5rem; align-items: center; }

.cover-link { display: block; width: min(100%, 20rem); aspect-ratio: 2588 / 3375; margin: 0 auto; border-radius: 0.7rem; box-shadow: var(--shadow); overflow: hidden; }

.cover-link img { width: 100%; height: auto; aspect-ratio: 2588 / 3375; transition: transform 220ms ease; }
.cover-link:hover img { transform: scale(1.025); }

.book-details { text-align: center; }
.book-number { margin-bottom: 0.35rem; color: var(--poppy); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.book-details h3 { margin-bottom: 0.45rem; }
.book-details > p:not(.book-number) { max-width: 23rem; margin: 0 auto 1rem; }

.text-link { color: var(--plum); font-weight: 700; text-decoration-thickness: 0.11em; text-underline-offset: 0.25em; }

.about-section { background: var(--cream); }

.about-grid { display: grid; gap: 3.5rem; align-items: center; }

.about-copy { max-width: 42rem; }
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p { margin-bottom: 1rem; }


.about-visual {
  position: relative;
  display: grid;
  min-height: 21rem;
  place-items: end center;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--mint);
}

.about-visual p { position: relative; z-index: 2; max-width: 11ch; margin: 0 0 2rem; color: var(--plum); font-family: "Fraunces", Georgia, serif; font-size: 2rem; line-height: 1; text-align: center; }

.pencil { position: absolute; bottom: -3rem; width: 3.5rem; height: 25rem; border: 3px solid var(--plum); border-radius: 2rem 2rem 0.4rem 0.4rem; background: var(--poppy); transform-origin: bottom; }
.pencil::before { position: absolute; top: -2.2rem; left: -0.15rem; border-right: 1.65rem solid transparent; border-bottom: 2.3rem solid var(--cream); border-left: 1.65rem solid transparent; content: ""; }
.pencil::after { position: absolute; top: -2.55rem; left: 1.3rem; border-right: 0.35rem solid transparent; border-bottom: 0.5rem solid var(--plum); border-left: 0.35rem solid transparent; content: ""; }
.pencil-one { left: 14%; background: var(--purple); transform: rotate(-18deg); }
.pencil-two { left: 45%; background: var(--poppy); transform: rotate(7deg); }
.pencil-three { right: 14%; background: var(--apricot); transform: rotate(20deg); }

.closing { padding: clamp(4.5rem, 9vw, 7rem) 0; color: var(--cream); background: var(--plum); text-align: center; }
.closing .eyebrow { color: var(--mint); }
.closing h2 { max-width: 18ch; margin: 0 auto 1.5rem; }
.share-cta { max-width: 34rem; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.share-cta a { color: var(--mint); font-weight: 700; text-decoration-thickness: 0.11em; text-underline-offset: 0.25em; }
.button-light { color: var(--plum); background: var(--cream); }

.site-footer { padding: 1.5rem 0; color: var(--cream); background: #17101c; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }

.author-page { background: var(--paper); }
.author-hero { padding: clamp(4.5rem, 9vw, 8rem) 0; background: linear-gradient(135deg, #f8cf9c 0%, #f5b783 100%); }
.author-hero-inner { display: grid; gap: 2rem; align-items: center; }
.author-hero h1 { max-width: 9ch; margin-bottom: 0; font-family: "DM Sans", Arial, sans-serif; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.author-tagline { max-width: 30rem; margin-bottom: 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.5rem, 3.5vw, 2.5rem); line-height: 1.1; }
.author-portrait { display: block; width: min(100%, 21rem); height: auto; aspect-ratio: 3 / 4; margin: 0 auto; border: 0.5rem solid var(--cream); border-radius: 1.25rem; box-shadow: 0.7rem 0.7rem 0 var(--plum); }
.author-bio { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.author-bio-inner { max-width: 46rem; }
.author-bio h2 { margin-bottom: 1.5rem; }
.author-bio p { font-size: 1.12rem; }
.author-bio p:last-of-type { margin-bottom: 2rem; }

@media (min-width: 700px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .section-heading { grid-template-columns: 1fr auto; align-items: end; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .book-card { grid-template-rows: auto 1fr; }
  .about-grid { grid-template-columns: minmax(18rem, 0.8fr) 1.2fr; }
  .author-hero-inner { grid-template-columns: 1.2fr 0.8fr; }
}

@media (max-width: 380px) {
  .brand { font-size: 0.85rem; }
  .nav-links { gap: 0.65rem; font-size: 0.88rem; }
  .shell { width: min(100% - 1.5rem, 1120px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
