/* ==========================================================================
   COLORS ARE EVERYWHERE  |  Rachel Rioz
   Watercolor paper, rainbow ink, a book you can turn.
   ========================================================================== */

:root {
  --paper: #FFFBF2;
  --paper-2: #FBF3E3;
  --paper-3: #F5EBD6;
  --ink: #1F3A5C;
  --ink-2: #44566E;
  --muted: #7B8597;
  --line: rgba(31, 58, 92, 0.12);

  --red: #E04A3A;
  --orange: #F08A24;
  --yellow: #E8AE17;
  --green: #4E9F43;
  --blue: #2E86C8;
  --purple: #8B5BB8;
  --pink: #E0679A;
  --sky: #CFE6F5;

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

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad: clamp(20px, 5vw, 72px);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

html, body { overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* paper tooth over everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .4 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 30px; font-weight: 800; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ==================== TYPE ==================== */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--hand); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px);
  color: var(--blue); line-height: 1; margin-bottom: 14px;
}
.kicker::before { content: ''; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple)); }
.h2 {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--ink);
}
.h2 em { font-style: italic; font-weight: 600; color: var(--c, var(--blue)); }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 58ch; }
.head { margin-bottom: clamp(36px, 5vh, 56px); }
.head--center { text-align: center; }
.head--center .lede { margin: 18px auto 0; }
.head .lede, .h2 + .lede { margin-top: 18px; }

/* ==================== BUTTONS ==================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 800; font-size: 17px; letter-spacing: 0.01em;
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--ease), background-color 0.3s ease, color 0.3s ease;
  isolation: isolate; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--paint { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 58, 92, 0.6); }
.btn--paint::before {
  content: ''; position: absolute; inset: -2px; z-index: -1; opacity: 0;
  background: linear-gradient(100deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
  background-size: 200% 100%; transition: opacity 0.4s ease, background-position 1.2s var(--ease);
}
.btn--paint:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 16px 34px -12px rgba(31, 58, 92, 0.55); }
.btn--paint:hover::before { opacity: 1; background-position: 100% 0; }
.btn--paper { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 8px 20px -12px rgba(31, 58, 92, 0.3); }
.btn--paper:hover { transform: translateY(-3px) rotate(1deg); box-shadow: inset 0 0 0 2px var(--blue), 0 14px 30px -14px rgba(46, 134, 200, 0.5); color: var(--blue); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--blue);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==================== NAV ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad);
  transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s var(--ease);
}
.nav.is-stuck {
  padding-top: 10px; padding-bottom: 10px;
  background: rgba(255, 251, 242, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(31, 58, 92, 0.35);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 14px; margin-left: -14px; border-radius: 999px; background: rgba(255, 251, 242, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 20px -12px rgba(31, 58, 92, 0.35); transition: background-color 0.4s ease, box-shadow 0.4s ease; font-family: var(--display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 20px; color: var(--ink); white-space: nowrap; }
.nav__dots { display: inline-grid; grid-template-columns: repeat(3, 7px); gap: 3px; transform: rotate(-8deg); }
.nav__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.nav__links a { position: relative; font-weight: 800; font-size: 16px; color: var(--ink-2); padding: 8px 2px; transition: color 0.3s ease; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--c, var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line); position: relative;
}
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__toggle span:nth-child(1) { top: 19px; }
.nav__toggle span:nth-child(2) { top: 27px; }
.menu-open .nav__toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-block; }
}
@media (max-width: 520px) {
  .nav__cta { display: none; }
  .nav__brand { font-size: 18px; }
}

.mnav {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto;
  display: flex; align-items: center; padding: 100px var(--pad) 40px;
  background: var(--paper);
  clip-path: circle(0% at calc(100% - 46px) 40px); visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s linear 0.8s;
}
.mnav.is-open { clip-path: circle(150% at calc(100% - 46px) 40px); visibility: visible; transition: clip-path 0.9s var(--ease); }
.mnav__inner { width: 100%; max-width: 520px; margin: 0 auto; }
.mnav__links { display: grid; gap: 4px; }
.mnav__links a {
  display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 2px dashed var(--line);
  font-family: var(--display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: clamp(30px, 8vw, 44px); line-height: 1.1;
}
.mnav__links a i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); flex: none; }
.mnav__links a[aria-current="page"] { color: var(--blue); }
.mnav__foot { margin-top: 30px; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (min-width: 941px) { .mnav { display: none; } }

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  padding: 110px var(--pad) clamp(120px, 17vw, 230px);
}
.hero__wash { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.hero__wash span {
  position: absolute; border-radius: 50%; filter: blur(50px); mix-blend-mode: multiply; opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__wash span:nth-child(1) { width: 46vw; height: 40vw; left: 26%; top: 6%; background: radial-gradient(circle, #CFE6F5 0%, transparent 70%); }
.hero__wash span:nth-child(2) { width: 30vw; height: 30vw; left: 12%; top: 34%; background: radial-gradient(circle, #FBD9C4 0%, transparent 70%); animation-delay: -4s; }
.hero__wash span:nth-child(3) { width: 32vw; height: 28vw; right: 10%; top: 30%; background: radial-gradient(circle, #E5D8F3 0%, transparent 70%); animation-delay: -8s; }
.hero__wash span:nth-child(4) { width: 40vw; height: 26vw; left: 30%; bottom: 4%; background: radial-gradient(circle, #DDEFC9 0%, transparent 70%); animation-delay: -12s; }
.hero__wash span:nth-child(5) { width: 22vw; height: 22vw; left: 44%; top: 2%; background: radial-gradient(circle, #FCEBB0 0%, transparent 70%); animation-delay: -2s; }
@keyframes drift { to { transform: translate(3vw, -2vw) scale(1.08); } }

.hero__rainbow {
  position: absolute; z-index: -2; left: 50%; top: clamp(70px, 11vh, 120px);
  width: min(900px, 90vw); transform: translateX(-50%);
  fill: none; stroke-width: 14; stroke-linecap: round; opacity: 0.26; filter: url(#wc-edge);
}

.corner { position: absolute; z-index: 2; pointer-events: none; will-change: transform; }
.corner__in { position: relative; will-change: transform; }
.corner img.layer { width: 100%; height: auto; }
.corner--tl { top: 0; left: 0; width: clamp(240px, 37vw, 640px); }
.corner--tr { top: 0; right: 0; width: clamp(210px, 32vw, 560px); }
.corner--bl { bottom: -2px; left: 0; width: clamp(300px, 44vw, 760px); z-index: 3; }
.corner--br { bottom: -2px; right: 0; width: clamp(300px, 44vw, 760px); z-index: 3; }

.critter { position: absolute; height: auto; filter: drop-shadow(0 6px 8px rgba(60, 40, 10, 0.18)); }
.critter--squirrel { width: 21%; left: 9%; bottom: 58%; }
.critter--rabbit { width: 10.5%; left: 22%; bottom: 43%; }
.critter--fawn { width: 17%; left: 38%; bottom: 50%; }
.critter--deer { width: 30%; left: 56%; bottom: 56%; }

.hero__content { position: relative; z-index: 4; text-align: center; max-width: 820px; }
.hero__kicker { font-family: var(--hand); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); color: var(--green); margin-bottom: 6px; }
.hero__title {
  font-family: var(--display); font-weight: 900; line-height: 0.86;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  letter-spacing: -0.01em; filter: url(#wc-letter);
}
.t-colors { display: block; font-size: clamp(76px, 12.4vw, 184px); }
.t-letter, .t-every { padding: 0.06em 0.03em 0.2em; margin: -0.06em -0.03em -0.2em; }
.t-letter {
  display: inline-block; color: var(--c);
  background: radial-gradient(110% 90% at 30% 22%, color-mix(in srgb, var(--c) 62%, #fff) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 82%, #000) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transform-origin: 50% 80%;
}
.t-are {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-style: italic; font-weight: 600; font-size: clamp(30px, 4vw, 54px); color: #4E7D3A; line-height: 1.1; margin: 4px 0 6px;
}
.t-are svg { width: clamp(46px, 6vw, 84px); height: auto; flex: none; }
.t-every {
  display: block; font-size: clamp(56px, 9.2vw, 136px); color: #1F4F86;
  background: radial-gradient(120% 120% at 30% 10%, #3D74B8 0%, #1F4F86 55%, #183C66 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__by { margin-top: clamp(26px, 3.4vh, 38px); font-weight: 900; letter-spacing: 0.26em; text-transform: uppercase; font-size: 14px; color: var(--ink-2); }
.hero__lede { margin: 14px auto 0; max-width: 46ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: clamp(24px, 3.4vh, 34px); }

.butterfly { position: absolute; z-index: 5; width: 26px; pointer-events: none; offset-rotate: auto 90deg; animation: flyby linear infinite; }
.butterfly svg { width: 100%; height: auto; display: block; }
.butterfly .w { transform-origin: 50% 50%; animation: flap 0.28s ease-in-out infinite alternate; }
.butterfly .w--r { transform-origin: 50% 50%; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(0.25); } }
.butterfly--1 { top: 22%; left: 18%; offset-path: path('M0,0 C120,-80 260,40 380,-30 S640,-60 760,20'); animation-duration: 16s; }
.butterfly--2 { top: 58%; right: 22%; width: 22px; offset-path: path('M0,0 C-90,-60 -200,30 -300,-40 S-480,-10 -560,-90'); animation-duration: 19s; animation-delay: -6s; }
.butterfly--3 { top: 38%; left: 60%; width: 18px; offset-path: path('M0,0 C60,-90 160,-40 210,-120 S330,-160 420,-90'); animation-duration: 14s; animation-delay: -3s; }
@keyframes flyby {
  0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; }
}

.hero__cue { position: absolute; z-index: 6; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-family: var(--hand); font-size: 20px; color: var(--ink-2); }
.hero__cue i { width: 26px; height: 40px; border-radius: 16px; border: 2.5px solid var(--ink-2); position: relative; }
.hero__cue i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 5px; height: 8px; margin-left: -2.5px; border-radius: 3px; background: var(--red); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .hero { padding-top: 120px; align-items: center; }
  .corner--tl { width: 62vw; }
  .corner--tr { width: 52vw; }
  .corner--bl { width: 78vw; }
  .corner--br { width: 78vw; }
  .critter--fawn { display: none; }
  .hero__cue { display: none; }
  .butterfly--3 { display: none; }
}

/* ==================== SECTIONS ==================== */
.sec { position: relative; padding: clamp(90px, 13vh, 150px) 0; overflow-x: clip; }
.sec--tint { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 18%, var(--paper-2) 82%, var(--paper) 100%); }
.sec--sky { background: linear-gradient(180deg, var(--paper) 0%, #EEF6FB 20%, #EEF6FB 80%, var(--paper) 100%); }
.blot {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(46px); opacity: 0.5; mix-blend-mode: multiply;
}

/* ==================== FLIPBOOK ==================== */
.fb { position: relative; --fb-h: clamp(340px, 70vh, 760px); }
.fb__stage {
  position: relative; height: var(--fb-h);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 700px) { .fb { --fb-h: calc((100vw - 2 * var(--pad)) / 1.1 + 16px); } }
.fb__shift { position: relative; transition: transform 0.95s var(--ease); will-change: transform; }
.fb__book { position: relative; margin: 0 auto; }
.fb__glow {
  position: absolute; left: 6%; right: 6%; bottom: -24px; height: 46px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(60, 45, 20, 0.28), transparent 70%); filter: blur(8px);
}

/* StPageFlip core (the library ships these as a separate file) */
.stf__parent { position: relative; display: block; box-sizing: border-box; transform: translateZ(0); touch-action: pan-y; }
.stf__wrapper { position: relative; width: 100%; height: 100%; box-sizing: border-box; }
.stf__parent canvas { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
.stf__block { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; perspective: 2000px; }
.stf__item { display: none; position: absolute; transform-style: preserve-3d; }
.stf__outerShadow, .stf__innerShadow, .stf__hardShadow, .stf__hardInnerShadow { position: absolute; left: 0; top: 0; }

.fb__page { background: #FFFDF7; overflow: hidden; user-select: none; -webkit-user-select: none; box-shadow: 0 24px 40px -26px rgba(50, 35, 10, 0.5); }
.fb__page::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, #FBF5E8 30%, #FFFDF8 50%, #FBF5E8 70%) 0 0 / 250% 100%;
  animation: shimmer 1.6s linear infinite;
}
.fb__page.is-ready::before { display: none; }
@keyframes shimmer { to { background-position: -250% 0; } }
.fb__page img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.fb__page.is-ready img { opacity: 1; }
/* gutter shading: the fold of the spread */
.fb__page::after { content: ''; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; }
.fb__page--left::after { right: 0; background: linear-gradient(270deg, rgba(40, 30, 15, 0.22), rgba(40, 30, 15, 0.06) 40%, transparent); }
.fb__page--right::after { left: 0; background: linear-gradient(90deg, rgba(40, 30, 15, 0.2), rgba(40, 30, 15, 0.05) 40%, transparent); }
.fb__page[data-density="hard"]::after { width: 3%; opacity: 0.7; }

.fb__loader {
  position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 18px;
  text-align: center; transition: opacity 0.6s ease;
}
.fb.is-ready .fb__loader { opacity: 0; pointer-events: none; }
.fb__drops { display: flex; gap: 8px; }
.fb__drops i { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); animation: drop 1.2s var(--ease) infinite; }
.fb__drops i:nth-child(2) { animation-delay: 0.1s; } .fb__drops i:nth-child(3) { animation-delay: 0.2s; }
.fb__drops i:nth-child(4) { animation-delay: 0.3s; } .fb__drops i:nth-child(5) { animation-delay: 0.4s; } .fb__drops i:nth-child(6) { animation-delay: 0.5s; }
@keyframes drop { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 40% { transform: rotate(-45deg) translate(6px, -6px); } }
.fb__load-text { font-family: var(--hand); font-size: 26px; color: var(--ink-2); }
.fb__load { width: 180px; height: 6px; border-radius: 6px; background: var(--paper-3); overflow: hidden; }
.fb__load i { display: block; height: 100%; transform: scaleX(0.05); transform-origin: left; transition: transform 0.4s var(--ease); background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple)); }
.fb.is-error .fb__drops, .fb.is-error .fb__load { display: none; }

.fb__hint {
  position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 16px; border-radius: 30px; background: #fff; box-shadow: 0 8px 20px -10px rgba(31, 58, 92, 0.4);
  font-weight: 800; font-size: 14px; color: var(--ink-2);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}
.fb__hint.is-gone { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
.fb__hint svg { width: 18px; height: 18px; color: var(--orange); }

.fb__bar {
  position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.6vw, 16px);
  margin: 46px auto 0; width: fit-content; padding: 10px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 14px 34px -18px rgba(31, 58, 92, 0.4);
}
.fb__btn {
  position: relative; display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink);
  transition: transform 0.4s var(--spring), background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.fb__btn svg { width: 22px; height: 22px; }
.fb__btn:hover:not(:disabled) { transform: scale(1.08); background: var(--sky); color: var(--blue); }
.fb__btn:disabled { opacity: 0.35; cursor: default; }
.fb__btn--go { width: 56px; height: 56px; background: var(--ink); color: #fff; }
.fb__btn--go:hover:not(:disabled) { background: var(--blue); color: #fff; }
.fb__btn.is-on { background: #FFF1D6; color: var(--orange); }
.fb__meta { min-width: 168px; display: grid; justify-items: center; gap: 7px; padding: 0 6px; }
.fb__count { font-weight: 900; font-size: 15px; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; }
.fb__track { width: 100%; height: 5px; border-radius: 5px; background: var(--paper-3); overflow: hidden; }
.fb__track i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple)); }
.fb__sep { width: 2px; height: 28px; border-radius: 2px; background: var(--line); }
@media (max-width: 560px) {
  .fb__bar { width: 100%; justify-content: space-between; gap: 4px; padding: 7px; margin-top: 34px; }
  .fb__btn { width: 40px; height: 40px; }
  .fb__btn svg { width: 20px; height: 20px; }
  .fb__btn--go { width: 46px; height: 46px; }
  .fb__meta { flex: 1; min-width: 0; padding: 0 2px; }
  .fb__count { font-size: 12.5px; }
  .fb__sep { display: none; }
  .fb__hint { font-size: 13px; }
}

.fb__thumbs {
  position: absolute; inset: -12px -12px 70px; z-index: 30; overflow: auto;
  padding: 26px; border-radius: 26px;
  background: rgba(255, 251, 242, 0.97); box-shadow: 0 30px 70px -30px rgba(31, 58, 92, 0.5), inset 0 0 0 2px var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.fb__thumbs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fb__thumbs-title { font-family: var(--hand); font-weight: 700; font-size: 28px; color: var(--blue); }
.fb__thumbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 14px; }
.fb__thumb { border: 0; background: none; cursor: pointer; display: grid; gap: 6px; text-align: center; }
.fb__thumb-img { display: block; aspect-ratio: 1.1; border-radius: 8px; overflow: hidden; background: var(--paper-3); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.35); transition: transform 0.4s var(--spring), box-shadow 0.3s ease; }
.fb__thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.fb__thumb-n { font-weight: 800; font-size: 13px; color: var(--muted); }
.fb__thumb:hover .fb__thumb-img { transform: translateY(-4px) rotate(-1.5deg); }
.fb__thumb.is-current .fb__thumb-img { box-shadow: 0 0 0 3px var(--blue), 0 10px 20px -10px rgba(46, 134, 200, 0.6); }
.fb__thumb.is-current .fb__thumb-n { color: var(--blue); }

/* full screen */
.fb.is-full { background: var(--paper); padding: 70px 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.fb.is-full .fb__stage { --fb-h: calc(100vh - 210px); }
.fb.is-full .fb__thumbs { inset: 20px 20px 100px; }

/* ==================== LOOK INSIDE SECTION ==================== */
.look { overflow: hidden; }
.look .blot--a { width: 520px; height: 420px; left: -120px; top: 120px; background: #FBD9C4; }
.look .blot--b { width: 560px; height: 460px; right: -160px; bottom: 60px; background: #CFE6F5; }
.look__more { text-align: center; margin-top: 30px; }

/* ==================== COLOR HUNT ==================== */
.hunt__frame {
  position: relative; aspect-ratio: 2172 / 724; border-radius: clamp(18px, 2.4vw, 34px); overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 40px 80px -46px rgba(31, 58, 92, 0.55), 0 0 0 10px #fff, 0 0 0 12px var(--line);
}
.hunt__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hunt__canvas--back { visibility: hidden; }
.hunt__result { margin-top: 30px; text-align: center; font-family: var(--hand); font-weight: 600; font-size: clamp(24px, 2.4vw, 30px); color: var(--ink-2); min-height: 1.5em; }
.hunt__result b { font-weight: 700; color: var(--c, var(--ink)); }
.pots { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 22px); margin-top: 26px; }
.pot { appearance: none; border: 0; background: none; cursor: pointer; display: grid; justify-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink-2); padding: 4px; }
.pot__blob {
  width: clamp(48px, 5vw, 62px); aspect-ratio: 1; border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 52%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 80%, #000) 100%);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.14), 0 10px 18px -8px color-mix(in srgb, var(--c) 75%, transparent);
  transition: transform 0.45s var(--spring), box-shadow 0.4s ease;
}
.pot:nth-child(even) .pot__blob { border-radius: 46% 54% 44% 56% / 55% 45% 55% 45%; }
.pot:hover .pot__blob { transform: translateY(-5px) rotate(-8deg); }
.pot[aria-pressed="true"] .pot__blob { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--c), 0 12px 22px -8px color-mix(in srgb, var(--c) 80%, transparent); }
.pot[aria-pressed="true"] { color: var(--ink); }
.pot--all .pot__blob { background: conic-gradient(from 20deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple), var(--pink), var(--red)); --c: var(--ink); }
@media (max-width: 700px) {
  .hunt__frame { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -40px rgba(31, 58, 92, 0.55), 0 0 0 6px #fff, 0 0 0 8px var(--line); }
  .hunt__canvas { object-position: 62% 50%; }
  .pots { gap: 6px 4px; }
  .pot { font-size: 13px; }
}

/* ==================== THE BOOK ==================== */
.book { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
.book3d { position: relative; perspective: 1600px; display: grid; place-items: center; padding: 30px 0; }
.book3d__in {
  position: relative; width: min(470px, 82vw); transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(4deg); transition: transform 0.9s var(--ease);
}
.book3d__in img {
  width: 100%; border-radius: 4px 12px 12px 4px;
  box-shadow: 7px 7px 0 -2px #F7EFE0, 14px 13px 0 -4px #EDE2CC, 21px 19px 0 -6px #E4D7BE, 40px 50px 70px -26px rgba(31, 40, 60, 0.5);
}
.book3d__in::after {
  content: ''; position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(255, 255, 255, 0.28) 2.2%, rgba(0, 0, 0, 0.05) 4.5%, transparent 9%),
              linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
}
.book3d__ring { position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle, #FCEBB0 0%, rgba(252, 235, 176, 0) 66%); filter: blur(10px); }
.book__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; list-style: none; }
.book__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: 15px; color: var(--ink-2); }
.book__facts li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.book__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.book p + p { margin-top: 14px; }

/* ==================== AUTHOR ==================== */
.author { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
@media (max-width: 860px) { .author { grid-template-columns: 1fr; text-align: center; } .author .lede { margin-left: auto; margin-right: auto; } }
.author__photo { position: relative; width: min(400px, 76vw); aspect-ratio: 1; margin: 0 auto; }
.author__blob {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%;
  background: radial-gradient(circle at 30% 25%, #FCEBB0, transparent 55%), radial-gradient(circle at 75% 70%, #CFE6F5, transparent 55%), radial-gradient(circle at 25% 80%, #FBD9C4, transparent 55%), #F7EFE0;
  display: grid; place-items: center;
  animation: morph 14s ease-in-out infinite alternate;
}
.author__blob img { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph { to { border-radius: 44% 56% 46% 54% / 56% 44% 56% 44%; } }
.author__mono {
  font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: clamp(110px, 13vw, 170px); line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--red), var(--orange) 25%, var(--yellow) 40%, var(--green) 55%, var(--blue) 75%, var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: url(#wc-letter);
}
.author__ring { position: absolute; inset: -16px; border-radius: 50%; border: 3px dashed rgba(46, 134, 200, 0.35); animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.author__critter { position: absolute; width: 30%; right: -6%; bottom: -2%; filter: drop-shadow(0 6px 8px rgba(60, 40, 10, 0.2)); }
.author__note { margin-top: 14px; font-family: var(--hand); font-size: 24px; color: var(--muted); }

/* ==================== BUY BAND ==================== */
.buy { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 16vh, 180px) 0; }
.buy__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 60%; }
.buy::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--paper) 0%, rgba(255, 251, 242, 0.2) 22%, rgba(255, 251, 242, 0.15) 78%, var(--paper) 100%); }
.buy__card {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(36px, 5vw, 60px) clamp(24px, 5vw, 64px); border-radius: 34px;
  background: rgba(255, 251, 242, 0.94); box-shadow: 0 40px 90px -40px rgba(31, 58, 92, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.buy__card .lede { margin: 16px auto 0; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; transition: transform 0.4s var(--spring), box-shadow 0.3s ease, color 0.3s ease; }
.store i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.store:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--c), 0 12px 24px -14px rgba(31, 58, 92, 0.45); }
.buy__more { margin-top: 26px; }

/* ==================== FOOTER ==================== */
.foot { position: relative; overflow: hidden; padding: 90px 0 40px; text-align: center; }
.foot__corner { position: absolute; bottom: -2px; width: clamp(220px, 30vw, 460px); pointer-events: none; opacity: 0.95; }
.foot__corner--l { left: 0; }
.foot__corner--r { right: 0; }
.foot__title { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.foot__title span { color: var(--c); }
.foot__by { margin-top: 8px; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; font-size: 13px; color: var(--ink-2); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 30px 0 22px; position: relative; z-index: 2; }
.foot__links a { font-weight: 800; color: var(--ink-2); transition: color 0.3s ease; }
.foot__links a:hover { color: var(--blue); }
.foot__legal { position: relative; z-index: 2; font-size: 14px; color: var(--muted); padding-bottom: clamp(60px, 10vw, 120px); }

/* ==================== READER PAGE ==================== */
.reader { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; padding: 92px var(--pad) 40px; }
.reader__bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(26px) saturate(1.1); opacity: 0.38; transform: scale(1.06); }
.reader::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 251, 242, 0.55), var(--paper) 100%); }
.reader__head { max-width: var(--wrap); margin: 0 auto 22px; text-align: center; }
.reader__head .kicker { margin-bottom: 6px; }
.reader__title { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.reader__title em { font-style: italic; font-weight: 600; color: var(--blue); }
.reader .fb { --fb-h: max(320px, calc(100svh - 326px)); max-width: 1500px; margin: 0 auto; }
.reader .fb__bar { margin-top: 30px; }
@media (max-width: 700px) { .reader .fb { --fb-h: calc((100vw - 2 * var(--pad)) / 1.1 + 16px); } .reader { padding-top: 96px; } }
.reader__after { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 78px; }

/* ==================== REVEALS ==================== */
.rv { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__wash span, .butterfly, .author__blob, .author__ring, .fb__drops i, .hero__cue i::after, .fb__page::before { animation: none !important; }
  .butterfly { display: none; }
}

.nav.is-stuck .nav__brand { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */

/* ---------- page header ---------- */
.phead {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(580px, 86vh, 840px);
  display: flex; align-items: center;
  padding: 128px 0 clamp(150px, 15vw, 230px);
}
.phead--lilac .phead__wash span:nth-child(1) { background: radial-gradient(circle, #E5D8F3 0%, transparent 70%); }
.phead--peach .phead__wash span:nth-child(1) { background: radial-gradient(circle, #FBD9C4 0%, transparent 70%); }
.phead--mint .phead__wash span:nth-child(1) { background: radial-gradient(circle, #DDEFC9 0%, transparent 70%); }
.phead__corner { position: absolute; z-index: 2; pointer-events: none; will-change: transform; }
.phead__corner img:first-child { display: block; width: 100%; height: auto; }
.phead__corner--tl { top: 0; left: 0; width: clamp(190px, 27vw, 470px); }
.phead__corner--tr { top: 0; right: 0; width: clamp(170px, 23vw, 410px); }
.phead__corner--bl { bottom: -2px; left: 0; width: clamp(240px, 33vw, 580px); }
.phead__corner--br { bottom: -2px; right: 0; width: clamp(240px, 33vw, 580px); }
.phead__critter { position: absolute; height: auto; filter: drop-shadow(0 6px 8px rgba(60, 40, 10, 0.18)); }
.phead__critter--squirrel { width: 21%; left: 9%; bottom: 58%; }
.phead__critter--rabbit { width: 10.5%; left: 22%; bottom: 43%; }
.phead__critter--deer { width: 30%; left: 56%; bottom: 56%; }

.phead:not(.phead--split) { min-height: clamp(540px, 74vh, 720px); }
.phead__in { position: relative; z-index: 3; display: grid; justify-items: center; text-align: center; }
.phead__text { max-width: 780px; }
.phead__text .lede { margin: 20px auto 0; }
.phead__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.phead--split .phead__in { grid-template-columns: 1.08fr 0.92fr; gap: clamp(30px, 5vw, 80px); align-items: center; justify-items: stretch; text-align: left; }
.phead--split .phead__text .lede, .phead--split .crumbs { margin-left: 0; }
.phead--split .phead__cta { justify-content: flex-start; }
.phead__title {
  font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: clamp(50px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.015em; color: var(--ink);
  filter: url(#wc-letter); margin-top: 4px;
}
.phead__title em { font-style: italic; font-weight: 700; color: var(--c, var(--blue)); }
.phead .book3d { padding: 0; }
.phead .book3d__in { width: min(420px, 74vw); }
.phead .author__photo { width: min(380px, 70vw); }

.crumbs {
  display: flex; width: fit-content; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 auto 18px;
  padding: 6px 15px; border-radius: 30px; background: rgba(255, 251, 242, 0.85);
  font-weight: 800; font-size: 14px; color: var(--muted);
}
.crumbs a { color: var(--ink-2); transition: color 0.3s ease; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }

@media (max-width: 860px) {
  .phead { padding-top: 116px; }
  .phead--split .phead__in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .phead--split .phead__text .lede, .phead--split .crumbs { margin-left: auto; }
  .phead--split .phead__cta { justify-content: center; }
  .phead__corner--tl { width: 46vw; }
  .phead__corner--tr { width: 40vw; }
  .phead__corner--bl { width: 60vw; }
  .phead__corner--br { width: 60vw; }
}

/* ---------- shared bits ---------- */
.dropcap::first-letter {
  float: left; font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 3.7em; line-height: 0.8; padding: 8px 12px 0 0; color: var(--c, var(--purple));
}
.band__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- the book ---------- */
.about2 { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about2 .lede + .lede { margin-top: 16px; }
@media (max-width: 860px) { .about2 { grid-template-columns: 1fr; } }
.details {
  position: relative; padding: 34px 32px 24px; border-radius: 28px; background: #fff;
  box-shadow: inset 0 0 0 2px var(--line), 0 30px 60px -42px rgba(31, 58, 92, 0.45);
}
.details::before {
  content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 6px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
}
.details__title { font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--purple); margin-bottom: 6px; }
.details dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 2px dashed var(--line); }
.details dl > div:last-child { border-bottom: 0; }
.details dt { font-weight: 800; font-size: 15px; color: var(--muted); }
.details dd { font-weight: 800; color: var(--ink); text-align: right; }
.details dd.tbc { font-family: var(--hand); font-weight: 600; font-size: 21px; color: var(--muted); }

.peek__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
@media (max-width: 860px) { .peek__in { grid-template-columns: 1fr; text-align: center; } .peek .lede { margin-left: auto; margin-right: auto; } }
.fan { position: relative; display: block; width: 100%; max-width: 540px; aspect-ratio: 1.3; margin: 0 auto; }
.fan__card {
  position: absolute; top: 12%; left: 24%; width: 52%; aspect-ratio: 1.1; border-radius: 6px 12px 12px 6px;
  background: url(../assets/img/meadow.webp) var(--x) 50% / auto 100% no-repeat #F5EBD6;
  box-shadow: inset 0 0 0 7px #fff, 0 26px 44px -22px rgba(31, 40, 60, 0.5);
  transform: translateX(var(--tx)) rotate(var(--r));
  transition: transform 0.8s var(--spring);
}
.fan__card:nth-child(2) { z-index: 2; top: 8%; }
.fan:hover .fan__card { transform: translateX(calc(var(--tx) * 1.35)) rotate(calc(var(--r) * 1.5)) translateY(-6px); }
.fan__badge {
  position: absolute; z-index: 3; left: 50%; bottom: 4%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 30px;
  background: var(--ink); color: #fff; font-weight: 800; box-shadow: 0 12px 24px -12px rgba(31, 58, 92, 0.6);
  transition: transform 0.4s var(--spring);
}
.fan__badge svg { width: 18px; height: 18px; }
.fan:hover .fan__badge { transform: translateX(-50%) scale(1.08); }

.friends { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .friends { grid-template-columns: repeat(2, 1fr); } }
.friend {
  position: relative; text-align: center; padding: 30px 20px 28px; border-radius: 28px; background: #fff;
  box-shadow: inset 0 0 0 2px var(--line); transition: transform 0.5s var(--spring), box-shadow 0.4s ease;
}
.friend:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: inset 0 0 0 2px var(--c), 0 26px 44px -26px rgba(31, 58, 92, 0.45); }
.friend__blob { position: absolute; left: 50%; top: 22px; width: min(160px, 80%); height: 132px; transform: translateX(-50%); border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%; background: var(--bg); }
.friend:nth-child(even) .friend__blob { border-radius: 46% 54% 44% 56% / 55% 45% 55% 45%; }
.friend__img { position: relative; height: 124px; width: auto; max-width: 90%; object-fit: contain; margin: 0 auto 16px; filter: drop-shadow(0 8px 10px rgba(60, 40, 10, 0.2)); transition: transform 0.5s var(--spring); }
.friend:hover .friend__img { transform: translateY(-6px) scale(1.06); }
.friend__name { font-family: var(--display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 26px; line-height: 1.1; color: var(--ink); }
.friend__line { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 480px) { .friend { padding: 24px 12px 22px; } .friend__img { height: 96px; } .friend__blob { height: 104px; } .friend__name { font-size: 22px; } .friend__line { font-size: 14.5px; } }

/* ---------- author ---------- */
.bio { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.bio .dropcap::first-letter { color: var(--red); }
.bio .lede + .lede { margin-top: 16px; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.note {
  position: relative; padding: 46px 34px 30px; border-radius: 6px; background: #FFF4D2; transform: rotate(2deg);
  box-shadow: 0 30px 50px -30px rgba(60, 45, 20, 0.45), inset 0 -20px 30px -24px rgba(180, 130, 30, 0.25);
  max-width: 380px; justify-self: center;
}
.note__pin { position: absolute; top: -12px; left: 50%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF9C8C, var(--red) 58%, #A52B1F); box-shadow: 0 5px 8px rgba(0, 0, 0, 0.25); }
.note__text { font-family: var(--hand); font-weight: 600; font-size: 30px; line-height: 1.25; color: var(--ink); }
.note__sign { font-family: var(--hand); font-weight: 700; font-size: 36px; color: var(--red); text-align: right; margin-top: 12px; }

/* ---------- color hunt checklist ---------- */
.sheet {
  --progress: 0;
  position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden;
  padding: clamp(26px, 4vw, 48px); border-radius: 34px; background: #fff;
  box-shadow: inset 0 0 0 2px var(--line), 0 40px 80px -52px rgba(31, 58, 92, 0.5);
}
.sheet::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; transform-origin: left;
  transform: scaleX(var(--progress)); transition: transform 0.8s var(--ease);
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple), var(--pink));
}
.sheet__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 30px; flex-wrap: wrap; margin-bottom: 22px; }
.sheet__title { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: clamp(34px, 4vw, 50px); line-height: 1; filter: url(#wc-letter); }
.sheet__name { display: flex; align-items: flex-end; gap: 10px; font-family: var(--hand); font-weight: 600; font-size: 26px; color: var(--ink-2); }
.sheet__name span { display: inline-block; width: clamp(120px, 22vw, 220px); border-bottom: 2.5px dashed rgba(31, 58, 92, 0.25); }
.sheet__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .sheet__list { grid-template-columns: 1fr; } }
.find {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.find.is-found { background: color-mix(in srgb, var(--c) 11%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.find__tick { position: relative; width: 58px; height: 58px; flex: none; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: #fff; }
.find__blob {
  position: absolute; inset: 0; border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%;
  background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: inset 0 0 0 3px var(--c);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.find:nth-child(even) .find__blob { border-radius: 46% 54% 44% 56% / 55% 45% 55% 45%; }
.find__tick:hover .find__blob { background: color-mix(in srgb, var(--c) 28%, #fff); }
.find.is-found .find__blob { background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 82%, #000)); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--c) 80%, transparent); }
.find__tick svg { position: relative; width: 28px; height: 28px; opacity: 0; transition: opacity 0.3s ease; }
.find.is-found .find__tick svg { opacity: 1; }
.find__t { font-weight: 900; font-size: 19px; color: var(--ink); line-height: 1.2; }
.find__t b { color: var(--c); }
.find__h { font-family: var(--hand); font-weight: 600; font-size: 21px; line-height: 1.15; color: var(--muted); }
.find__draw { width: 112px; height: 70px; border-radius: 14px; border: 2.5px dashed rgba(31, 58, 92, 0.16); display: grid; place-items: center; font-family: var(--hand); font-size: 17px; color: #B6BCC7; }
@media (max-width: 760px) { .find__draw { width: 84px; height: 58px; font-size: 15px; } }
@media (max-width: 420px) { .find__draw { display: none; } .find { grid-template-columns: auto 1fr; } }
.sheet__foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.sheet__done { min-height: 1.5em; margin-top: 6px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 27px; color: var(--green); }
.sheet__done b { color: var(--ink); }
.sheet__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.confetti { position: absolute; z-index: 6; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50% 50% 50% 0; pointer-events: none; }

/* ---------- buy ---------- */
.shops { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1040px) { .shops { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .shops { grid-template-columns: 1fr; } }
.shop {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 28px 24px; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 2px var(--line);
  transition: transform 0.5s var(--spring), box-shadow 0.4s ease;
}
.shop:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--c), 0 26px 44px -28px rgba(31, 58, 92, 0.45); }
.shop__icon { width: 60px; height: 60px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%; background: var(--bg); color: var(--c); }
.shop__icon svg { width: 27px; height: 27px; }
.shop__name { font-family: var(--display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 24px; line-height: 1.15; color: var(--ink); }
.shop__line { flex: 1; font-size: 16px; color: var(--ink-2); }
.shop .btn { margin-top: 8px; }
.shop .btn svg { width: 17px; height: 17px; }
.shop--local { background: var(--bg); }

.schools {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 50px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 34px; background: #fff; box-shadow: inset 0 0 0 2px var(--line);
}
.schools__critter { width: 104px; height: auto; filter: drop-shadow(0 8px 10px rgba(60, 40, 10, 0.2)); }
.schools .h2 { font-size: clamp(30px, 3.6vw, 46px); }
@media (max-width: 860px) { .schools { grid-template-columns: 1fr; justify-items: center; text-align: center; } .schools .lede { margin-left: auto; margin-right: auto; } }

/* ---------- contact ---------- */
.letter {
  position: relative; max-width: 840px; margin: 30px auto 0;
  padding: clamp(32px, 5vw, 64px); border-radius: 34px;
  background: #fff repeating-linear-gradient(180deg, transparent 0 40px, rgba(46, 134, 200, 0.07) 40px 42px);
  box-shadow: inset 0 0 0 2px var(--line), 0 50px 90px -52px rgba(31, 58, 92, 0.5);
}
.letter__peek { position: absolute; height: auto; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(60, 40, 10, 0.2)); }
.letter__peek--rabbit { width: 82px; right: 64px; top: -94px; }
.letter__peek--squirrel { width: 120px; left: -44px; bottom: -34px; }
@media (max-width: 640px) { .letter__peek--squirrel { width: 86px; left: -10px; bottom: -40px; } .letter__peek--rabbit { width: 64px; right: 28px; top: -74px; } }
.letter__title { font-family: var(--hand); font-weight: 700; font-size: clamp(40px, 4.6vw, 56px); line-height: 1; color: var(--ink); margin-bottom: 22px; }
.letter__title span { color: var(--blue); }

.cform__pick { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.cform__pick legend { margin-bottom: 12px; padding: 0; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: inline-block; padding: 10px 18px; border-radius: 30px; font-weight: 800; font-size: 15px; color: var(--ink-2); background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--spring); }
.pick label:hover span { color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.pick input:checked + span { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(-2deg); }
.pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }
.cfield { position: relative; margin-bottom: 16px; }
.cfield input, .cfield textarea {
  display: block; width: 100%; min-height: 62px; padding: 27px 18px 10px;
  font-family: var(--body); font-weight: 600; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 0; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.cfield textarea { min-height: 176px; padding-top: 34px; line-height: 1.6; resize: vertical; }
.cfield input:focus, .cfield textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px rgba(46, 134, 200, 0.14); }
.cfield label { position: absolute; left: 19px; top: 19px; pointer-events: none; font-weight: 700; color: var(--muted); transition: top 0.3s var(--ease), font-size 0.3s var(--ease), color 0.3s ease, letter-spacing 0.3s ease; }
.cfield input:focus + label, .cfield input:not(:placeholder-shown) + label,
.cfield textarea:focus + label, .cfield textarea:not(:placeholder-shown) + label { top: 9px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.cfield__err { display: none; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--red); }
.cfield.is-invalid input, .cfield.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--red); }
.cfield.is-invalid .cfield__err { display: block; }
.cform__foot { display: flex; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 560px) { .cform__foot .btn { width: 100%; } }
.cform__success { text-align: center; padding: 30px 0 16px; }
.cform__success:focus { outline: none; }
.cform__success-title { font-family: var(--display); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: clamp(44px, 5.4vw, 64px); line-height: 1; color: var(--ink); filter: url(#wc-letter); }
.cform__success .lede { margin: 12px auto 0; }
.splash { position: relative; display: block; width: 150px; height: 96px; margin: 0 auto 18px; }
.splash i { position: absolute; border-radius: 50%; }
.splash i:nth-child(1) { width: 46px; height: 46px; left: 0; top: 30px; background: var(--red); }
.splash i:nth-child(2) { width: 38px; height: 38px; left: 30px; top: 4px; background: var(--orange); }
.splash i:nth-child(3) { width: 42px; height: 42px; left: 56px; top: 34px; background: var(--yellow); }
.splash i:nth-child(4) { width: 36px; height: 36px; left: 82px; top: 0; background: var(--green); }
.splash i:nth-child(5) { width: 44px; height: 44px; left: 100px; top: 40px; background: var(--blue); }
.splash i:nth-child(6) { width: 26px; height: 26px; left: 128px; top: 12px; background: var(--purple); }

/* ---------- print: only the color hunt sheet ---------- */
@media print {
  @page { margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body:has(#sheet)::before,
  body:has(#sheet) .nav, body:has(#sheet) .mnav, body:has(#sheet) .foot, body:has(#sheet) .skip,
  body:has(#sheet) main > *:not(#outside),
  body:has(#sheet) #outside .head, body:has(#sheet) .sheet__actions, body:has(#sheet) .sheet__done, body:has(#sheet) .confetti { display: none !important; }
  body:has(#sheet) { background: #fff !important; }
  body:has(#sheet) #outside { padding: 0 !important; }
  body:has(#sheet) .sheet { max-width: none; box-shadow: none !important; border: 2px solid #E3E6EC; border-radius: 18px; opacity: 1 !important; transform: none !important; }
  body:has(#sheet) .sheet::before { display: none; }
  body:has(#sheet) .sheet__list { grid-template-columns: 1fr; gap: 9px; }
  body:has(#sheet) .find { break-inside: avoid; background: #fff !important; padding: 10px 14px; }
  body:has(#sheet) .find__draw { display: grid !important; width: 190px; height: 74px; }
}
