/* Palette pulled from Linda's floral painting */
:root {
  --cream: #f7efe2;
  --paper: #fcf8f1;
  --ink: #2c2433;
  --ink-soft: #5b4f5f;
  --coral: #e8714a;
  --coral-deep: #c9542f;
  --raspberry: #b83a62;
  --plum: #6b2d52;
  --rose: #eba0a6;
  --rose-soft: #f6d3d2;
  --teal: #2f8580;
  --teal-deep: #1f5f5c;
  --aqua: #8fd0c5;
  --mint: #c9e8df;
  --mustard: #dda83a;
  --butter: #f0d97a;
  --butter-soft: #f8ebb8;
  --navy: #27375e;

  --display: "Fraunces", Georgia, serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --body: "Nunito", system-ui, sans-serif;

  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.075rem/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--raspberry); }
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 750; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--raspberry);
  margin: 0 0 .1em;
  transform: rotate(-2deg);
  display: inline-block;
}
.hand { font-family: var(--hand); font-size: 1.55rem; line-height: 1.2; color: var(--teal-deep); }
.small { font-size: .9rem; opacity: .85; }

section { position: relative; padding: clamp(56px, 9vw, 110px) var(--gutter); }
section > * { position: relative; z-index: 1; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--ink-soft); }

/* Placeholders that still need Linda's info */
.todo {
  border: 2px dashed var(--coral);
  border-radius: 8px;
  padding: 0 .4em;
  color: var(--coral-deep);
  font-style: italic;
}
.todo-pill {
  font-size: .7rem;
  background: var(--butter);
  color: var(--navy);
  border-radius: 99px;
  padding: .1em .6em;
  margin-left: .4em;
  vertical-align: middle;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 3px dotted color-mix(in srgb, var(--coral) 45%, transparent);
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 4px; }
.brand-script { font-family: var(--hand); font-weight: 700; font-size: 2.2rem; color: var(--raspberry); line-height: 1; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: .02em; }
nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav a {
  text-decoration: none; color: var(--navy); font-weight: 800;
  padding: 6px 14px; border-radius: 99px; transition: background .2s, transform .2s;
}
nav a:hover { background: var(--butter-soft); transform: rotate(-2deg); }
nav a.nav-cta { background: var(--coral); color: #fff; }
nav a.nav-cta:hover { background: var(--raspberry); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: block; font: 800 1rem var(--body); color: #fff; background: var(--teal);
    border: 0; border-radius: 99px; padding: 8px 18px; cursor: pointer;
  }
  nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 16px;
    border-bottom: 3px solid var(--coral);
    display: none;
  }
  nav.open { display: flex; }
  nav a { padding: 12px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 1.05rem var(--body); text-decoration: none;
  padding: 14px 26px; border-radius: 99px;
  border: 3px solid var(--navy);
  box-shadow: 5px 5px 0 var(--navy);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--navy); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--navy); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-cream { background: var(--paper); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }

/* ---------- Painted blobs & dabs ---------- */
.blob {
  position: absolute; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  filter: url(#paint);
  z-index: 0;
}
.dabs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dabs-hero { left: 52%; }
@media (max-width: 860px) { .dabs-hero { left: 0; bottom: 55%; } }
.dab {
  position: absolute; border-radius: 50% 45% 55% 50% / 55% 50% 50% 45%;
  filter: url(#paint);
  opacity: .85;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(40px, 6vw, 80px);
  overflow: visible;
}
.hero-text .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.wiggle { color: var(--coral); display: inline-block; transform: rotate(-3deg); }
.wiggle-2 { color: var(--teal); transform: rotate(2deg); }
.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-art .blob-aqua { inset: 6% 4% 10% 8%; background: var(--aqua); }
.hero-art .blob-butter { width: 42%; aspect-ratio: 1; right: -2%; top: -4%; background: var(--butter); border-radius: 60% 40% 50% 50%; }
.hero-art img { position: relative; z-index: 2; width: min(100%, 520px); filter: drop-shadow(0 18px 18px rgb(44 36 51 / .18)); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 300px; order: -1; }
  .hero-art img { width: min(80%, 380px); }
}

/* ---------- Wavy section edges ---------- */
.wave { height: 70px; margin: -1px 0; background-repeat: no-repeat; background-size: 100% 100%; }
.wave-to-rose   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C150 0 300 70 450 35 S750 0 900 40 S1100 70 1200 30 V70 H0Z' fill='%23f6d3d2'/%3E%3C/svg%3E"); }
.wave-from-rose { background-color: var(--cream); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1200 V30 C1050 70 900 10 750 40 S450 70 300 30 S100 10 0 45Z' fill='%23f6d3d2'/%3E%3C/svg%3E"); }
.wave-from-butter { background-color: var(--cream); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1200 V40 C1000 0 850 70 600 35 S200 10 0 50Z' fill='%23f8ebb8'/%3E%3C/svg%3E"); }
.wave-from-teal { background-color: var(--cream); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1200 V25 C1050 65 850 15 650 45 S250 70 0 30Z' fill='%232f8580'/%3E%3C/svg%3E"); }

.band-rose { background: var(--rose-soft); }
.band-butter { background: var(--butter-soft); }
.band-teal { background: var(--teal); color: #fff; }
.band-coral { background: var(--coral); color: #fff; }

/* ---------- Book ---------- */
.book {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.book-art { position: relative; }
.framed {
  margin: 0; background: var(--paper); padding: 14px 14px 18px;
  border-radius: 6px;
  box-shadow: 0 2px 0 #e7d9c3, 0 20px 40px rgb(107 45 82 / .18);
}
.framed img { border-radius: 3px; }
.tilt-left { transform: rotate(-2.5deg); }
.sticker { position: absolute; filter: drop-shadow(0 8px 10px rgb(44 36 51 / .2)); z-index: 2; }
.sticker-turtle { width: 34%; right: -6%; bottom: -14%; transform: rotate(6deg); }
.book-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0; padding: 0; }
.book-facts div { background: var(--paper); border-radius: 16px; padding: 8px 16px; border: 2px solid var(--rose); }
.book-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--raspberry); font-weight: 800; }
.book-facts dd { margin: 0; font-weight: 700; }
.book-actions { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .book { grid-template-columns: 1fr; }
  .sticker-turtle { width: 28%; right: -2%; }
}

/* ---------- Characters ---------- */
.cast {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px;
}
.card {
  --bg: var(--aqua);
  background: var(--paper); border-radius: var(--radius); padding: 20px 22px 24px;
  border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--bg);
  transition: transform .25s;
}
.card:nth-child(odd) { transform: rotate(-1deg); }
.card:nth-child(even) { transform: rotate(1.2deg); }
.card:hover, .card:focus-within { transform: rotate(0) translateY(-6px); }
.card-art {
  aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--bg); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  padding: 14px;
}
.card-art img { max-height: 100%; width: auto; object-fit: contain; transition: transform .35s; }
.card:hover .card-art img { animation: wobble .7s ease-in-out; }
.card-art-photo { padding: 18px; }
.card-art-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 600px) {
  .card-art { max-width: 230px; margin-inline: auto; }
}
.c-aqua { --bg: var(--aqua); }
.c-butter { --bg: var(--butter); }
.c-rose { --bg: var(--rose); }
.c-mint { --bg: var(--mint); }
.c-coral { --bg: var(--coral); }
.c-navy { --bg: var(--navy); }
@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg) scale(1.04); }
  60% { transform: rotate(5deg) scale(1.04); }
}

/* ---------- Peek inside strip ---------- */
.peek { padding-inline: 0; }
.strip {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 16px var(--gutter) 30px;
  scrollbar-color: var(--coral) transparent;
}
.strip:focus-visible { outline: 3px dashed var(--coral); outline-offset: -6px; }
.page {
  flex: 0 0 auto; width: min(78vw, 420px); scroll-snap-align: center;
  margin: 0; background: var(--paper); padding: 12px 12px 10px; border-radius: 6px;
  box-shadow: 0 14px 28px rgb(107 45 82 / .15); cursor: zoom-in;
  transition: transform .2s;
}
.page:nth-child(3n+1) { transform: rotate(-1.6deg); }
.page:nth-child(3n+2) { transform: rotate(1.2deg); }
.page:hover { transform: rotate(0) scale(1.02); }
.page img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.page figcaption { font-family: var(--hand); font-size: 1.35rem; color: var(--navy); padding-top: 6px; text-align: center; }
.strip-hint { text-align: center; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.chip {
  font: 800 .95rem var(--body); color: var(--navy);
  background: var(--paper); border: 2.5px solid var(--navy); border-radius: 99px;
  padding: 8px 18px; cursor: pointer; transition: transform .15s, background .15s;
}
.chip:hover { transform: rotate(-2deg); }
.chip[aria-selected="true"] { background: var(--chip, var(--coral)); color: #fff; border-color: var(--chip, var(--coral)); }
.masonry {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.tile {
  margin: 0; position: relative; aspect-ratio: 1;
  border-radius: 18px; overflow: hidden; cursor: zoom-in;
  background: var(--paper); border: 3px solid var(--paper);
  box-shadow: 0 10px 22px rgb(44 36 51 / .12);
  transition: transform .2s;
  animation: pop .4s ease both;
}
.tile:nth-child(4n+1) { rotate: -.8deg; }
.tile:nth-child(4n+3) { rotate: .9deg; }
.tile:hover { transform: translateY(-4px) scale(1.02); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  font: 700 .9rem var(--body); color: var(--navy);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-radius: 12px; padding: 4px 10px;
  opacity: 0; transform: translateY(6px); transition: .2s;
}
.tile:hover figcaption, .tile:focus figcaption { opacity: 1; transform: none; }
.tile:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
@keyframes pop { from { transform: scale(.94); } }
.more { display: flex; justify-content: center; margin-top: 36px; }
.more[hidden] { display: none; }

/* ---------- Services ---------- */
.services h2, .services h3 { color: #fff; }
.services .eyebrow { color: var(--butter); }
.service-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px;
}
.service-list li {
  background: color-mix(in srgb, var(--teal-deep) 70%, transparent);
  border-radius: var(--radius); padding: 22px 24px;
  border: 2px solid color-mix(in srgb, var(--aqua) 50%, transparent);
}
.service-list p { margin: 0; color: #e7f4f1; }
.dot { display: block; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50% 45% 55% 50%; filter: url(#paint); }
.d-coral { background: var(--coral); } .d-butter { background: var(--butter); } .d-rose { background: var(--rose); }
.d-aqua { background: var(--aqua); } .d-raspberry { background: var(--raspberry); } .d-mustard { background: var(--mustard); }
.d-mint { background: var(--mint); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.about-photo { position: relative; display: grid; place-items: center; padding: 40px 0; }
.about-photo .blob-rose { inset: 0 6%; background: var(--rose); }
.about-photo > img:not(.sticker) {
  position: relative; z-index: 1; width: min(100%, 260px); aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 8px solid var(--paper); box-shadow: 0 16px 30px rgb(107 45 82 / .25);
}
.sticker-giraffe { width: 42%; left: -4%; bottom: -8%; transform: rotate(-8deg); }
.highlights { padding: 0; list-style: none; display: grid; gap: 10px; }
.highlights li { padding-left: 34px; position: relative; }
.highlights li::before {
  content: ""; position: absolute; left: 4px; top: .45em; width: 16px; height: 16px;
  border-radius: 50% 40% 55% 45%; background: var(--c, var(--coral));
}
.highlights li:nth-child(6n+2) { --c: var(--teal); }
.highlights li:nth-child(6n+3) { --c: var(--mustard); }
.highlights li:nth-child(6n+4) { --c: var(--raspberry); }
.highlights li:nth-child(6n+5) { --c: var(--aqua); }
.highlights li:nth-child(6n+6) { --c: var(--navy); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; width: 100%; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; overflow: hidden;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.contact h2 { color: #fff; }
.contact-bird { width: clamp(180px, 26vw, 320px); transform: rotate(-6deg); filter: drop-shadow(0 14px 16px rgb(0 0 0 / .2)); }
.contact .btn-cream { font-size: 1.15rem; margin: 6px 0 22px; word-break: break-all; }
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; text-align: center; }
  .contact-bird { margin: 0 auto; }
}

.site-footer { text-align: center; padding: 26px var(--gutter); background: var(--navy); color: #e9e3f0; }
.site-footer p { margin: 0; }
.site-footer .brand-script { color: var(--butter); font-size: 1.6rem; }

/* ---------- Lightbox ---------- */
#lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
#lightbox::backdrop { background: rgb(39 55 94 / .88); }
#lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
#lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 16px; min-width: 0; }
#lightbox img { max-height: 82vh; width: auto; max-width: 100%; border: 8px solid var(--paper); border-radius: 6px; }
#lightbox figcaption { font-family: var(--hand); font-size: 1.7rem; color: #fff; text-align: center; }
#lightbox button {
  background: var(--coral); color: #fff; border: 0; cursor: pointer; font-size: 2rem; line-height: 1;
  width: 52px; height: 52px; border-radius: 50%; margin: 0 10px;
}
#lightbox .lb-close { position: absolute; top: 14px; right: 14px; background: var(--paper); color: var(--navy); }
@media (max-width: 600px) {
  #lightbox button { width: 40px; height: 40px; font-size: 1.5rem; margin: 0 4px; }
}

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