/* Asma Jamali — palette taken from her artwork (hero mustard, border-flower plum, tag rose, vine sage, strip lilac).
   Type: Bagel Fat One (display caps, echoes her bubbly logo) · Young Serif (book titles, intros) ·
   Jost (body, spaced-capital labels and buttons) · Gochi Hand (small handwritten notes, as in her sketches). */
:root {
  --mustard: #ebbb75;
  --plum: #43284f;
  --plum-soft: #6b5277;
  --rose: #c9496f;
  --rose-deep: #a83759;
  --blush: #f6d3dc;
  --sage: #afc98f;
  --lilac: #ccbcc9;
  --sky: #a9d2ea;
  --paper: #fbf1e1;
  --tile: #f6ead6;
  --white: #fffdf8;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", sans-serif;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, sans-serif;
  --hand: "Gochi Hand", cursive;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --scallop: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--plum); font: 400 1.0625rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.hand { font-family: var(--hand); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- type roles ---------- */
.label { font: 500 .78rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.title { font-family: var(--display); font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1; text-transform: uppercase; letter-spacing: .015em; color: var(--c, var(--rose)); }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.3; color: var(--rose); }
.note { font: 400 1.35rem/1.2 var(--hand); color: var(--plum-soft); margin: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.head-center { flex-direction: column; align-items: center; text-align: center; }
.squiggle { display: block; width: min(240px, 60%); height: 20px; margin: 14px auto 0; }
.sprig { display: block; width: 110px; height: 32px; margin-top: 12px; }

/* ---------- bands, scalloped edges and flower strips ---------- */
.band { --bg: var(--paper); position: relative; background: var(--bg); }  /* scallops need --bg set, even when it's the default */
.scallop::before, .scallop-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--scallop); z-index: 2;
  background: radial-gradient(circle at var(--scallop) var(--y0), var(--bg) calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2.4) var(--scallop) repeat-x;
}
.scallop::before { --y0: var(--scallop); top: calc(var(--scallop) * -1 + 1px); }
.scallop-bottom::after { --y0: 0px; bottom: calc(var(--scallop) * -1 + 1px); }
/* flower border: a seamless tile repeated sideways at its natural proportions, so petals are never cropped */
.strip { height: clamp(40px, 5vw, 64px); background: var(--lilac) url(/img/hero/strip-tile.webp) center / auto 100% repeat-x; }
.pad { padding-block: clamp(64px, 9vw, 112px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font: 500 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 1.15em 2.1em; border-radius: 999px; border: 0; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--plum); color: #fff; }
.btn-plum { background: var(--plum); color: var(--paper); }
.btn-plum:hover { background: var(--rose); color: #fff; }
.btn-mustard { background: var(--mustard); color: var(--plum); }
.btn-mustard:hover { background: var(--paper); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--plum); color: var(--plum); }
.btn-line:hover { background: var(--plum); color: var(--paper); }
.btn-sm { font-size: .72rem; padding: 1em 1.7em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.link-cta { font: 500 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--rose); padding: 0 2px 8px; border-bottom: 2px solid currentColor; white-space: nowrap; }
.link-cta:hover { color: var(--plum); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--paper); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: 1360px; margin: 0 auto; padding: 14px var(--gutter); }
.nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav a { font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--rose); }
.nav a[aria-current] { border-bottom-color: currentColor; }
.logo img { height: 44px; width: auto; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.icon-link { display: grid; place-items: center; width: 32px; height: 32px; }
.icon-link:hover { color: var(--rose); }
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .logo img { height: 36px; }
  .header-right .btn, .header-right .icon-link { display: none; }
  .menu-btn { display: block; font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--plum); background: none; border: 1.5px solid var(--plum); border-radius: 999px; padding: .8em 1.3em; cursor: pointer; }
  .nav { display: none; grid-column: 1 / -1; grid-row: 2; flex-direction: column; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--lilac); font-size: .85rem; }
}

/* ---------- hero: her front-page sample, mustard between lilac flower borders ---------- */
.hero { background: var(--mustard); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.55fr 1fr; align-items: center; gap: clamp(12px, 3vw, 44px); max-width: 1360px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(72px, 8vw, 112px); }
.hero-copy { text-align: center; }
.hero-hi { font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1 var(--hand); color: var(--rose-deep); display: inline-block; transform: rotate(-4deg); margin-bottom: 16px; }
.hero h1 { font-family: var(--display); font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.02; text-transform: uppercase; letter-spacing: .015em; }
.hero .squiggle { margin: 20px auto 22px; }
.hero-tagline { font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.4 var(--serif); max-width: 32ch; margin: 0 auto 30px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.frame img { filter: drop-shadow(0 16px 22px rgba(90, 55, 10, .26)); }
.frame-l img { transform: rotate(-4deg); }
.frame-r img { transform: rotate(3deg); }
.hero-gang { position: absolute; right: clamp(8px, 4vw, 70px); bottom: calc(clamp(40px, 5vw, 64px) - 12px); display: flex; align-items: flex-end; gap: 4px; z-index: 2; pointer-events: none; }
.hero-gang img { height: clamp(66px, 8.5vw, 124px); width: auto; }
.hero-gang img:nth-child(2) { height: clamp(80px, 10.5vw, 152px); }
.hero-gang img:nth-child(3) { height: clamp(92px, 12vw, 172px); }
.hero-girl { position: absolute; left: clamp(8px, 4vw, 70px); bottom: calc(clamp(40px, 5vw, 64px) - 8px); height: clamp(80px, 10vw, 150px); width: auto; z-index: 2; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .frame img { animation: drop .9s cubic-bezier(.2, .9, .3, 1.25) both; }
  .frame-r img { animation-delay: .12s; --r: 3deg; }
  .hero-gang img, .hero-girl { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
  .hero-girl { animation-delay: .6s; }
  .hero-gang img:nth-child(1) { animation-delay: .7s; }
  .hero-gang img:nth-child(2) { animation-delay: .8s; }
  .hero-gang img:nth-child(3) { animation-delay: .9s; }
  @keyframes drop { from { opacity: 0; transform: translateY(-40px) rotate(var(--r, -4deg)) scale(1.06); } }
  @keyframes hop { from { opacity: 0; transform: translateY(40px); } }
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr 1fr; padding-bottom: 110px; }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; }
  .frame { max-width: 170px; justify-self: center; }
}

/* ---------- as seen in: one-colour logo wall ---------- */
.press { --bg: var(--white); text-align: center; padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 84px); }
.press ul { list-style: none; margin: 26px auto 0; padding: 0; max-width: 1080px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 72px); }
.press img { max-width: 38vw; }

/* ---------- book cards: each grows by its cover's aspect ratio, so covers in a row share one height ---------- */
.shelf-grid { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 28px); }
.shelf-center { justify-content: center; max-width: 900px; margin-inline: auto; }
.book { flex: var(--ar) 1 0; min-width: 0; background: var(--white); border-radius: 6px; padding: 16px 16px 24px; display: flex; flex-direction: column; }
.book-tile { background: var(--tile); border-radius: 4px; padding: 16px; margin-bottom: 18px; }
.book-tile img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 12px 20px -12px rgba(67, 40, 79, .6); transition: transform .3s ease; }
.book:hover .book-tile img { transform: translateY(-4px); }
.book-by { color: var(--rose); margin: 0 4px 6px; }
.book h3 { font: 400 1.28rem/1.25 var(--serif); margin: 0 4px 18px; flex: 1; }
.book .btn { align-self: flex-start; margin-left: 4px; }
@media (max-width: 600px) {
  .shelf-grid { flex-direction: column; }
  .book { flex: none; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; align-items: start; padding: 12px; }
  .book-tile { grid-row: 1 / 4; margin: 0; padding: 10px; }
  .book-tile img { height: 130px; width: auto; max-width: 38vw; object-fit: contain; }
  .book-by { margin: 6px 0 4px; }
  .book h3 { font-size: 1.1rem; margin: 0 0 12px; }
  .book .btn { margin: 0; align-self: end; justify-self: start; }
}
.stories { --bg: var(--paper); }

/* ---------- the food series: her own books on a gingham tablecloth ---------- */
.food {
  position: relative; overflow: hidden; background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(235, 187, 117, .4) 50%, transparent 50%), linear-gradient(rgba(235, 187, 117, .4) 50%, transparent 50%);
  background-size: 56px 56px;
}
.food-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.food-card { background: var(--white); border-radius: 8px; padding: clamp(28px, 4vw, 52px); box-shadow: 0 24px 48px -28px rgba(67, 40, 79, .45); }
.kicker { font: 400 1.45rem/1.1 var(--hand); color: var(--rose); display: inline-block; transform: rotate(-3deg); margin: 0 0 10px; }
.food-card .title { --c: var(--plum); margin-bottom: 16px; }
.food-list { list-style: none; margin: 22px 0 28px; padding: 0; }
.food-list a { display: grid; gap: 2px; padding: 14px 0 14px 20px; border-top: 1px solid var(--lilac); text-decoration: none; position: relative; }
.food-list a::before { content: ""; position: absolute; left: 0; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.food-list strong { font: 400 1.18rem/1.3 var(--serif); }
.food-list a:hover strong { color: var(--rose); }
.food-list span { color: var(--plum-soft); font-size: .98rem; }
.food-fan { position: relative; display: flex; justify-content: center; align-items: center; min-height: clamp(380px, 38vw, 500px); }
.food-fan a { flex: none; width: clamp(130px, 15vw, 220px); position: relative; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.food-fan a:hover, .food-fan a:focus-visible { --y: -18px; z-index: 5; }
.food-fan a img { border-radius: 6px; box-shadow: 0 22px 30px -14px rgba(67, 40, 79, .6); }
.fan-l { --r: -10deg; margin-right: -12%; z-index: 1; }
.fan-c { --y: -16px; z-index: 2; }
.fan-c:hover { --y: -32px; }
.fan-r { --r: 10deg; margin-left: -12%; z-index: 1; }
.food-berries { position: absolute; left: 2%; bottom: 0; width: clamp(90px, 10vw, 140px); z-index: 4; pointer-events: none; }
.food-choc { position: absolute; right: 4%; bottom: -6px; height: clamp(110px, 12vw, 170px); width: auto; z-index: 4; pointer-events: none; }
@media (max-width: 860px) {
  .food-grid { grid-template-columns: 1fr; }
  .food-fan { order: -1; min-height: 300px; }
  .food-fan a { width: 32vw; max-width: 190px; }
}

/* ---------- collaborations band + cartouche (her tag drawing) ---------- */
.collab { position: relative; display: grid; place-items: center; min-height: clamp(480px, 56vw, 680px); padding: 60px var(--gutter); overflow: hidden; }
.collab-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collab-stack { position: relative; display: grid; justify-items: center; }
.cartouche {
  position: relative; width: min(580px, 100%); aspect-ratio: 900 / 593; display: grid; align-content: center; justify-items: center; text-align: center;
  padding: calc(min(580px, 100vw - 32px) * .1) calc(min(580px, 100vw - 32px) * .16);
  background: url(/img/tag-collab.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 18px 28px rgba(67, 40, 79, .3));
}
.cartouche h1, .cartouche h2 { font-family: var(--display); font-size: clamp(1.5rem, 3.3vw, 2.5rem); text-transform: uppercase; letter-spacing: .015em; color: var(--rose); }
.cartouche p { max-width: 30ch; margin: 12px 0 18px; }
.chat-tag { position: relative; margin-top: -8px; background: var(--plum); color: var(--paper); text-decoration: none; padding: 14px 24px; }
.chat-tag:hover { background: var(--rose); }
@media (max-width: 480px) { .cartouche { aspect-ratio: auto; min-height: 260px; padding: 64px 44px; } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding: 20px 0; border-block: 1.5px solid var(--plum); background: var(--paper); }
.ticker-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker span { white-space: nowrap; padding-right: 1.4em; font: 500 1rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ticker span::after { content: "\2738"; color: var(--rose); padding-left: 1.4em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- resources: book spines ---------- */
.spines { display: flex; height: 420px; border: 1.5px solid var(--plum); border-radius: 8px; overflow: hidden; background: var(--white); }
.spine-item { display: flex; flex: 0 0 auto; transition: flex-grow .45s ease; }
.spine-item + .spine-item { border-left: 1.5px solid var(--plum); }
.spine-item.open { flex: 1 1 auto; }
.spine { all: unset; box-sizing: border-box; cursor: pointer; width: 58px; display: flex; align-items: center; justify-content: center; padding: 24px 0; background: var(--c); color: var(--plum); }
.spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 .8rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.spine:hover span { color: var(--white); }
.spine-item.open .spine span { color: var(--plum); }
.spine:focus-visible { outline: 3px solid var(--plum); outline-offset: -6px; }
.panel { display: none; flex: 1; padding: clamp(24px, 4vw, 52px); grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; background: var(--white) radial-gradient(var(--blush) 1.4px, transparent 1.6px) 0 0 / 20px 20px; }
.spine-item.open .panel { display: grid; animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; } }
.panel img { height: clamp(170px, 19vw, 250px); width: auto; max-width: clamp(150px, 20vw, 270px); object-fit: contain; }
.panel .hand { font-size: 1.3rem; color: var(--rose); }
.panel h3 { font: 400 clamp(1.8rem, 3vw, 2.5rem)/1.1 var(--serif); margin: 4px 0 14px; }
.panel p { max-width: 38ch; margin-bottom: 22px; }
@media (max-width: 800px) {
  .spines { flex-direction: column; height: auto; }
  .spine-item { flex-direction: column; }
  .spine-item + .spine-item { border-left: 0; border-top: 1.5px solid var(--plum); }
  .spine { width: 100%; padding: 18px 22px; justify-content: flex-start; }
  .spine span { writing-mode: horizontal-tb; transform: none; }
  .panel { grid-template-columns: 1fr; }
  .panel img { height: 120px; }
}

/* ---------- galleries: justified rows, every piece whole ---------- */
.illo { --bg: var(--white); text-align: center; }
.masonry { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 44px; }
.masonry a { flex: var(--ar) 1 calc(var(--ar) * 220px); max-width: calc(var(--ar) * 480px); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform .4s ease; }
.masonry a:hover img { transform: scale(1.03); }
.peek .masonry a { flex-basis: calc(var(--ar) * 340px); max-width: calc(var(--ar) * 560px); }
@media (max-width: 600px) { .masonry { gap: 10px; } .masonry a { flex-basis: calc(var(--ar) * 125px); } }

/* ---------- home: "Hi, I'm Asma" split screen ---------- */
.meet-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.meet-copy { display: grid; align-content: center; justify-items: start; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 96px); }
.meet-copy .squiggle { margin: 14px 0 24px; }
.meet-copy p { max-width: 42ch; margin-bottom: 28px; }
.meet-art { background: var(--blush); display: grid; place-items: center; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.portrait { position: relative; width: min(360px, 100%); aspect-ratio: 900 / 1125; padding: 8.5%; background: url(/img/tag-about.webp) center / 100% 100% no-repeat; transform: rotate(2.5deg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.portrait .hand { position: absolute; left: -10%; bottom: 7%; background: var(--mustard); color: var(--plum); font-size: 1.35rem; padding: 6px 16px; border-radius: 999px; transform: rotate(-6deg); }
@media (max-width: 800px) { .meet-grid { grid-template-columns: 1fr; } .meet-art { order: -1; } }

/* ---------- contact ---------- */
.contact { background: var(--plum); color: var(--paper); overflow-x: clip; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact .title { --c: var(--mustard); margin-bottom: 18px; }
.contact-copy .chat-badge { display: inline-block; background: var(--blush); color: var(--plum); font: 400 clamp(1.5rem, 2.4vw, 2rem)/1 var(--hand); padding: 10px 22px 12px; border-radius: 999px; transform: rotate(-4deg); margin: 0 0 24px; }
.contact-copy p { max-width: 42ch; color: #efe3f0; }
.contact-copy a { color: var(--mustard); font-weight: 500; }
.sparkles { position: relative; }
.sparkles > svg { position: absolute; fill: var(--mustard); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-bunny { height: 104px; right: 20px; } .say-hello { padding-top: 56px; } }

/* ---------- closing call-to-action band ---------- */
.cta { background: var(--plum); color: var(--paper); overflow-x: clip; }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center; }
.cta .title { --c: var(--mustard); margin-bottom: 12px; }
.cta p { color: #efe3f0; max-width: 46ch; margin: 0; }
.cta-character { height: clamp(110px, 13vw, 170px); width: auto; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- footer ---------- */
.footer { background: var(--paper); text-align: center; }
.footer-main { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); padding-block: clamp(40px, 6vw, 64px) 24px; }
.footer-char { height: clamp(90px, 9vw, 120px); width: auto; }
.footer-char-l { justify-self: end; }
.footer-char-r { justify-self: start; }
.footer-links { display: grid; gap: 14px; justify-items: center; }
.footer-links a { font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding-bottom: 6px; border-bottom: 1.5px solid var(--rose); }
.footer-links a:hover { color: var(--rose); }
.footer-logo img { height: clamp(60px, 7vw, 86px); width: auto; }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 14px; }
.footer-legal { font-size: .88rem; color: var(--plum-soft); padding-bottom: 28px; }
.footer-legal a { margin-left: 14px; }
@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .footer-char { display: none; }
}

/* ---------- books page ---------- */
.pattern-hero { display: grid; place-items: center; padding: clamp(56px, 8vw, 100px) var(--gutter) clamp(64px, 9vw, 110px); background: url(/img/books-bg.webp) center / cover no-repeat; }  /* one image: the artwork isn't made to tile */
.pattern-hero .cartouche { background-image: url(/img/tag-books.webp); }
.illustrated { --bg: var(--blush); }

/* ---------- single book ---------- */
.book-hero { position: relative; padding-block: clamp(28px, 4vw, 48px) clamp(64px, 9vw, 110px); }
.crumb { display: inline-block; margin-bottom: clamp(24px, 3vw, 40px); text-decoration: none; }
.crumb:hover { color: var(--rose); }
.book-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.book-hero-cover img { margin-inline: auto; max-height: 560px; width: auto; border-radius: 6px; box-shadow: 0 30px 44px -22px rgba(67, 40, 79, .65); }
.book-hero h1 { font: 400 clamp(2.1rem, 4vw, 3.3rem)/1.1 var(--serif); margin-bottom: 18px; }
.book-credits { display: grid; gap: 6px; margin: 0 0 22px; }
.book-credits b { font-weight: 600; }
.book-blurb { font-size: 1.12rem; max-width: 52ch; margin-bottom: 30px; }
.book-char { position: absolute; right: clamp(8px, 5vw, 80px); bottom: -22px; height: clamp(110px, 13vw, 180px); width: auto; z-index: 3; pointer-events: none; }
.peek { --bg: var(--white); }
.more { --bg: var(--paper); }
@media (max-width: 800px) {
  .book-hero-grid { grid-template-columns: 1fr; }
  .book-hero-cover img { max-height: 380px; }
  .book-char { height: 96px; }
}

/* ---------- collaborations page ---------- */
.collab-hero { min-height: clamp(400px, 44vw, 560px); }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.client-media { display: block; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--lilac); margin-bottom: 18px; }
.client-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.client-media { cursor: zoom-in; }
a.client-media:hover img { transform: scale(1.03); }
.client-media.logo-only { display: grid; place-items: center; }
.client-media.logo-only img { width: 55%; height: auto; object-fit: contain; }
.client-thumbs { display: flex; gap: 10px; margin: -6px 0 16px; }
.client-thumbs a { width: 128px; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.client-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.client h2 { font: 400 1.6rem/1.2 var(--serif); margin-bottom: 8px; }
.client h2 a { text-decoration: none; }
.client h2 a:hover { color: var(--rose); }
.client .label { color: var(--rose); margin-bottom: 10px; }
.client p { max-width: 52ch; }
@media (max-width: 760px) { .client-grid { grid-template-columns: 1fr; } }

/* ---------- about page ---------- */
.roles { background: var(--blush); border: 0; }
.roles span { color: var(--rose-deep); }
.about-frame {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  background: var(--paper); border: clamp(28px, 5vw, 60px) solid transparent; border-image: url(/img/about/border.webp) 230 round; padding: clamp(12px, 3vw, 40px);
}
.about-left { display: grid; justify-items: center; gap: 28px; text-align: center; }
.about-right .lead { margin-bottom: 20px; }
.loves-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.love { background: var(--white); border-radius: 6px; padding: 12px 12px 20px; text-align: center; }
.love-img { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--c, var(--tile)); display: grid; place-items: center; margin-bottom: 16px; }
.love-img img { width: 100%; height: 100%; object-fit: cover; }
.love-img.contain img { width: 78%; height: 78%; object-fit: contain; }
.love h3 { font: 400 1.15rem/1.25 var(--serif); }
.timeline { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 960px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--sage); transform: translateX(-50%); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; padding-block: 28px; }
.tl-item::before { content: "\2739"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--sage); font-size: 1.6rem; background: var(--paper); line-height: 1; padding: 4px 0; }
.tl-item:nth-child(even) .tl-text { order: 2; }
.tl-text time { display: block; font: 400 1.9rem/1.1 var(--serif); color: var(--rose); margin-bottom: 8px; }
.tl-text p { max-width: 36ch; margin: 0; }
.tl-item:nth-child(odd) .tl-text { text-align: right; justify-self: end; }
.tl-item:nth-child(odd) .tl-text p { margin-left: auto; }
.tl-img { justify-self: start; width: min(240px, 100%); }
.tl-item:nth-child(even) .tl-img { justify-self: end; }
.tl-img img { border-radius: 6px; box-shadow: 0 18px 30px -16px rgba(67, 40, 79, .55); }
.tl-img.logo { background: var(--white); border-radius: 6px; padding: 28px; }
.tl-img.logo img { box-shadow: none; }
@media (max-width: 860px) {
  .about-frame { grid-template-columns: 1fr; }
  .loves-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { left: 10px; }
  .tl-item { grid-template-columns: 1fr; gap: 16px; padding-left: 40px; }
  .tl-item::before { left: 10px; top: 40px; }
  .tl-item:nth-child(odd) .tl-text { text-align: left; justify-self: start; }
  .tl-item:nth-child(odd) .tl-text p { margin-left: 0; }
  .tl-item:nth-child(even) .tl-text { order: 0; }
  .tl-img, .tl-item:nth-child(even) .tl-img { justify-self: start; width: min(190px, 100%); }
}

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(43, 24, 51, .9); }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; border-radius: 6px; }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mustard); color: var(--plum); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.book-credits .label { margin: 0; }
.crumb.label { font-size: .74rem; }

/* ---------- motion, modelled on the reference site ----------
   Text and buttons fade in rising 18px; images wipe up from the bottom; same 0.65s ease-out-expo curve.
   Classes are added by main.js, so without JS (or with reduced motion) everything simply shows. */
:root { --ease: cubic-bezier(.19, 1, .22, 1); }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; }
  .js .rv-up { transform: translateY(18px); }
  .js .rv-up.in { transform: none; }
  /* the wipe runs on the image inside: a fully clipped element has no area, so it would never count as "in view" */
  .js .rv-wipe > img { clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease) var(--d, 0s); }
  .js .rv-wipe.in > img { clip-path: inset(0 0 0 0); }
  .js .rv-pop { transform: translateY(24px) scale(.86); transition-timing-function: var(--ease), cubic-bezier(.3, 1.5, .5, 1); transition-duration: .65s, .8s; }
  .js .rv-pop.in { transform: none; }
  .js .rv-draw path { stroke-dasharray: 330; stroke-dashoffset: 330; transition: stroke-dashoffset 1.3s var(--ease) calc(var(--d, 0s) + .15s); }
  .js .rv-draw.in path { stroke-dashoffset: 0; }

  /* first screen: header and hero copy arrive one after another */
  .header-inner > * { animation: rise .8s var(--ease) both; }
  .header-inner > :nth-child(2) { animation-delay: .06s; }
  .header-inner > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: .2s; }
  .hero-copy > :nth-child(2) { animation-delay: .3s; }
  .hero-copy > :nth-child(3) { animation-delay: .42s; }
  .hero-copy > :nth-child(4) { animation-delay: .5s; }
  .hero-copy > :nth-child(5) { animation-delay: .58s; }
  .hero-hi { animation-name: rise-tilt !important; }
  .hero .squiggle path { stroke-dasharray: 330; stroke-dashoffset: 330; animation: draw 1.4s var(--ease) .75s forwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes rise-tilt { from { opacity: 0; transform: translateY(18px) rotate(-4deg); } to { transform: rotate(-4deg); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* characters sway gently when you hover them */
  .hero-gang img, .hero-girl, .book-char, .cta-character, .footer-char, .food-berries, .food-choc { transform-origin: 50% 100%; }
  .hero-gang img:hover, .book-char:hover, .cta-character:hover, .footer-char:hover { animation: sway .7s ease-in-out; }
  @keyframes sway { 25% { transform: rotate(-6deg); } 75% { transform: rotate(5deg); } }
}

/* ---------- services (home) ---------- */
.services { --bg: var(--blush); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-bottom: 44px; }
.service { background: var(--white); border-radius: 6px; padding: 14px 14px 26px; }
.service-img { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; margin-bottom: 20px; cursor: zoom-in; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-img:hover img { transform: scale(1.03); }
.service h3 { font: 400 1.4rem/1.2 var(--serif); margin: 0 8px 14px; }
.service ul { list-style: none; margin: 0 8px; padding: 0; }
.service li { padding: 10px 0 10px 22px; border-top: 1px solid var(--lilac); position: relative; }
.service li::before { content: "\2739"; position: absolute; left: 0; color: var(--rose); }
.center { text-align: center; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- custom work (collaborations): equal-height images, whole artwork ---------- */
.works { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.4vw, 32px); }
.work { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.work a { display: block; border-radius: 4px; overflow: hidden; cursor: zoom-in; margin-bottom: 16px; box-shadow: 0 18px 30px -18px rgba(67, 40, 79, .5); }
.work img { width: 100%; transition: transform .4s ease; }
.work a:hover img { transform: scale(1.03); }
.work h3 { font: 400 1.25rem/1.25 var(--serif); margin-bottom: 6px; }
.work p { font-size: .98rem; margin: 0; }
@media (max-width: 700px) { .works { flex-direction: column; } .work { flex: none; } }

.cta-avatar { width: clamp(120px, 13vw, 170px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 5px solid var(--mustard); }


/* resource tool icons: painted in her style (Claivra), sized by the panel image rule */
.tool-icon { filter: drop-shadow(0 12px 14px rgba(67, 40, 79, .14)); }
.spine-item.open .tool-icon { animation: icon-in .7s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes icon-in { from { transform: scale(.7) rotate(-10deg); opacity: 0; } }
.panel:hover .tool-icon { animation: sway .8s ease-in-out; transform-origin: 50% 90%; }

/* contact: direct email / Instagram */
.say-hello { position: relative; padding-top: 70px; }
.contact-bunny { position: absolute; right: 36px; top: 0; height: 130px; width: auto; pointer-events: none; }  /* peeks over the card */
.hello-card { position: relative; z-index: 1; background: var(--paper); color: var(--plum); border-radius: 8px; padding: clamp(16px, 3vw, 28px); display: grid; gap: 14px; }
.hello-link { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; padding: 18px 20px; background: var(--white); border: 1.5px solid var(--lilac); border-radius: 6px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.hello-link:hover { border-color: var(--rose); transform: translateY(-2px); }
.hello-link .btn { grid-column: 2; justify-self: start; }  /* button sits under its text */
.hello-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blush); color: var(--rose-deep); display: grid; place-items: center; }
.hello-icon svg { width: 26px; height: 26px; }
.hello-link .label { display: block; color: var(--rose); margin-bottom: 4px; }
.hello-link strong { display: block; font: 400 1.05rem/1.3 var(--serif); }  /* the address may break only after the @ */
@media (max-width: 520px) {
  .hello-link { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; }
  .hello-link .btn { grid-column: 1 / -1; }
  .hello-icon { width: 44px; height: 44px; }
  .hello-link strong { font-size: .95rem; }
}
