/* Mochi website. Scrapbook language from the app: cream paper, washi tape,
   Kalam handwriting, Baloo headings, white paper buttons on a mood-colour lip,
   wavy animated edges and floating Mochi drops. No lavender: the mood is the colour. */

:root {
  --ink: #2A2440;
  --ink-soft: #5A5470;
  --paper: #FFFBF2;
  --paper-2: #FBF3E2;
  --line: #E9DCC3;
  --coral: #F5917F;
  --mint: #9EDDC8;
  --mood: #FFCF6B;
  --mood-deep: #E9A93A;
  --sky-top: #FFE7C2;
  --sky-bottom: #FFF4E0;
  --sun: #FFF7DD;
  --head: 'Baloo 2', 'Noto Sans', system-ui, sans-serif;
  --body: 'Noto Sans', system-ui, sans-serif;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --shadow: 0 1px 0 rgba(42, 36, 64, .04), 0 10px 30px -12px rgba(42, 36, 64, .28);
  color-scheme: light;
}

/* The sky follows the visitor's clock. */
:root[data-phase='dawn'] { --sky-top: #FFC9B0; --sky-bottom: #FFF0DA; --sun: #FFE3C8; }
:root[data-phase='day'] { --sky-top: #BFE6FF; --sky-bottom: #FFF6E2; --sun: #FFFBEA; }
:root[data-phase='dusk'] { --sky-top: #F7A889; --sky-bottom: #FFD9B0; --sun: #FFE0B8; }
:root[data-phase='night'] { --sky-top: #2E3558; --sky-bottom: #5D5C7E; --sun: #F4F1E6; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
html { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }
p { margin: 0 0 1em; }
.hand { font-family: var(--hand); }
.center { text-align: center; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 99px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px dashed var(--mood-deep); outline-offset: 4px; }

/* -------------------------------------------------------------- sky -- */
.sky {
  position: absolute; inset: 0 0 auto 0; height: 980px; z-index: -1; overflow: hidden;
  background:
    linear-gradient(180deg, var(--sky-top) 0%, color-mix(in srgb, var(--mood) 55%, var(--sky-bottom)) 70%, var(--paper) 100%);
  transition: background .8s ease;
}
.sun {
  position: absolute; width: 180px; height: 180px; border-radius: 50%; right: 8%; top: 90px;
  background: var(--sun);
  box-shadow: 0 0 0 30px color-mix(in srgb, var(--sun) 35%, transparent), 0 0 120px 60px color-mix(in srgb, var(--sun) 40%, transparent);
  animation: breathe 7s ease-in-out infinite;
}
:root[data-phase='night'] .sun { width: 110px; height: 110px; box-shadow: inset -28px -8px 0 0 #CFCBDD, 0 0 80px 20px rgba(255,255,255,.18); }
:root[data-phase='night'] .sky::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 40% 35%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 85% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 10% 50%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 8%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
:root[data-phase='night'] .top a:not(.btn), :root[data-phase='night'] .top .brand { color: #fff; }

.float-drops { position: absolute; inset: 0; }
.fd {
  position: absolute; left: var(--x); bottom: -40px; width: var(--s); height: calc(var(--s) * 1.2);
  background: var(--c); opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 72'%3E%3Cpath d='M30 0C35 12 60 30 60 46a30 30 0 0 1-60 0C0 30 25 12 30 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 72'%3E%3Cpath d='M30 0C35 12 60 30 60 46a30 30 0 0 1-60 0C0 30 25 12 30 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: rise var(--d) linear var(--delay) infinite;
}

/* ----------------------------------------------------------- header -- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1180px, 100% - 32px); margin: 0 auto; padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.7rem/1 var(--head); text-decoration: none; }
.brand-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--coral); padding: 5px 4px 3px; box-shadow: 0 3px 0 #D9604B; display: grid; place-items: center; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 600; }
.top nav a:not(.btn) { text-decoration: none; position: relative; }
.top nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px; background: var(--mood-deep); transform: scaleX(0); transition: transform .25s; }
.top nav a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); font: 800 1.08rem/1 var(--head); text-decoration: none;
  box-shadow: 0 6px 0 var(--mood-deep), 0 14px 24px -10px rgba(42, 36, 64, .35);
  transition: transform .15s, box-shadow .15s, background .3s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 0 var(--mood-deep), 0 18px 26px -10px rgba(42, 36, 64, .35); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--mood-deep), 0 6px 12px -8px rgba(42, 36, 64, .35); }
.btn--sm { padding: 10px 20px; font-size: .98rem; box-shadow: 0 4px 0 var(--mood-deep); }
.btn--ghost { cursor: default; background: var(--paper-2); box-shadow: 0 5px 0 var(--line); }
.btn--ghost:hover { transform: none; box-shadow: 0 5px 0 var(--line); }
.link-hand { font: 700 1.15rem var(--hand); text-decoration: none; border-bottom: 2px dashed currentColor; }

/* ---------------------------------------------------- paper and tape -- */
.paper {
  position: relative; background: var(--paper); border-radius: 6px; box-shadow: var(--shadow);
  background-image: radial-gradient(rgba(42,36,64,.035) 1px, transparent 1px);
  background-size: 6px 6px;
}
.tilt-l { rotate: -1.6deg; }
.tilt-r { rotate: 1.4deg; }
.tape {
  position: absolute; width: 110px; height: 30px; z-index: 2;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px),
    color-mix(in srgb, var(--mood) 80%, transparent);
  opacity: .9; transition: background .6s;
  -webkit-mask: conic-gradient(from 135deg at 4px 50%, #0000 90deg, #000 0) -4px 0/8px 100% repeat-y, conic-gradient(from -45deg at calc(100% - 4px) 50%, #0000 90deg, #000 0) calc(100% + 4px) 0/8px 100% repeat-y, linear-gradient(#000 0 0) center/calc(100% - 8px) 100% no-repeat;
          mask: conic-gradient(from 135deg at 4px 50%, #0000 90deg, #000 0) -4px 0/8px 100% repeat-y, conic-gradient(from -45deg at calc(100% - 4px) 50%, #0000 90deg, #000 0) calc(100% + 4px) 0/8px 100% repeat-y, linear-gradient(#000 0 0) center/calc(100% - 8px) 100% no-repeat;
}
.tape--mint { background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--mint) 85%, transparent); }
.tape--tl { top: -14px; left: -22px; rotate: -32deg; }
.tape--tr { top: -14px; right: -22px; rotate: 30deg; }
.tape--top { top: -15px; left: 50%; translate: -50% 0; rotate: -3deg; width: 90px; }

/* ------------------------------------------------------------- hero -- */
.hero {
  width: min(1120px, 100% - 32px); margin: 0 auto; padding: 40px 0 90px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
}
.hero-card { padding: 44px 44px 36px; }
.hero-card h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--mood) 75%, transparent) 62%); transition: background .6s; }
.kicker { font-size: 1.3rem; color: var(--ink-soft); margin-bottom: .2em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }
.cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-mochi { all: unset; cursor: pointer; width: min(330px, 70vw); animation: bob 4.5s ease-in-out infinite; }
.hero-mochi:focus-visible { outline: 3px dashed var(--ink); outline-offset: 8px; border-radius: 30px; }
.hero-mochi.boing .mochi { animation: boing .6s cubic-bezier(.3,1.6,.5,1); }
.bubble {
  position: absolute; top: 4%; left: 0; z-index: 2; max-width: 210px;
  background: #fff; padding: 12px 18px; border-radius: 20px 20px 20px 4px;
  font-size: 1.15rem; box-shadow: var(--shadow); animation: bob 5s ease-in-out -1s infinite;
}
.doodle { position: absolute; font-size: 2rem; color: var(--mood-deep); animation: spin 9s linear infinite; transition: color .6s; }
.doodle--star { top: 20%; right: 6%; }
.doodle--heart { bottom: 12%; left: 8%; color: #F07C8C; animation: bob 3.5s ease-in-out infinite; }
.doodle--swirl { bottom: 22%; right: 2%; width: 60px; height: 60px; border: 3px dashed var(--mood-deep); border-radius: 50%; animation: spin 14s linear infinite; }

/* ----------------------------------------------------- wavy edges -- */
.wave { height: 46px; overflow: hidden; line-height: 0; margin-top: -45px; position: relative; z-index: 1; }
.wave svg { width: 200%; max-width: none; height: 100%; animation: roll 9s linear infinite; }
.wave--paper path { fill: var(--paper-2); }
.wave--flip { margin-top: 0; margin-bottom: -1px; rotate: 180deg; }
.wave--flip svg { animation-duration: 12s; }
.wave--top { position: absolute; top: -45px; left: 0; right: 0; margin: 0; }
.wave--ink path { fill: var(--ink); }

.band { padding: 90px 0; position: relative; }
.band--paper { background: var(--paper-2); }
.step { display: inline-block; font-size: 1.2rem; padding: 2px 14px; border-radius: 99px; background: color-mix(in srgb, var(--mood) 45%, #fff); transition: background .6s; }
.note { font-size: 1.1rem; color: var(--ink-soft); border-left: 3px solid var(--mood-deep); padding-left: 12px; }

/* ------------------------------------------------------------- feel -- */
.feel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.feel-board { padding: 30px 24px 26px; overflow: hidden; }
.feel-stage {
  border-radius: 18px; padding: 24px 10px 12px; text-align: center;
  background: radial-gradient(circle at 50% 40%, #fff 0%, color-mix(in srgb, var(--mood) 55%, #fff) 70%);
  transition: background .6s;
}
.feel-big { width: 170px; margin: 0 auto; }
.feel-big.pop .mochi { animation: boing .6s cubic-bezier(.3,1.6,.5,1); }
.feel-name { font: 800 2rem/1 var(--head); margin: 6px 0 4px; }
.feel-line { font-size: 1.15rem; min-height: 1.8em; color: var(--ink-soft); }
.feel-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.feel-pick {
  all: unset; cursor: pointer; text-align: center; border-radius: 16px; padding: 8px 2px 6px;
  font: 600 .82rem var(--body); transition: transform .2s, background .2s;
}
.feel-pick .mochi { width: 100%; max-width: 64px; margin: 0 auto 2px; }
.feel-pick:hover { transform: translateY(-5px) rotate(-4deg); }
.feel-pick[aria-pressed='true'] { background: #fff; box-shadow: 0 4px 0 var(--mood-deep); transform: translateY(-4px); }
.feel-pick:focus-visible { outline: 3px dashed var(--ink); }

/* -------------------------------------------------------------- book -- */
.book { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.spread { display: grid; grid-template-columns: 1fr 1fr; filter: drop-shadow(0 18px 24px rgba(42,36,64,.22)); rotate: -1deg; }
.page { position: relative; min-height: 400px; padding: 34px 26px; background: var(--paper); }
.page--left { border-radius: 10px 2px 2px 10px; background-image: linear-gradient(90deg, transparent 92%, rgba(42,36,64,.08)); }
.page--right { border-radius: 2px 10px 10px 2px; background-image: linear-gradient(90deg, rgba(42,36,64,.1), transparent 8%); }
.ruled { background: repeating-linear-gradient(transparent 0 31px, #E7DCC6 31px 32px), linear-gradient(90deg, transparent 92%, rgba(42,36,64,.08)) var(--paper); background-position: 0 14px, 0 0; }
.page--left p, .page--left h3 { font-size: 1.15rem; line-height: 32px; margin: 0 0 0; }
.page--left h3 { font-size: 1.5rem; font-weight: 700; }
.page-date { color: var(--ink-soft); }
.mood-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; background: #fff; border-radius: 99px; padding: 4px 14px 4px 6px; font-weight: 600; box-shadow: 0 3px 0 #5FB89C; }
.mood-chip .mochi { width: 28px; }
.polaroid { position: absolute; margin: 0; background: #fff; padding: 9px 9px 0; box-shadow: var(--shadow); transition: rotate .3s, transform .3s; }
.polaroid:hover { transform: scale(1.04); rotate: 0deg; }
.polaroid figcaption { text-align: center; padding: 4px 0 6px; font-size: 1rem; }
.p1 { top: 30px; left: 18px; width: 58%; rotate: -6deg; }
.p2 { bottom: 40px; right: 16px; width: 52%; rotate: 5deg; }
.pic { aspect-ratio: 1 / .9; }
.pic--sunset { background: radial-gradient(circle at 50% 70%, #FFE6A8 0 14%, transparent 15%), linear-gradient(180deg, #F7A889, #FFCF6B 62%, #6E9FDB 62% 100%); }
.pic--chai { background: radial-gradient(ellipse 26% 18% at 50% 58%, #C9895A 0 60%, #fff 62% 100%, transparent 101%), radial-gradient(ellipse 34% 30% at 50% 62%, #fff 0 99%, transparent 100%), linear-gradient(180deg, #E3D5B8 0 60%, #BCA982 60%); }
.sticker { position: absolute; z-index: 3; cursor: grab; touch-action: none; user-select: none; transition: scale .15s, filter .15s; filter: drop-shadow(0 3px 2px rgba(42,36,64,.25)); }
.sticker.lift { cursor: grabbing; scale: 1.15; filter: drop-shadow(0 10px 8px rgba(42,36,64,.3)); }
.s-heart { top: 44%; right: 14%; font-size: 3rem; color: #F07C8C; -webkit-text-stroke: 3px #fff; animation: bob 3s ease-in-out infinite; }
.s-star { top: 6%; right: 8%; font-size: 2.6rem; color: #FFB547; -webkit-text-stroke: 3px #fff; animation: spin 10s linear infinite; }
.s-mochi { bottom: 18px; left: 14px; width: 66px; }
.drag-hint { position: absolute; bottom: 4px; right: 18px; margin: 0; font-size: .95rem; color: var(--ink-soft); rotate: -3deg; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 34px; position: relative; margin: 10px 0; font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 26px; background: var(--mood); transition: background .6s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 72'%3E%3Cpath d='M30 0C35 12 60 30 60 46a30 30 0 0 1-60 0C0 30 25 12 30 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 72'%3E%3Cpath d='M30 0C35 12 60 30 60 46a30 30 0 0 1-60 0C0 30 25 12 30 0Z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ------------------------------------------------------------- recap -- */
.recap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.year { padding: 30px 26px 22px; }
.year-title { font-size: 1.3rem; margin: 0 0 8px; }
.year-drops { display: grid; gap: 5px; }
.ym { display: grid; grid-template-columns: 18px repeat(28, 1fr); gap: 3px; align-items: center; }
.ym b { font: 700 .75rem var(--body); color: var(--ink-soft); }
.ym i {
  aspect-ratio: 5 / 6; background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 72'%3E%3Cpath d='M30 0C35 12 60 30 60 46a30 30 0 0 1-60 0C0 30 25 12 30 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 72'%3E%3Cpath d='M30 0C35 12 60 30 60 46a30 30 0 0 1-60 0C0 30 25 12 30 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
  scale: 0; transition: scale .4s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i) * 2.2ms);
}
.ym i.e { background: var(--line); opacity: .6; }
.year.in .ym i { scale: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: .85rem; font-weight: 600; }
.legend i { display: inline-block; width: 12px; height: 14px; margin-right: 5px; vertical-align: -2px; background: var(--c); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }

/* ------------------------------------------------------------- cards -- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; margin-top: 50px; }
.card { padding: 32px 24px 22px; text-align: center; rotate: var(--r); transition: rotate .3s, transform .3s; }
.card:hover { rotate: 0deg; transform: translateY(-6px); }
.card p { color: var(--ink-soft); margin: 0; }
.card-art { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 12px; font-size: 2.6rem; border-radius: 50%; background: color-mix(in srgb, var(--mood) 40%, #fff); transition: background .6s; }
.card-art .mochi { width: 70px; }
.doodle-svg { width: 56px; overflow: visible; }
.doodle-svg .flame { transform-origin: 30px 19px; animation: flicker .5s ease-in-out infinite alternate; }
.doodle-svg--help { animation: beat 1.6s ease-in-out infinite; }
.doodle-svg--lock path:first-child { animation: shackle 3s ease-in-out infinite; }
.card:hover .card-art { animation: boing .6s cubic-bezier(.3,1.6,.5,1); }

/* --------------------------------------------------------------- get -- */
.get-card { text-align: center; padding: 50px 30px 40px; max-width: 640px; margin: 0 auto; }
.get-icon { width: 110px; height: 110px; margin: 0 auto 18px; padding: 10px; border-radius: 30px; background: var(--coral); box-shadow: 0 6px 0 #D9604B; animation: bob 4s ease-in-out infinite; }
.stores { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.honest { text-align: center; max-width: 560px; margin: 40px auto 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ------------------------------------------------------------ footer -- */
.foot { position: relative; background: var(--ink); color: #F4EFE3; padding: 40px 0 34px; margin-top: 60px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; font-weight: 600; }
.foot p { margin: 0; opacity: .8; }

/* ----------------------------------------------------- Mochi motion -- */
.mochi { overflow: visible; }
.mochi .m-body { transform-origin: 50px 94px; animation: squish 3.2s ease-in-out infinite; }
.mochi .m-eyes { transform-origin: 50px 62px; animation: blink 5s infinite; }
.mochi .m-face { transition: transform .25s ease-out; }
.mochi .m-spark { transform-origin: 50px 40px; animation: twinkle 1.6s ease-in-out infinite alternate; }
.mochi .m-leaf { transform-origin: 82px 34px; animation: sway 3s ease-in-out infinite; }
.mochi .m-tear { animation: tear 2.6s ease-in infinite; }
.mochi .m-sweat { animation: tear 3s ease-in infinite; }
.mochi .m-steam { animation: steam 1.8s ease-out infinite; }
.mochi .m-dots circle { animation: dots 1.5s ease-in-out infinite; }
.mochi .m-dots circle:nth-child(2) { animation-delay: .2s; }
.mochi .m-dots circle:nth-child(3) { animation-delay: .4s; }
.mochi--anxious .m-body { animation: shiver 2.5s ease-in-out infinite; }

/* Tap ripple in the mood colour, like the app. */
.ripple { position: fixed; z-index: 40; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; border: 3px solid var(--mood-deep); animation: ripple .7s ease-out forwards; }

.reveal { opacity: 0; translate: 0 30px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; translate: 0 0; }

@keyframes flicker { to { transform: scale(.85, 1.15) rotate(4deg); } }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15%, 40% { transform: scale(1.1); } }
@keyframes shackle { 0%, 70%, 100% { transform: translateY(0); } 80%, 90% { transform: translateY(-4px); } }
@keyframes wave-arm { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-18deg); } }
.mochi .m-arm-r { transform-origin: 78px 66px; animation: wave-arm 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes roll { to { transform: translateX(-25%); } }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .55; } 100% { transform: translateY(-1050px) rotate(25deg); opacity: 0; } }
@keyframes squish { 50% { transform: scale(1.03, .97); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }
@keyframes sway { 50% { transform: rotate(-14deg); } }
@keyframes tear { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }
@keyframes steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes dots { 50% { transform: translateY(-3px); } }
@keyframes shiver { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(1.5deg); } 20%, 40% { transform: rotate(-1.5deg); } 50% { transform: rotate(0); } }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(1.15, .85); } 60% { transform: scale(.92, 1.08); } 100% { transform: scale(1); } }
@keyframes ripple { to { width: 120px; height: 120px; margin: -60px 0 0 -60px; opacity: 0; border-width: 1px; } }

/* ------------------------------------------------------- legal pages -- */
.sky--short { height: 520px; }
.legal { max-width: 780px; margin: 30px auto 80px; padding: 50px 56px 40px; rotate: -.4deg; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .4em 0; }
.legal li::marker { color: var(--mood-deep); }
.draft { display: inline-block; background: color-mix(in srgb, var(--coral) 30%, #fff); padding: 2px 12px; border-radius: 99px; }
.updated { color: var(--ink-soft); }
mark.todo { background: color-mix(in srgb, var(--mood) 55%, #fff); padding: 0 4px; border-radius: 4px; }

/* -------------------------------------------------------- responsive -- */
@media (max-width: 900px) {
  .hero, .feel, .book, .recap { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 10px; }
  .hero-art { min-height: 320px; order: -1; }
  .hero-mochi { width: 220px; }
  .hero-card { padding: 34px 24px 28px; }
  .book-copy { order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .top nav a:not(.btn) { display: none; }
  .sun { width: 120px; height: 120px; top: 70px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .legal { padding: 36px 22px 28px; }
  .cards { grid-template-columns: 1fr; }
  .feel-row { grid-template-columns: repeat(3, 1fr); }
  .spread { grid-template-columns: 1fr; }
  .page--left { border-radius: 10px 10px 2px 2px; }
  .page--right { border-radius: 2px 2px 10px 10px; min-height: 360px; }
  .band { padding: 70px 0; }
  .ym { grid-template-columns: 14px repeat(28, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; }
  .ym i { scale: 1; }
}
