/* Chloe's Pet — palette sampled from the book cover */
:root {
  --gold:        #f4cb70;   /* speckled background */
  --gold-light:  #f9ecac;
  --gold-deep:   #e0b355;
  --cream:       #fcf9f5;   /* the bunny */
  --slate:       #92a9c4;   /* title badge */
  --slate-light: #afb6c5;
  --slate-deep:  #7d94b0;
  --navy:        #51527b;   /* "Chloe's" */
  --magenta:     #984b81;   /* "PET" */
  --pink:        #a17585;   /* badge outline */
  --plum:        #734770;   /* byline text */
  --shirt:       #aa5d95;
  --ink:         #3a2f44;
  --ink-soft:    #5c4f66;

  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --hand:    "Patrick Hand", "Comic Sans MS", cursive;
  --body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(58, 47, 68, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--gold) url("img/speckle-gold.jpg") repeat;
  background-size: 336px 336px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--navy); }
h3 { font-size: 1.5rem; color: var(--navy); }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem;
  background: rgba(252, 249, 245, .85);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--pink);
}
.brand { text-decoration: none; font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.brand-chloes { color: var(--navy); }
.brand-pet { color: var(--magenta); }
.top nav { display: flex; align-items: center; gap: 1.1rem; }
.top nav a:not(.btn) { text-decoration: none; font-weight: 800; color: var(--ink-soft); }
.top nav a:not(.btn):hover { color: var(--magenta); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.35rem;
  background: var(--magenta); color: #fff !important;
  font-weight: 800; text-decoration: none; line-height: 1.1;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--plum), 0 12px 24px -10px rgba(115, 71, 112, .6);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: var(--shirt); transform: translateY(2px); box-shadow: 0 4px 0 var(--plum), 0 8px 18px -10px rgba(115, 71, 112, .6); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--plum); }
.btn-small { padding: .5rem 1rem; font-size: .95rem; box-shadow: 0 4px 0 var(--plum); }
.btn-big { font-size: 1.25rem; padding: .95rem 1.8rem; }
.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; }
.link-arrow::after { content: "\00a0→"; }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 6vw, 5rem) 1rem clamp(3rem, 7vw, 6rem); }
.hero-inner {
  width: min(1080px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.cover-wrap { justify-self: center; }
.cover {
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow: 0 30px 60px -20px rgba(58, 47, 68, .55), 0 0 0 6px var(--cream);
  transition: transform .3s ease;
}
.cover:hover { transform: rotate(-1deg) scale(1.02); }

/* the angular blue badge from the cover, with its pink outline */
.badge-outer {
  --cut: polygon(6% 0%, 100% 6%, 96% 88%, 30% 100%, 0% 78%);
  clip-path: var(--cut);
  background: var(--pink);
  padding: 8px;
  display: inline-block;
  filter: drop-shadow(0 12px 18px rgba(58, 47, 68, .25));
}
.badge {
  clip-path: polygon(6% 0%, 100% 6%, 96% 88%, 30% 100%, 0% 78%);
  background: var(--slate) url("img/speckle-blue.jpg") repeat;
  background-size: 300px 70px;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(2.2rem, 6vw, 3.6rem) clamp(1.8rem, 4vw, 2.8rem);
}
.title { margin: 0; display: grid; }
.title-chloes { font-size: clamp(3.4rem, 9vw, 6.4rem); color: var(--navy); line-height: .95; }
.title-pet { font-size: clamp(3rem, 8vw, 5.6rem); color: var(--magenta); line-height: .95; justify-self: end; letter-spacing: .03em; }

.byline { font-family: var(--hand); font-size: 1.35rem; line-height: 1.35; margin: 1.4rem 0 1rem; color: var(--plum); }
.byline .by { color: var(--ink-soft); font-size: 1.05rem; }
.byline .name { font-size: 1.6rem; }
.lede { font-size: 1.2rem; max-width: 34ch; color: var(--ink-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-items: center; margin-top: 1.4rem; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .cover-wrap { width: min(70vw, 340px); }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-inline: auto; }
  .cta { justify-content: center; }
}

/* ---------- bands ---------- */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band-blue {
  background: var(--slate) url("img/speckle-blue.jpg") repeat;
  background-size: 450px 105px;
  border-top: 8px solid var(--pink);
  border-bottom: 8px solid var(--pink);
}
.band-blue h2 { color: var(--cream); text-shadow: 0 2px 0 rgba(81, 82, 123, .5); }
.band-blue p { color: #232741; }
.band-gold { }
.band-cream { background: var(--cream); border-top: 8px solid var(--slate); }

.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .two-col-rev > :first-child { order: 2; } }

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}
.card-pink { background: var(--magenta); color: var(--cream); transform: rotate(-1.5deg); }
.card-pink blockquote { margin: 0; font-family: var(--hand); font-size: 1.55rem; line-height: 1.35; }
.card-pink blockquote p { margin-bottom: .6em; }
.card-pink cite { font-style: normal; font-family: var(--body); font-size: 1rem; opacity: .9; }

.details { margin: 0; display: grid; gap: .55rem .8rem; }
.details > div { display: grid; grid-template-columns: 9.5em 1fr; gap: .5rem; border-bottom: 2px dotted var(--slate-light); padding-bottom: .5rem; }
.details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.details dt { font-weight: 800; color: var(--navy); }
.details dd { margin: 0; }

.press { max-width: 760px; }
.kicker { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--magenta); margin-bottom: .4rem; }
.press h3 a { text-decoration: none; color: var(--navy); }
.press h3 a:hover { color: var(--magenta); }
.events { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.events li { padding: .5rem .9rem; margin-bottom: .5rem; background: var(--gold-light); border-left: 5px solid var(--gold-deep); border-radius: 0 10px 10px 0; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--cream); padding: 2.5rem 0; border-top: 8px solid var(--magenta); }
.foot-inner { text-align: center; }
.foot .brand-chloes { color: var(--slate-light); font-family: var(--display); font-size: 1.3rem; }
.foot .brand-pet { color: var(--gold); font-family: var(--display); font-size: 1.3rem; }
.foot .btn { background: var(--gold); color: var(--navy) !important; box-shadow: 0 5px 0 var(--gold-deep); }
.foot .btn:hover { background: var(--gold-light); }
.fine { font-size: .85rem; opacity: .75; margin-top: 1.2rem; }

/* ---------- 404 ---------- */
.page-404 { display: grid; min-height: 100vh; place-items: center; }
.center { text-align: center; }

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