/* Happy Minds Songs, homepage v9: "Ink & Watercolour"
   ONE idea: the page is a picture book. Everything on it is one of three things:
     1. WATERCOLOUR  - the painted art, Sunny, and the soft washes behind sections (aqua sky, butter sun)
     2. INK          - one navy ink for every word and every hand-drawn mark (arrows, sparkles, garland string)
     3. PAPER        - the printables, shown as real sheets of paper
   Nothing else: no glossy UI, no vector clouds, no boxes around text, no second ink colour.
   Type: Nunito (everything you read, headings included) · Cherry Bomb One (2 bubble words on the whole page)
         · Caveat (Maggie's handwriting, only beside an ink arrow or as her signature) · Fredoka (the logo only). */

:root {
  /* ink */
  --ink: #1F2B47;        /* every heading, every doodle (14:1 on white) */
  --ink-2: #4E5873;      /* body text (7:1 on white, 6.4:1 on aqua wash) */
  --gold: #86661F;       /* kickers: the logo's gold, one step darker for small web text (5.3:1) */
  /* watercolour */
  --sky: #E8F6F4;        /* aqua wash band: How it works, Reviews */
  --sky-edge: #D3EEEA;
  --butter: #FFF6D8;     /* butter wash band: the free gift */
  --sun: #FFCF4D;        /* Sunny's yellow = "do this": buttons only */
  --sun-press: #F7BE2A;
  --hl: #FFE07A;         /* highlighter stroke behind one phrase */
  /* bubble letters + pompoms: the five colours already in the painted art */
  --c1: #F08A73; --c2: #F5B12E; --c3: #3DB5A8; --c4: #A08AD8; --c5: #EE8AB0;
  /* paper */
  --paper: #FFFFFF;
  --sheet-shadow: 0 1px 1px rgba(31, 43, 71, .08), 0 8px 22px rgba(31, 43, 71, .12);
  --plate-r: 18px;

  --shout: "Cherry Bomb One", "Arial Rounded MT Bold", sans-serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --logo: "Fredoka", "Nunito", sans-serif;

  /* 8-pt spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --max: 1160px;
  --gut: 24px;
  --sec: clamp(72px, 8.5vw, 120px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 500 17px/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
strong, b { font-weight: 800; color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); position: relative; }
.nw { white-space: nowrap; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type scale (major third, 1.25) ----------
   kicker 13 · small 14 · body 17 · lead 20 · h3 24 · h2 48 · shout 96 */
h1, h2, h3 { font-family: var(--sans); color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-weight: 900; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.015em; }
h3 { font-weight: 800; font-size: clamp(21px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -.005em; }
.kicker { font: 800 13px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s4); }
.lead { font: 600 clamp(18px, 1.5vw, 20px)/1.6 var(--sans); color: var(--ink-2); text-wrap: pretty; max-width: 34em; }
.small { font: 600 14px/1.5 var(--sans); color: var(--ink-2); margin: 0; }
.hl { background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: nowrap; }
.stars { color: #E9A91B; letter-spacing: .08em; }

/* The "shout": Maggie's handwriting leads into two bubble words. Used twice on the whole page. */
.shout-block { display: block; font-weight: 400; margin: 0 0 var(--s5); line-height: 1; }
.shout-block .script { display: block; font: 600 clamp(28px, 2.7vw, 38px)/1.1 var(--hand); color: var(--ink); margin: 0 0 var(--s2); transform: rotate(-1.5deg); transform-origin: left center; }
.shout { display: block; font: 400 clamp(60px, 7.4vw, 104px)/.95 var(--shout); letter-spacing: .005em; }
.shout .wd { display: inline-block; white-space: nowrap; }
.shout span span { -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; }
.shout .wd span:nth-child(5n+1) { color: var(--c1); }
.shout .wd span:nth-child(5n+2) { color: var(--c2); }
.shout .wd span:nth-child(5n+3) { color: var(--c3); }
.shout .wd span:nth-child(5n+4) { color: var(--c4); }
.shout .wd span:nth-child(5n+5) { color: var(--c5); }
.shout .wd ~ .wd span:nth-child(5n+1) { color: var(--c3); }
.shout .wd ~ .wd span:nth-child(5n+2) { color: var(--c5); }
.shout .wd ~ .wd span:nth-child(5n+3) { color: var(--c2); }
.shout .wd ~ .wd span:nth-child(5n+4) { color: var(--c1); }
.shout .wd ~ .wd span:nth-child(5n+5) { color: var(--c4); }

/* ---------- ink: one pen for every hand-drawn mark ---------- */
.ink { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; overflow: visible; }
.note { position: absolute; font: 600 26px/1 var(--hand); color: var(--ink); white-space: nowrap; pointer-events: none; }

/* ---------- buttons + links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 30px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 800 17px/1.2 var(--sans); box-shadow: inset 0 -3px 0 rgba(31, 43, 71, .12); transition: background .15s, transform .15s; }
.btn:hover { background: var(--sun-press); transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 9px 20px; font-size: 15px; }
.textlink { font: 800 16px/1.3 var(--sans); color: var(--ink); background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 94%, transparent 94%); padding: 0 .1em; }
.textlink::after { content: " →"; }
a:hover .textlink, .textlink:hover { background: linear-gradient(transparent 20%, var(--hl) 20%, var(--hl) 94%, transparent 94%); }

/* ---------- image treatment: three kinds only ----------
   .plate = a painted scene (rounded, no frame, no shadow: it IS the world)
   .sheet = a printable (white paper, hairline edge, soft shadow, may tilt)
   cut-outs = Sunny and Maggie (no frame at all) */
.plate { display: block; border-radius: var(--plate-r); overflow: hidden; background: var(--sky); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.sheet { background: #fff; border-radius: 3px; box-shadow: var(--sheet-shadow); outline: 1px solid rgba(31, 43, 71, .06); }

/* ---------- section rhythm ---------- */
.sec { padding: var(--sec) 0; position: relative; }
.band--aqua { background: var(--sky); }
.band--butter { background: var(--butter); }
.head { text-align: center; max-width: 760px; margin: 0 auto var(--s8); }
.head .lead { margin: var(--s5) auto 0; text-wrap: balance; }
.head h2 + .lead { margin-top: var(--s5); }

/* ---------- header ---------- */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.hrow { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 52px; height: auto; }
.logo .w { display: inline-flex; flex-direction: column; }
.logo b { font: 700 25px/1 var(--logo); color: var(--ink); letter-spacing: -.005em; }
.logo i { display: flex; justify-content: space-between; font: 900 11px/1 var(--sans); font-style: normal; color: var(--gold); margin-top: 5px; padding: 0 1px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font: 700 16px/1 var(--sans); color: var(--ink); padding: 8px 0; background: linear-gradient(var(--hl), var(--hl)) 0 88% / 0 5px no-repeat; transition: background-size .2s; }
.nav a:not(.btn):hover { background-size: 100% 5px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--ink); padding: 11px; cursor: pointer; }

/* ---------- 1 hero ---------- */
.hero { position: relative; padding: 150px 0 var(--s9); background: #fff url(img/sky-wash-1920.jpg) center top / cover no-repeat; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.hero .wrap { z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 6fr 6fr; gap: var(--s8); align-items: center; }
.hero-copy .lead { margin-bottom: var(--s6); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4) var(--s6); margin-bottom: var(--s5); }
.trust { font: 700 14px/1.6 var(--sans); color: var(--ink-2); margin: 0; }
.trust .sep { display: none; }
.trust .br { display: block; }
.sunny-sky { position: absolute; z-index: 1; top: -6%; right: -3%; width: 21%; }

.hero-art { position: relative; display: block; aspect-ratio: 1 / .86; }
.hero-art .print { position: absolute; left: 4%; right: 2%; top: 22%; display: block; border-radius: var(--plate-r); overflow: hidden; box-shadow: 0 2px 4px rgba(31, 43, 71, .06), 0 22px 48px rgba(31, 43, 71, .18); aspect-ratio: 16 / 9; z-index: 2; transition: transform .25s; }
.hero-art .print img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .s-letter { position: absolute; width: 36%; left: 0; top: 0; transform: rotate(-7deg); z-index: 1; }
.hero-art .s-cert { position: absolute; width: 34%; right: 0; bottom: -2%; transform: rotate(6deg); z-index: 3; }
.hero-art:hover .print { transform: translateY(-3px); }
.n-name { top: 3%; left: 36%; z-index: 4; transform: rotate(-3deg); }
.n-name .ink { position: absolute; width: 54px; height: 82px; left: 72%; top: 22px; transform: rotate(-12deg); }

/* ---------- 2 songs by moment ---------- */
#songs { padding-top: var(--s6); }
#songs .head { margin-bottom: var(--s8); }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s7) var(--s6); }
.moment { display: flex; flex-direction: column; }
.moment .plate { aspect-ratio: 4 / 3; margin-bottom: var(--s5); transition: transform .25s; }
.moment:hover .plate { transform: translateY(-4px); }
.moment .kicker { margin-bottom: var(--s2); }
.moment h3 { margin-bottom: var(--s3); }
.moment .song { margin: 0; color: var(--ink-2); font-size: 16px; }
.moment .tool { margin: 0 0 var(--s5); color: var(--ink-2); font-size: 16px; }
.moment .go { margin-top: auto; display: flex; align-items: baseline; gap: var(--s5); }
.price { font: 800 15px/1 var(--sans); color: var(--ink); white-space: nowrap; }
.moment .price { color: var(--ink-2); font-weight: 700; }

/* ---------- 3 how it works: the arc ---------- */
.band--arc { padding-bottom: calc(var(--sec) - 24px); }
.arc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); counter-reset: none; position: relative; z-index: 1; }
.beat { text-align: center; padding: 0 var(--s4); }
.beat img { width: 150px; margin: 0 auto var(--s5); }
.beat:nth-child(1) { margin-top: 72px; }
.beat:nth-child(2) { margin-top: 36px; }
.beat .kicker { margin-bottom: var(--s2); }
.beat h3 { margin-bottom: var(--s3); }
.beat p:last-child { margin: 0 auto; max-width: 30ch; }
.arc-wrap { position: relative; }
.trail { position: absolute; width: 150px; height: 46px; }
.trail.t1 { left: calc(33.33% - 75px); top: 70px; }
.trail.t2 { left: calc(66.67% - 75px); top: 34px; }

/* ---------- 4 free poster ---------- */
.free-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: center; }
.free-copy .lead { margin: var(--s5) 0 var(--s6); }
.steps { counter-reset: st; margin: 0 0 var(--s6); display: grid; gap: var(--s3); }
.steps li { counter-increment: st; display: flex; align-items: center; gap: var(--s4); font: 600 17px/1.4 var(--sans); color: var(--ink-2); }
.steps li::before { content: counter(st); flex: 0 0 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 600 22px/1 var(--hand); color: var(--ink); }
.posters { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); padding: var(--s4) var(--s5) 0; }
.poster { display: flex; flex-direction: column; align-items: center; text-align: center; }
.poster .sheet { width: 100%; max-width: 300px; margin-bottom: var(--s5); transition: transform .25s; }
.poster:nth-child(1) .sheet { transform: rotate(-2.5deg); }
.poster:nth-child(2) .sheet { transform: rotate(2deg); }
.poster:hover .sheet { transform: rotate(0) translateY(-4px); }
.poster b { font: 800 18px/1.3 var(--sans); }
.poster span { font: 600 15px/1.4 var(--sans); color: var(--ink-2); }
.n-pick { left: -54px; top: -26px; transform: rotate(-4deg); }
.n-pick .ink { position: absolute; width: 74px; height: 38px; left: 22px; top: 30px; transform: rotate(18deg); }

/* ---------- 5 kits ---------- */
#kits { padding-top: calc(var(--sec) + 24px); }
.garland { position: absolute; top: 0; left: 0; right: 0; height: 80px; overflow: hidden; }
.garland svg { width: 100%; height: 80px; display: block; }
.kits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); margin-bottom: var(--s7); }
.kit { display: flex; flex-direction: column; }
.stage { position: relative; display: block; aspect-ratio: 16 / 11.5; margin-bottom: var(--s6); }
.stage .plate { position: absolute; left: 0; top: 7%; width: 76%; aspect-ratio: 16 / 10.5; }
.stage .sheet { position: absolute; width: 27%; transition: transform .25s; }
.stage .p1 { right: 3%; top: 0; transform: rotate(4deg); z-index: 1; }
.stage .p2 { right: 15%; top: 30%; transform: rotate(-3deg); z-index: 2; }
.stage .p3 { right: 0; top: 47%; transform: rotate(5deg); z-index: 3; }
.kit:hover .p1 { transform: rotate(6deg) translateY(-6px); }
.kit:hover .p3 { transform: rotate(7deg) translateY(-4px); }
.kit-info { max-width: 34em; }
.kit-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s2); }
.kit-top .price { font-size: 22px; font-weight: 900; }
.kit .sub { font: 600 16px/1.5 var(--sans); color: var(--ink-2); margin: 0 0 var(--s2); }
.kit .inside { font-size: 16px; margin: 0 0 var(--s5); }

/* ---------- 6 reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s7); margin-bottom: var(--s7); }
.review { position: relative; padding-top: var(--s5); }
.review::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5C50 2 96 6.5 150 4.5S262 1.5 318 4.2 380 6 399 3.6' fill='none' stroke='%231F2B47' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.review .stars { font-size: 16px; margin-bottom: var(--s3); }
.review blockquote { font: 700 20px/1.5 var(--sans); color: var(--ink); margin-bottom: var(--s4); text-wrap: pretty; }
.review figcaption { font: 600 14px/1.4 var(--sans); color: var(--ink-2); }
.review figcaption b { font-weight: 800; }

/* ---------- 7 about: the card ---------- */
.about-card { position: relative; display: grid; grid-template-columns: 7fr 5fr; align-items: end; border-radius: 28px; overflow: hidden; background: linear-gradient(90deg, #fff 0%, #fff 40%, rgba(255, 255, 255, 0) 70%), var(--sky) url(img/sky-wash-960.jpg) right center / cover no-repeat; box-shadow: 0 2px 4px rgba(31, 43, 71, .05), 0 24px 60px rgba(31, 43, 71, .12); }
.about-text { padding: var(--s8) var(--s7) var(--s8) var(--s8); align-self: center; }
.about-text h2 { margin-bottom: var(--s5); }
.about-text em { font-style: normal; font-weight: 800; color: var(--ink); }
.sign { font: 600 30px/1.15 var(--hand); color: var(--ink); margin: var(--s6) 0 0; }
.sign span { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2); font-size: 34px; }
.sign .heart { display: inline-block; width: 26px; height: 26px; stroke-width: 2; fill: var(--c5); fill-opacity: .5; }
.sign span { display: flex; }
.about-photo { align-self: end; }
.about-photo img { width: 100%; max-width: 470px; margin-left: auto; }

/* ---------- footer ---------- */
.foot { position: relative; padding: var(--s9) 0 var(--s7); text-align: center; background: linear-gradient(#fff, rgba(255, 255, 255, 0) 200px), #E6F5F2 url(img/sky-wash-1920.jpg) center bottom / cover no-repeat; }
.sunny-foot { width: 110px; margin: 0 auto var(--s4); }
.foot h2 { margin-bottom: var(--s5); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s6); margin: var(--s8) auto var(--s5); max-width: 860px; }
.foot-links a { font: 700 15px/1.4 var(--sans); color: var(--ink); }
.foot-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.copy { font: 600 13px/1.5 var(--sans); color: var(--ink-2); margin: 0; }

/* ================= responsive ================= */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .hero-grid { gap: var(--s6); }
}

@media (max-width: 900px) {
  :root { --gut: 20px; }
  .hrow { height: 76px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: var(--gut); right: var(--gut); flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3) var(--s5) var(--s5); background: #fff; border-radius: 20px; box-shadow: 0 18px 44px rgba(31, 43, 71, .16); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(31, 43, 71, .08); font-size: 17px; background: none; }
  .nav .btn { margin-top: var(--s4); }

  .hero { padding: 104px 0 var(--s8); background-image: url(img/sky-wash-960.jpg); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-copy { display: contents; }
  .hero-copy .kicker { order: 1; margin-bottom: var(--s3); }
  .hero-copy h1 { order: 2; margin-bottom: var(--s3); }
  .shout { font-size: clamp(54px, 11vw, 96px); }
  .hero-art { order: 3; width: 94%; max-width: 560px; margin: var(--s2) auto var(--s3); }
  .hero-copy .lead { order: 4; margin-bottom: var(--s2); }
  .actions { order: 5; margin-bottom: 0; }
  .trust { order: 6; }
  .note { font-size: 22px; }
  .n-name .ink { width: 44px; height: 58px; top: 22px; }

  .moments { grid-template-columns: 1fr; gap: var(--s7); max-width: 520px; margin: 0 auto; }
  .moment .plate { aspect-ratio: 16 / 10; }

  .arc { grid-template-columns: 1fr; gap: var(--s7); }
  .beat:nth-child(n) { margin-top: 0; }
  .beat img { width: 120px; margin-bottom: var(--s3); }
  .trail { display: none; }

  .free-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .posters { gap: var(--s5); padding: 0; }
  .n-pick { display: none; }

  .kits { grid-template-columns: 1fr; gap: var(--s8); max-width: 560px; margin-left: auto; margin-right: auto; }

  .reviews { grid-template-columns: 1fr; gap: var(--s6); max-width: 560px; margin-left: auto; margin-right: auto; }

  .about-card { grid-template-columns: 1fr; background: var(--sky) url(img/sky-wash-960.jpg) center top / cover no-repeat; }
  .about-photo { order: -1; }
  .about-photo img { max-width: 340px; margin: var(--s6) auto 0; }
  .about-text { padding: var(--s6) var(--s5) var(--s7); background: #fff; }
}

@media (max-width: 520px) {
  .shout { font-size: clamp(54px, 15vw, 76px); }
  .sep { display: none; }
  .br { display: block; }
  .shout-block .script { font-size: 27px; }
  .btn { width: 100%; }
  .actions { gap: var(--s3); }
  .actions .textlink { margin: 0 auto; }
  .posters .poster b { font-size: 16px; }
  .posters .poster span { font-size: 14px; }
  .kit-top { flex-direction: column; gap: var(--s1); }
  .head { margin-bottom: var(--s7); }
}

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