/* Wild Feelings Safari: watercolour picture books for big feelings. Warm paper, meerkat-sun yellow, acacia green,
   the tiger's sunset coral and the slate ink of the book covers, in soft watercolour blobs and a savanna horizon.
   Round, friendly type (Baloo 2, as on the covers; Andika, made for early readers). Apart from every other brand site:
   no dark bands, no serif, square picture-book covers. Layout: centred header. Motion is gentle and off for anyone
   who asks for less. */
:root {
  --bg: #fffaf0;
  --paper: #fffdf8;
  --sand: #f6e7c8;
  --sun: #f2b632;
  --sun-soft: #fbe6ad;
  --acacia: #5f8a4a;
  --acacia-2: #47703a;
  --leaf: #e3edd6;
  --coral: #d9573a;
  --coral-2: #b8442b;
  --sky: #d6ebf2;
  --text: #2f3a40;
  --muted: #5b6569;
  --line: #eadcbc;
  --rose: var(--coral);
  --head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Andika", "Segoe UI", system-ui, sans-serif;
  --wrap: 1080px;
  --grass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 38 C120 18 220 46 340 30 S560 10 690 32 S930 52 1050 28 S1170 22 1200 30 V60 H0Z' fill='%23e3edd6'/%3E%3Cpath d='M0 48 C160 34 300 56 460 42 S760 30 900 46 S1120 54 1200 44 V60 H0Z' fill='%23cfe0bd'/%3E%3C/svg%3E");
  --grass-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 38 C120 18 220 46 340 30 S560 10 690 32 S930 52 1050 28 S1170 22 1200 30 V60 H0Z' fill='%235f8a4a'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(520px 360px at 94% 4%, rgba(242,182,50,.20) 0%, transparent 70%),
    radial-gradient(560px 420px at -6% 38%, rgba(214,235,242,.55) 0%, transparent 70%),
    radial-gradient(480px 380px at 104% 78%, rgba(227,237,214,.7) 0%, transparent 70%);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acacia-2); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--coral-2); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.05; margin: 0 0 .4em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); position: relative; display: inline-block; z-index: 0; }
h2::before { /* a watercolour wash behind the heading */
  content: ""; position: absolute; left: -10px; right: -14px; bottom: .08em; height: .55em; z-index: -1;
  background: var(--sun-soft); border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; opacity: .9;
}
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.kicker {
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--acacia); font-size: .82rem; margin: 0 0 .5em;
}
.lede { font-size: 1.4rem; line-height: 1.4; color: var(--coral-2); font-family: var(--head); font-weight: 600; }
.center { text-align: center; }

/* Header: the meerkat over the name, centred */
.top { background: var(--paper); position: relative; z-index: 5; }
.top::after { content: ""; display: block; height: 22px; background: var(--grass) no-repeat center / 100% 100%; margin-bottom: -22px; position: relative; z-index: 1; pointer-events: none; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; line-height: 1; }
.brand__logo { width: 120px; height: auto; mix-blend-mode: multiply; transition: transform .4s ease; } /* the full logo: meerkat over the words (founder, 2 Nov 2026) */
.brand:hover .brand__logo { transform: rotate(-2deg) scale(1.03); }
.brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the words are in the logo */
.brand__label { display: none; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 8px; flex-wrap: wrap; }
.top nav a {
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--text); text-decoration: none;
  padding: 6px 14px; border-radius: 999px; display: inline-block; transition: background .2s ease, transform .2s ease;
}
.top nav a:hover { background: var(--leaf); transform: translateY(-2px); color: var(--text); }
.top nav a[aria-current] { background: var(--sun-soft); }
.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 1rem;
  background: var(--sun-soft); padding: 8px 18px; border-radius: 999px; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.top--centred .top__in { flex-direction: column; justify-content: center; gap: 10px; padding-top: 18px; padding-bottom: 14px; }
.top--centred .brand { flex-direction: column; gap: 8px; }
.top--centred .brand__logo { width: 150px; }
.top--centred .navbar ul { justify-content: center; }
@media (max-width: 860px) {
  .navbar { display: none; }
  .menu { display: block; }
  .top--centred .top__in { flex-direction: row; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
  .top--centred .brand { flex-direction: row; }
  .top--centred .brand__logo { width: 104px; }
  .menu[open] nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); padding: 22px 16px 16px; box-shadow: 0 18px 30px rgba(47,58,64,.10); z-index: 6; }
  .menu nav ul { flex-direction: column; }
  .menu nav a { font-size: 1.3rem; padding: 10px 14px; }
}

main.wrap { padding-top: 44px; padding-bottom: 64px; }
section { margin: 72px 0; }
.pagehead { margin-bottom: 28px; text-align: center; }

/* Buttons: round and chunky, a little bounce */
.btn {
  display: inline-block; font-family: var(--head); font-weight: 800; font-size: 1.1rem; line-height: 1.1;
  background: var(--coral); color: #fff; text-decoration: none; padding: 13px 26px; border-radius: 999px;
  border: 0; box-shadow: 0 5px 0 var(--coral-2); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 var(--coral-2); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--coral-2); }
.btn--ghost { background: var(--leaf); color: var(--acacia-2); box-shadow: 0 5px 0 #c3d6ae; }
.btn--ghost:hover { color: var(--acacia-2); box-shadow: 0 7px 0 #c3d6ae; }
.btn--small { padding: 7px 14px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Hero: words beside the cover, on soft watercolour washes, with a savanna horizon under it */
.hero {
  display: grid; grid-template-columns: 1fr minmax(240px, 400px); gap: 48px; align-items: center;
  position: relative; padding: 36px 8px 64px;
}
.hero::before, .hero::after { /* two washes of colour that breathe slowly */
  content: ""; position: absolute; z-index: -1; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  filter: blur(2px); animation: breathe 14s ease-in-out infinite alternate;
}
.hero::before { width: 420px; height: 360px; right: -40px; top: -10px; background: radial-gradient(circle at 40% 40%, rgba(242,182,50,.45), rgba(242,182,50,.08) 70%); }
.hero::after { width: 380px; height: 300px; left: -80px; bottom: 10px; background: radial-gradient(circle at 60% 50%, rgba(217,87,58,.18), rgba(217,87,58,0) 70%); animation-delay: -6s; }
@keyframes breathe { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.08) rotate(6deg); } }
.hero h1 { font-size: clamp(2.8rem, 8.5vw, 4.8rem); }
.hero__cover .cover, .book__cover .cover {
  border-radius: 10px; box-shadow: 0 22px 44px rgba(47,58,64,.22), 0 0 0 10px var(--paper);
  transform: rotate(2.5deg); animation: sway 7s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(2.5deg) translateY(0); } to { transform: rotate(-1.5deg) translateY(-6px); } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-bottom: 40px; }
  .hero__cover { max-width: 290px; margin: 0 auto; width: 100%; order: -1; }
  .hero .actions { justify-content: center; }
  .hero::before { width: 300px; height: 260px; right: -60px; }
}

/* Covers and cards: picture-book covers are square */
.cover { border-radius: 10px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--sand); }
.cover--blank {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 16px; background: radial-gradient(circle at 50% 40%, var(--sun-soft), var(--sand));
  font-family: var(--head); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--text);
}
.cover__star { color: var(--sun); font-size: 1.6rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; }
@media (max-width: 460px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }
.card .cover { box-shadow: 0 12px 26px rgba(47,58,64,.16); transition: transform .3s ease; }
.card:hover .cover { transform: rotate(-2deg) translateY(-4px); }
.card__link { text-decoration: none; color: inherit; display: block; }
.card__title { font-size: 1.4rem; margin: 16px 0 .2em; }
.card__link:hover .card__title { color: var(--coral); }
.card__sub { color: var(--muted); margin: 0 0 .4em; font-size: 1.2rem; }
.card__tag { color: var(--muted); font-size: 1rem; margin: 0; }
.byline { margin: 0 0 .3em; color: var(--muted); }
.soon {
  display: inline-block; font-family: var(--head); font-weight: 800; font-size: .95rem; margin-top: .6em;
  background: var(--sun); color: var(--text); padding: 4px 14px 2px; border-radius: 999px; transform: rotate(-3deg);
}

/* The first book */
.feature__in {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
  background: var(--paper); border-radius: 32px; padding: 30px; box-shadow: 0 16px 40px rgba(47,58,64,.08);
  border: 3px dashed var(--sun-soft);
}
.feature__in h3 { font-size: 2.2rem; }
.feature__in h3 a { color: var(--text); text-decoration: none; }
.feature__in .cover { box-shadow: 0 12px 26px rgba(47,58,64,.18); }
@media (max-width: 560px) { .feature__in { grid-template-columns: 1fr; text-align: center; } .feature__cover { max-width: 220px; margin: 0 auto; } .feature__in .buy { justify-content: center; } }

/* Store buttons */
.buy { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* Book page */
.book { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 56px; align-items: start; }
.book h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.blurb { font-size: 1.15rem; max-width: 62ch; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 26px 0 0; padding: 20px 22px; background: var(--paper); border-radius: 20px; color: var(--muted); font-size: 1rem; }
.facts dt { font-family: var(--head); font-weight: 600; color: var(--acacia); }
.facts dd { margin: 0; }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; gap: 28px; } .book__cover { max-width: 280px; margin: 0 auto; } }

/* A peek inside: watermarked sample pages, scattered like prints on a table */
.peek { margin-top: 64px; text-align: center; }
.peek__pages { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.peek__pages img { border-radius: 8px; box-shadow: 0 10px 24px rgba(47,58,64,.16), 0 0 0 7px var(--paper); transition: transform .3s ease; }
.peek__pages li:nth-child(odd) img { transform: rotate(-1.5deg); }
.peek__pages li:nth-child(even) img { transform: rotate(1.5deg); }
.peek__pages img:hover { transform: rotate(0) scale(1.03); }
@media (max-width: 460px) { .peek__pages { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* The author: her meerkat in a sun-ring */
.authors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.authors:has(> :only-child) { grid-template-columns: minmax(0, 340px); justify-content: center; }
.author { background: var(--paper); border-radius: 28px; padding: 26px; text-align: center; box-shadow: 0 14px 34px rgba(47,58,64,.07); }
.author__link { text-decoration: none; color: inherit; display: block; }
.author__name { font-size: 1.6rem; margin: 14px 0 .2em; }
.author__link:hover .author__name { color: var(--coral); }
.author__link:hover .face { transform: rotate(-5deg) scale(1.04); }
.author__line { color: var(--muted); }
.face { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: 0 0 0 6px var(--sun-soft), 0 0 0 12px var(--paper); transition: transform .35s ease; }
.face--big { width: 190px; height: 190px; margin-bottom: 22px; }
.monogram { display: inline-grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--sun-soft); font-family: var(--head); font-weight: 800; font-size: 2.4rem; }

/* About and author notes: a paper card */
.letter {
  max-width: 680px; margin: 0 auto 56px; background: var(--paper); border-radius: 30px;
  padding: 40px 44px 30px; box-shadow: 0 16px 40px rgba(47,58,64,.08); position: relative;
}
.letter::before { content: "✿"; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: var(--sun); color: var(--paper); border-radius: 50%; font-size: 1.3rem; }
.letter .lede-p:first-of-type { font-size: 1.3rem; color: var(--text); }
.letter + section { max-width: 680px; margin: 0 auto; }
@media (max-width: 560px) { .letter { padding: 32px 22px 24px; } }

/* Band: sign up, on a green field */
.band { background: var(--leaf); padding: 40px 30px; border-radius: 34px; text-align: center; position: relative; }
.band h2::before { background: var(--paper); }
.band p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.band p:last-child { margin-bottom: 0; }
.band .join { margin: 0 auto; }

/* Reader forms */
.join, .message { max-width: 560px; }
.join label, .message label { display: block; margin: 16px 0 6px; font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--acacia-2); }
.join__row { display: flex; flex-wrap: wrap; gap: 10px; }
.join__row input { flex: 1 1 200px; width: auto; }
.join input, .message input, .message textarea {
  width: 100%; padding: 12px 18px; font: inherit; font-size: 1.05rem; color: var(--text); background: var(--paper);
  border: 2px solid var(--line); border-radius: 999px;
}
.message textarea { border-radius: 22px; resize: vertical; min-height: 10rem; }
.join input:focus, .message input:focus, .message textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--sun); }
.message .btn { margin-top: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer: the savanna at the bottom of the page */
.foot { background: var(--acacia); color: #f4f8ee; padding: 26px 0 40px; text-align: center; font-size: 1rem; margin-top: 30px; position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -29px; height: 30px; background: var(--grass-dark) no-repeat center / 100% 100%; }
.foot a { color: #fff; }
.foot p { margin: 4px 0; }
.foot__star { color: var(--sun); font-size: 1.4rem; }
.social { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.small { font-size: .92rem; color: var(--muted); }
.foot .small { color: #e4eddb; }

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