/* Animal Adventures A to Z — site styles, v2 (2026-11-13).
   Direction: an independent children's publisher. White page, one sturdy grotesk, flat colour from the three covers,
   and real photographs of the books doing the work. No tape, no tilted snapshots, no handwriting fonts, no stickers. */
:root {
  --bg: #ffffff; --soft: #f5f3ef; --ink: #1e1b18; --ink-2: #5f5850; --line: #e6e1d9;
  --orange: #e2682a; --orange-d: #c4561d;
  --climb: #c0522e; --surf: #1d8484; --ski: #3b66ad;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-d); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ski); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; display: block; }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.section { padding-block: 88px; }
.section.soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head > p { max-width: 52ch; margin: 0; color: var(--ink-2); }
.c-climb { --c: var(--climb); } .c-surf { --c: var(--surf); } .c-ski { --c: var(--ski); }

/* Mockup only */
.mock-bar { background: var(--ink); color: #fff; text-align: center; font-size: 14px; padding: 7px 14px; }
.mock-bar a { color: #ffd27a; font-weight: 700; }
.note { border: 1px solid #e7d6a3; background: #fffaeb; padding: 14px 16px; font-size: 15.5px; color: #5c4d22; border-radius: 6px; }
.note b:first-child { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

/* Header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top-in { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand b { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand span { color: var(--ink-2); font-size: 15px; margin-left: 2px; }
#nav { display: flex; align-items: center; gap: 2px; }
#nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; color: var(--ink); }
#nav a:hover { color: var(--orange-d); }
#nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
#nav a.btn { margin-left: 10px; color: #fff; text-decoration: none; }
.nav-toggle { display: none; font: 600 16px var(--font); background: none; border: 1.5px solid var(--ink); border-radius: 8px; padding: 7px 14px; color: var(--ink); }
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px max(20px, env(safe-area-inset-left, 0px)) 18px; }
  #nav.open { display: flex; }
  #nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  #nav a.btn { margin: 14px 0 0; text-align: center; border: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 16px/1 var(--font); color: #fff; background: var(--ink); border: 0; border-radius: 10px; padding: 15px 22px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #3a342e; color: #fff; }
.btn.amz { background: var(--orange); }
.btn.amz:hover { background: var(--orange-d); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: var(--soft); }
.btn-sm { font-size: 15px; padding: 11px 16px; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Photos and pages */
.photo { margin: 0; border-radius: 6px; overflow: hidden; background: var(--soft); }
.photo img { width: 100%; }
.spread { margin: 0; }
.spread img { width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 30px rgba(0, 0, 0, .10); }
.spread figcaption { font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.cover-flat { box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 8px 22px rgba(0, 0, 0, .10); }

/* Hero */
.hero { padding-block: 56px 72px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .btns { margin-top: 30px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 32px; } }

/* Book rows */
.book-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-block: 44px; border-top: 1px solid var(--line); }
.book-row:first-of-type { border-top: 0; }
.book-row.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.book-row.flip .photo { order: 2; }
.book-row .label { font-weight: 700; color: var(--c); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.book-row h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 6px; }
.book-row .sub { color: var(--ink-2); font-size: 18px; margin-bottom: 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; }
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink)); }
@media (max-width: 900px) { .book-row, .book-row.flip { grid-template-columns: 1fr; gap: 24px; } .book-row.flip .photo { order: 0; } }

/* Two-up feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature dl { margin: 0; }
.feature dt { font-weight: 700; font-size: 19px; margin-top: 18px; }
.feature dt:first-child { margin-top: 0; }
.feature dd { margin: 2px 0 0; color: var(--ink-2); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 28px; } }

/* Map */
.mapwrap { margin: 0; }
.map-scroll { overflow-x: auto; border-radius: 6px; }
.map { width: 100%; height: auto; display: block; }
.map .pin circle.dot { stroke: #fff; stroke-width: 2; }
.map .pin text { font: 800 12px var(--font); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map .pin .lead { stroke: var(--ink); stroke-width: 1; opacity: .45; }
.map .pin .true { fill: var(--ink); }
.map a:hover circle.dot, .map a:focus circle.dot { stroke: var(--ink); }
.map a:focus { outline: none; }
.map .pin.hi circle.dot { stroke: var(--ink); stroke-width: 3; }
.map .pin.hi text { font-size: 16px; }
.mapwrap[data-show="climb"] .pin:not(.p-climb), .mapwrap[data-show="surf"] .pin:not(.p-surf), .mapwrap[data-show="ski"] .pin:not(.p-ski) { opacity: .1; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: 600 15px var(--font); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.map-caption { min-height: 28px; font-size: 16px; margin: 12px 0 0; color: var(--ink-2); }
@media (max-width: 640px) { .mapwrap > .map-scroll .map { min-width: 680px; } }

/* Ages */
.ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ages figure { margin: 0; }
.ages img { border-radius: 6px; }
.ages b { display: block; margin-top: 12px; font-size: 18px; }
.ages span { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 860px) { .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Signup */
.signup-band { background: var(--soft); border-radius: 10px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input { flex: 1 1 240px; min-width: 0; font: 17px var(--font); padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.signup input:focus { border-color: var(--ink); }
.signup .fine { flex-basis: 100%; font-size: 13.5px; margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .signup-band { grid-template-columns: 1fr; padding: 26px; gap: 20px; } }

/* Book page */
.book-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-block: 36px 32px; }
.book-hero .label { font-weight: 700; color: var(--c); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.book-hero .sub { font-size: 20px; color: var(--ink-2); margin-top: -4px; }
.desc ul { padding-left: 20px; }
.desc p:first-child b { font-weight: 700; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 24px; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .book-hero { grid-template-columns: 1fr; gap: 28px; } }
.look { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .look { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .look figure { scroll-snap-align: start; } }
.az-list { columns: 3 240px; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.az-list li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: baseline; }
.az-list b { color: var(--c); font-weight: 800; font-size: 18px; }
.az-list a { text-decoration: none; font-weight: 600; }
.az-list a:hover { text-decoration: underline; }
.az-list span { display: block; font-size: 14.5px; color: var(--ink-2); }
.wordlist { columns: 3 260px; column-gap: 40px; }
.wordlist p { break-inside: avoid; margin: 0 0 14px; font-size: 16px; color: var(--ink-2); }
.wordlist b { color: var(--ink); }
.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 760px; }
.series a { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; text-decoration: none; }
.series b { font-size: 20px; display: block; }
@media (max-width: 640px) { .series { grid-template-columns: 1fr; } }

/* Place page */
.crumbs { font-size: 14.5px; color: var(--ink-2); padding-top: 24px; }
.crumbs a { color: var(--ink-2); }
.place-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin: 22px 0 36px; }
.bigletter { font-weight: 900; font-size: clamp(96px, 12vw, 150px); line-height: .8; color: var(--c); letter-spacing: -.04em; }
.place-head h1 { margin: 0 0 6px; }
.place-head .where { font-size: 21px; color: var(--ink-2); }
.say { display: inline-block; font-size: 15px; color: var(--ink-2); margin: 10px 18px 0 0; }
.say b { color: var(--ink); }
.place-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .place-grid { grid-template-columns: 1fr; gap: 32px; } .place-head { grid-template-columns: 1fr; gap: 10px; } }
.word-block { border-top: 3px solid var(--c); padding-top: 18px; margin-top: 36px; }
.word-block .term { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.side { display: grid; gap: 24px; }
.side .photo { border-radius: 6px; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.prevnext a { text-decoration: none; }
.prevnext small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; }
.prevnext b { font-size: 18px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 22px; }
.az a { width: 34px; height: 34px; display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 6px; color: var(--ink-2); }
.az a:hover { background: var(--soft); color: var(--ink); }
.az a[aria-current="page"] { background: var(--c); color: #fff; }

/* Words */
.dict { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 40px; }
.entry { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.entry b { font-size: 19px; }
.entry span { color: var(--ink-2); }
.entry a { font-size: 14px; color: var(--c); }

/* Generic */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.product { border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.price { font-weight: 800; font-size: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field select, .field textarea { font: 16px var(--font); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 16px 0 24px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--soft); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.st { display: inline-block; font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.st.ok { background: #e3f1e6; color: #22603a; } .st.ph { background: #fff1d6; color: #7a5310; } .st.p2 { background: #e4ecf8; color: #2b4f8a; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }
.flag { display: inline-block; font: 700 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 999px; padding: 6px 10px; }

/* Footer */
.foot { margin-top: 40px; border-top: 1px solid var(--line); padding-block: 52px 32px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot a { text-decoration: none; display: block; padding: 3px 0; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot .brandline { font-weight: 800; font-size: 19px; }
.foot .signup { margin-top: 14px; }
.foot-small { font-size: 13.5px; color: var(--ink-2); margin-top: 32px; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:first-child { grid-column: 1 / -1; } }
.brand { white-space: nowrap; }
@media (max-width: 480px) { .brand span { display: none; } .brand b { font-size: 17px; } }

/* ---------- v3: more fun (the books' own characters and lettering, a letter game, a colour per book) ---------- */
:root { --display: 'Bricolage Grotesque', 'Schibsted Grotesk', system-ui, sans-serif; --hero: #fff2e6; --climb-tint: #e5f2f0; --surf-tint: #fde8db; --ski-tint: #ece8f8; }
h1, h2, .bigletter { font-family: var(--display); letter-spacing: -.025em; }
.btn { border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30, 27, 24, .14); }
.btn-sm { border-radius: 999px; }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.center-head .lede { margin-inline: auto; }

.hero.fun { background: var(--hero); padding-block: 72px 110px; overflow: hidden; }
.hero.fun h1 { font-size: clamp(40px, 5.4vw, 68px); }
.w-climb { color: var(--climb); } .w-surf { color: var(--surf); } .w-ski { color: var(--ski); }
.hero-photo { position: relative; margin-top: 60px; }
.hero-photo .photo { position: relative; z-index: 2; border-radius: 18px; box-shadow: 0 24px 60px rgba(90, 55, 25, .20); }
.critter { position: absolute; pointer-events: none; height: auto; animation: bob 4.5s ease-in-out infinite alternate; }
.critter.c-koala { width: 27%; right: 9%; bottom: 100%; margin-bottom: -6.6%; z-index: 1; animation-duration: 5.5s; }
.critter.c-kiwi { width: 23%; left: -7%; bottom: -15%; z-index: 3; animation-delay: -2s; }
@keyframes bob { from { translate: 0 0; rotate: -1.5deg; } to { translate: 0 -8px; rotate: 1.5deg; } }
@media (max-width: 900px) { .hero-photo { margin-top: 70px; } .critter.c-kiwi { left: -2%; bottom: -12%; } }

.letters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 820px; margin: 0 auto; }
.letters button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--soft); font: 800 20px var(--display); color: var(--ink); cursor: pointer; transition: transform .12s ease, background .12s ease; }
.letters button:hover { transform: scale(1.12); background: #ece6dc; }
.letters button[aria-pressed="true"] { background: var(--orange); color: #fff; transform: scale(1.12); }
.letter-result { text-align: center; margin-top: 30px; }
.letter-result .big { font: 800 clamp(96px, 14vw, 170px)/.85 var(--display); color: var(--orange); }
.letter-result .line { font: 800 clamp(24px, 3.2vw, 36px)/1.2 var(--display); margin: 14px auto 30px; max-width: 760px; letter-spacing: -.02em; }
.trio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; max-width: 980px; margin: 0 auto; }
.trio-cards a { display: block; border-radius: 20px; padding: 22px 24px 24px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.trio-cards a.c-climb { background: var(--climb-tint); } .trio-cards a.c-surf { background: var(--surf-tint); } .trio-cards a.c-ski { background: var(--ski-tint); }
.trio-cards a:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(30, 27, 24, .10); color: var(--ink); }
.trio-cards small { color: var(--c); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.trio-cards b { display: block; font: 800 27px/1.1 var(--display); margin: 6px 0 4px; letter-spacing: -.02em; }
.trio-cards span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .trio-cards { grid-template-columns: 1fr; } }

.book-panel { position: relative; border-radius: 28px; padding: 44px; margin-block: 30px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.book-panel.c-climb { background: var(--climb-tint); } .book-panel.c-surf { background: var(--surf-tint); } .book-panel.c-ski { background: var(--ski-tint); }
.book-panel.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.book-panel.flip .photo { order: 2; }
.book-panel .photo { border-radius: 16px; }
.book-panel .label { font-weight: 700; color: var(--c); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.book-panel h3 { margin: 0; }
.book-panel .lettering { width: min(380px, 90%); margin: 0 0 10px -6px; }
.book-panel .sub { color: var(--ink-2); font-size: 18px; margin-bottom: 14px; }
.book-panel .critter { width: 150px; z-index: 3; }
.critter.c-narwhal { right: 3%; bottom: -40px; width: 140px; rotate: 10deg; }
.critter.c-jaguar { left: 2%; bottom: -34px; }
@media (max-width: 900px) { .book-panel, .book-panel.flip { grid-template-columns: 1fr; padding: 26px; gap: 22px; } .book-panel.flip .photo { order: 0; } .book-panel .critter { width: 110px; } .critter.c-narwhal { right: 4%; bottom: -30px; width: 100px; } .critter.c-jaguar { left: auto; right: 4%; bottom: -26px; } }

.signup-band { position: relative; background: var(--surf-tint); }
.critter.c-octopus { width: 150px; right: 30px; top: -96px; z-index: 2; animation-duration: 3.8s; }
@media (max-width: 860px) { .critter.c-octopus { width: 110px; right: 10px; top: -78px; } }

.book-hero .lettering { width: min(420px, 92%); margin: 6px 0 4px -6px; }
.book-hero .title-text { font-size: 26px; letter-spacing: -.01em; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .critter { animation: none; } .btn:hover, .letters button:hover, .trio-cards a:hover { transform: none; } }

#books, .hero.fun, main { overflow-x: clip; }

/* ---------- v4: headline switcher, gift ideas, about the author ---------- */
.mock-btn { font: 700 13px var(--font); color: #1e1b18; background: #ffd27a; border: 0; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.occ-card { display: grid; gap: 12px; text-decoration: none; background: var(--bg); border-radius: 20px; padding: 12px 12px 18px; border: 1.5px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.occ-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(30, 27, 24, .10); color: var(--ink); }
.occ-card .photo { border-radius: 12px; aspect-ratio: 3 / 2; }
.occ-card .photo img { height: 100%; object-fit: cover; }
.occ-card > span { padding: 0 6px; display: grid; gap: 4px; }
.occ-card b { font: 800 22px var(--display); letter-spacing: -.02em; }
.occ-card .muted { font-size: 15.5px; }
.small-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .small-grid { grid-template-columns: 1fr; } }
.book-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.book-mini { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; border-radius: 20px; padding: 16px; }
.book-mini.c-climb { background: var(--climb-tint); } .book-mini.c-surf { background: var(--surf-tint); } .book-mini.c-ski { background: var(--ski-tint); }
.book-mini img { border-radius: 4px; }
.book-mini b { display: block; font: 800 19px/1.2 var(--display); letter-spacing: -.01em; }
.book-mini .muted { display: block; margin: 2px 0 12px; }
@media (max-width: 900px) { .book-minis { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.gifts-hero .hero-photo, .occ-hero .hero-photo { margin-top: 0; }
.critter.c-jaguar-hero { width: 24%; left: -9%; bottom: -12%; z-index: 3; }
.occ-hero { background: var(--hero); padding-block: 40px 80px; margin-top: 18px; overflow: hidden; }
.occ-hero h1 { font-size: clamp(36px, 4.6vw, 58px); }
.occ-hero .photo { border-radius: 18px; box-shadow: 0 20px 50px rgba(90, 55, 25, .18); position: relative; z-index: 2; }
.critter.c-occ { width: 22%; right: -5%; bottom: -14%; z-index: 3; }
.critter.c-occ-koala { bottom: auto; top: auto; right: 8%; bottom: 100%; margin-bottom: -5.4%; z-index: 1; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 22px; }
.why b { font: 800 22px/1.2 var(--display); letter-spacing: -.02em; display: block; margin-bottom: 6px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 18px; } }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.note-card { margin: 0; background: var(--surf-tint); border-radius: 18px; padding: 22px 22px 16px; display: grid; gap: 14px; align-content: space-between; }
.note-card:nth-child(3n+2) { background: var(--ski-tint); } .note-card:nth-child(3n) { background: var(--climb-tint); }
.note-card blockquote { margin: 0; font: 700 21px/1.35 var(--display); letter-spacing: -.01em; }
.copy { justify-self: start; font: 700 14px var(--font); background: #fff; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--ink); }
.copy.done { background: var(--ink); color: #fff; }
.about-hero .hero-in { align-items: center; }
.portrait-wrap { position: relative; max-width: 420px; justify-self: center; width: 100%; margin-top: 70px; }
.portrait { position: relative; z-index: 2; aspect-ratio: 4 / 5; border-radius: 22px; background: repeating-linear-gradient(135deg, #f3e3d2 0 14px, #f7ebde 14px 28px); display: grid; place-content: center; text-align: center; gap: 8px; padding: 28px; color: var(--ink-2); box-shadow: 0 20px 50px rgba(90, 55, 25, .15); }
.portrait span { font: 800 26px var(--display); color: var(--ink); }
.critter.c-koala-portrait { width: 44%; right: 10%; bottom: 100%; margin-bottom: -14%; z-index: 1; }
.fill { background: #ffe6cc; color: #8a3d0f; border-bottom: 2px dashed #e2682a; padding: 0 4px; border-radius: 4px; }
.narrow-prose { max-width: 760px; }
.narrow-prose p { font-size: 19px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stats b { display: block; font: 800 clamp(48px, 6vw, 72px)/1 var(--display); letter-spacing: -.03em; color: var(--orange); }
.stats span { color: var(--ink-2); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portrait.has-photo { padding: 0; margin: 0; overflow: hidden; background: none; display: block; }
.portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait-cap { position: relative; z-index: 2; text-align: center; font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.author-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.author-strip figure { margin: 0; }
.author-strip img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.author-strip figcaption { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 760px) { .author-strip { grid-template-columns: 1fr; } }

/* ---------- v6: 3D book preview ---------- */
.flip { max-width: 1080px; margin: 0 auto; outline: none; }
.flip:focus-visible { outline: 3px solid var(--ski); outline-offset: 8px; border-radius: 20px; }
.flip-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.flip-tabs .chip[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.flip-stage { position: relative; border-radius: 24px; background: radial-gradient(ellipse at 50% 40%, #fff7ee 0%, var(--hero) 60%, #f6e3cf 100%); overflow: hidden; }
.flip-stage canvas { display: block; width: 100%; touch-action: pan-y; cursor: grab; }
.flip-stage canvas:active { cursor: grabbing; }
.flip-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .2s; }
.flip.loading .flip-loading { opacity: 1; }
.flip-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 16px; }
.flip-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); font: 700 20px var(--font); color: var(--ink); cursor: pointer; }
.flip-btn:disabled { opacity: .3; cursor: default; }
.flip-status { min-width: 170px; text-align: center; font: 800 20px var(--display); }
.flip-end { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; text-align: center; color: var(--ink-2); }
.flip-end[hidden], .flip-buy[hidden] { display: none; }
