/*
 * JJ the Sloth — launch page.
 * Loaded only on /brands/jj-the-sloth/ (see geenamoore_is_jj_page()).
 *
 * The look borrows from the JJ logo rather than from Geenamoore: chunky
 * charcoal outlines, sunny yellow, leaf green, and "sticker" buttons that press
 * down into their own shadow. Every colour pair here is checked:
 *   white on leaf #365B00 ...... 7.91:1     ink on yellow #FBD55A ...... 11.80:1
 *   charcoal on cream #FFF7E6 . 11.55:1     leaf on cream ............... 7.42:1
 *   yellow on leaf ............. 5.57:1     white on night #1E2A4A ..... 14.14:1
 *
 * Ambient movement (JJ bobbing, the sway) is decoration, so it all stops under
 * prefers-reduced-motion. UI transitions keep to the theme's 300ms ceiling.
 */

.jj {
  --jj-yellow: #FBD55A;
  --jj-yellow-soft: #FFF1C4;
  --jj-cream: #FFF7E6;
  --jj-paper: #FFFDF6;
  --jj-leaf: #365B00;
  --jj-leather: #7A4524;
  --jj-charcoal: #373435;
  --jj-muted: #56604F;
  --jj-ink: var(--gm-ink);
  --jj-line: 3px;
  --jj-pad: clamp(3.5rem, 8vw, 6rem);
  padding-block: var(--jj-pad);
  color: var(--jj-ink);
  /* Stickers and offset shadows poke past the edges on a phone; clip rather
     than let the page scroll sideways. `clip` keeps the nav's sticky intact. */
  overflow-x: clip;
}
/* Consecutive full-width bands touch. Without this the flow layout's block gap
   shows as white stripes between the coloured sections. */
main > .jj.jj,
main:has(> .jj-hero) > * { margin-block: 0; }

#jj-books, #jj-shop, #jj-adopt { scroll-margin-top: 5rem; }

/* ---------- type ---------- */
.jj-eyebrow {
  font-size: var(--gm-eyebrow); letter-spacing: var(--gm-eyebrow-lsp);
  text-transform: uppercase; font-weight: 800; color: var(--jj-leaf);
  margin-bottom: var(--gm-space-2);
}
/* A thick underline sits under the glyphs, so it reads as a highlighter stroke. */
.jj-title {
  font-weight: 900; letter-spacing: -0.02em; color: var(--jj-charcoal);
  text-decoration: underline; text-decoration-color: var(--jj-yellow);
  text-decoration-thickness: .28em; text-underline-offset: -0.06em;
  text-decoration-skip-ink: none;
  margin-top: 0;
}
.jj-lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); }
.has-text-align-center.jj-lead { max-width: 40ch; margin-inline: auto; }

/* ---------- sticker buttons ---------- */
.jj-actions { display: flex; flex-wrap: wrap; gap: var(--gm-space-3) var(--gm-space-4); margin-top: var(--gm-space-5); }
.jj-btn,
.jj .gm-product__buy,
.jj-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  color: var(--jj-charcoal); background: #fff;
  border: var(--jj-line) solid var(--jj-charcoal); border-radius: 999px;
  padding: .75rem 1.35rem;
  box-shadow: 4px 4px 0 var(--jj-charcoal);
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out);
}
.jj-btn--yellow, .jj .gm-product__buy { background: var(--jj-yellow); color: var(--jj-ink); }
.jj-btn--leaf { background: var(--jj-leaf); color: #fff; }
.jj-btn:active, .jj .gm-product__buy:active, .jj-ctl:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--jj-charcoal); }
@media (hover: hover) and (pointer: fine) {
  .jj-btn:hover, .jj .gm-product__buy:hover, .jj-ctl:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--jj-charcoal); text-decoration: none; }
}
.jj-btn:focus-visible, .jj .gm-product__buy:focus-visible, .jj-ctl:focus-visible { outline: 3px solid var(--jj-leaf); outline-offset: 3px; }
.jj-btn--play::before { content: ""; width: 0; height: 0; border-block: .42em solid transparent; border-inline-start: .7em solid currentColor; }

/* "New books out now" and "New episodes out now": little tilted stickers that
   are also links — to the books, and to the YouTube channel. */
.jj-chips { display: flex; flex-wrap: wrap; gap: var(--gm-space-2) var(--gm-space-3); margin: 0; }
.jj-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--jj-leaf); color: #fff; text-decoration: none;
  font-size: var(--gm-small); font-weight: 800; letter-spacing: .02em;
  padding: .35rem .9rem; border-radius: 999px;
  transform: rotate(-2deg);
  transition: transform var(--dur-press) var(--ease-out);
}
.jj-chip + .jj-chip { transform: rotate(1.5deg); }
.jj-chip--tv { background: var(--jj-charcoal); color: var(--jj-yellow); }
.jj-chip--tv::before { content: ""; border-block: .36em solid transparent; border-inline-start: .58em solid currentColor; }
.jj-chip:focus-visible { outline: 3px solid var(--jj-leaf); outline-offset: 3px; }
/* The site's link-hover colour and underline would otherwise win on hover. */
@media (hover: hover) and (pointer: fine) {
  .jj-chip:hover { transform: rotate(0) translateY(-2px); color: #fff; text-decoration: none; }
  .jj-chip--tv:hover { color: var(--jj-yellow); }
}

/* ================= HERO ================= */
.jj-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(42% 60% at 82% 46%, #FFE9A6 0%, rgba(255, 233, 166, 0) 70%),
    var(--jj-cream);
}
.jj-hero__grid {
  width: min(100% - (var(--gm-gutter) * 2), var(--gm-wide));
  margin-inline: auto;
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
@media (min-width: 861px) { .jj-hero__grid { grid-template-columns: 1.08fr 1fr; } }
.jj-hero__logo { display: block; width: min(100%, 600px); height: auto; margin: var(--gm-space-4) 0 0 -2%; }
.jj-hero__title {
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem); font-weight: 900;
  line-height: 1.04; letter-spacing: -0.025em; color: var(--jj-charcoal);
  margin: var(--gm-space-3) 0 var(--gm-space-4);
}
.jj-hero__lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); max-width: 44ch; margin: 0; }
.jj-hero__art { position: relative; padding-top: clamp(5.5rem, 9vw, 6.5rem); }
.jj-hero__twins { display: block; width: 100%; height: auto; transform-origin: 50% 100%; animation: jj-bob 5s ease-in-out infinite; }

/* JJ talks: his face as the avatar, a speech bubble beside it. */
.jj-say { position: absolute; top: 0; inset-inline: 2% 0; display: flex; align-items: flex-end; gap: var(--gm-space-3); z-index: 2; }
.jj-say__face { display: block; width: 68px; height: 68px; flex: none; border-radius: 50%; border: var(--jj-line) solid var(--jj-charcoal); background: #fff; }
.jj-say__face, .jj-say__btn { order: -1; }              /* avatar first, bubble beside it */
.jj-say__talk .jj-say__bubble { cursor: pointer; }      /* only clickable once the script runs */
.jj-book:has(.jj-book__flip) .jj-book__tilt { cursor: pointer; }
.jj-say__btn {
  flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  animation: jj-sway 6s ease-in-out infinite; transform-origin: 50% 0;
}
.jj-say__btn:focus-visible { outline: 3px solid var(--jj-leaf); outline-offset: 4px; }
.jj-say__btn.is-wiggling { animation: jj-wiggle 300ms var(--ease-out); }
.jj-say__talk { display: grid; gap: .3rem; }
.jj-say__bubble {
  margin: 0; position: relative;
  background: #fff; color: var(--jj-ink);
  border: var(--jj-line) solid var(--jj-charcoal); border-radius: 22px 22px 22px 6px;
  box-shadow: 4px 4px 0 var(--jj-charcoal);
  padding: .65rem 1rem; font-weight: 750; line-height: 1.35;
  max-width: 30ch; text-wrap: balance;
}
.jj-say__hint { margin: 0; font-size: .8125rem; font-weight: 650; color: var(--jj-muted); }

/* ================= MEET ================= */
.jj-meet { background: #fff; }
.jj-meet__cols { gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.jj-card {
  background: #fff; border: var(--jj-line) solid var(--jj-charcoal); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--jj-yellow);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.jj-card h3 { margin-top: 0; font-weight: 900; }
.jj-badges, .jj-uses { list-style: none; padding: 0; margin: var(--gm-space-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--gm-space-2); }
.jj-badges li {
  background: var(--jj-yellow); color: var(--jj-ink);
  border: 2px solid var(--jj-charcoal); border-radius: 999px;
  padding: .35rem .85rem; font-weight: 800; font-size: var(--gm-small);
  transition: transform 200ms var(--ease-out);
}
/* Emoji with empty alt text, so screen readers read only the words. Firefox
   ignores the alt syntax, so the plain declaration comes first as its fallback. */
.jj-badges li::before { margin-inline-end: .35rem; }
.jj-badges li:nth-child(1)::before { content: "🌱"; content: "🌱" / ""; }
.jj-badges li:nth-child(2)::before { content: "⏰"; content: "⏰" / ""; }
.jj-badges li:nth-child(3)::before { content: "💛"; content: "💛" / ""; }
.jj-badges li:nth-child(4)::before { content: "🎉"; content: "🎉" / ""; }
@media (hover: hover) and (pointer: fine) {
  .jj-badges li:hover { transform: rotate(-3deg) scale(1.05); }
}

/* ================= BOOKS ================= */
.jj-books { background: var(--jj-cream); }
.jj-bookrow {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 782px) {
  .jj-bookrow { grid-template-columns: 1.1fr 1fr; }
  .jj-bookrow--flip { grid-template-columns: 1fr 1.1fr; }
  .jj-bookrow--flip .jj-book { order: 2; }
}
.jj-bookrow__info > :first-child { margin-top: 0; }
.jj-booktitle { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.25rem); font-weight: 900; letter-spacing: -0.02em; margin: var(--gm-space-2) 0; }
.jj-byline { color: var(--jj-muted); font-weight: 650; font-size: var(--gm-small); margin-top: 0; }
.jj-kicker {
  display: inline-block; margin: 0;
  background: var(--jj-charcoal); color: var(--jj-yellow);
  font-size: var(--gm-eyebrow); letter-spacing: .08em; text-transform: uppercase; font-weight: 800;
  padding: .3rem .7rem; border-radius: 6px;
}

/* The book: a tilt layer that follows the pointer, and inside it a card that
   turns over. Page edges are stacked shadows, which turn with each face. */
.jj-book { perspective: 1600px; }
.jj-book__tilt {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 160ms var(--ease-out);
}
.jj-book__card {
  position: relative; aspect-ratio: 1484 / 1050;
  transform-style: preserve-3d;
  transition: transform 300ms var(--ease-in-out);
}
.jj-book.is-flipped .jj-book__card { transform: rotateY(180deg); }
.jj-book__face {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 5px 14px 14px 5px;
  box-shadow:
    3px 3px 0 #F4E9D3, 6px 6px 0 #E3D2B0, 9px 9px 0 #F4E9D3,
    18px 26px 40px -14px rgba(40, 25, 15, .5);
}
.jj-book__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jj-book__face--back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; justify-content: center; gap: var(--gm-space-3);
  padding: clamp(1.25rem, 5%, 2.5rem) clamp(1.5rem, 8%, 3.5rem);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .08), transparent 60%),
    var(--jj-leather);
  color: #fff;
  border-radius: 14px 5px 5px 14px;
  font-size: clamp(.875rem, .8rem + .35vw, 1.0625rem); line-height: 1.5;
}
.jj-book__face--back p { margin: 0; }
.jj-book__face--art { padding: 0; }
.jj-book__kicker { font-size: var(--gm-eyebrow); letter-spacing: var(--gm-eyebrow-lsp); text-transform: uppercase; font-weight: 800; color: var(--jj-yellow); }
.jj-book__quote { font-size: 1.25em; font-weight: 800; line-height: 1.3; }
.jj-book__sticker {
  position: absolute; z-index: 3; inset-block-start: -16px; inset-inline-end: -8px; margin: 0;
  transform: rotate(7deg);
  background: var(--jj-yellow); color: var(--jj-ink);
  border: var(--jj-line) solid var(--jj-charcoal); border-radius: 999px;
  padding: .35rem .85rem; font-size: .8125rem; font-weight: 800;
  box-shadow: 3px 3px 0 var(--jj-charcoal);
}
.jj-book__flip { display: flex; width: fit-content; margin: clamp(1.5rem, 3vw, 2rem) auto 0; font-size: var(--gm-small); padding: .55rem 1.1rem; }

/* price, offer and buy button inside the book details */
.jj .gm-product-buy { margin-top: var(--gm-space-5); }
.jj .gm-product__meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--gm-space-2) var(--gm-space-4); align-items: center; }
.jj .gm-product__price { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 900; color: var(--jj-leaf); letter-spacing: -0.01em; }
.jj .gm-offer__was { font-size: 1.125rem; }
.jj .gm-offer__note { background: var(--jj-yellow); color: var(--jj-ink); border: 2px solid var(--jj-charcoal); }
.jj .gm-product__action { margin: var(--gm-space-4) 0 0; }
.jj .gm-buy { margin-top: var(--gm-space-5); gap: var(--gm-space-4); }
.jj .gm-buy__format legend { font-weight: 800; color: var(--jj-charcoal); }
.jj .gm-buy__format-options { gap: var(--gm-space-3); }
.jj .gm-buy__format-option span {
  padding: .65rem 1rem; font-weight: 800;
  border: var(--jj-line) solid var(--jj-charcoal); border-radius: 14px;
}
.jj .gm-buy__format-option input:checked + span { border-color: var(--jj-charcoal); background: var(--jj-yellow); box-shadow: 3px 3px 0 var(--jj-charcoal); }
.jj .gm-buy__format-option input:focus-visible + span { border-color: var(--jj-charcoal); outline: 3px solid var(--jj-leaf); outline-offset: 2px; box-shadow: none; }
.jj .gm-buy__qty { font-weight: 800; color: var(--jj-charcoal); }
.jj .gm-buy__qty input {
  width: 5.25rem; padding: .65rem .8rem; font-weight: 800;
  border: var(--jj-line) solid var(--jj-charcoal); border-radius: 14px;
}
.jj .gm-buy__qty input:focus-visible { border-color: var(--jj-charcoal); outline: 3px solid var(--jj-leaf); outline-offset: 2px; box-shadow: none; }
.jj .gm-buy .gm-product__buy { border: var(--jj-line) solid var(--jj-charcoal); font-size: 1.0625rem; padding: .8rem 1.6rem; }

.jj .gm-buy__choice { font-weight: 800; color: var(--jj-charcoal); }
.jj .gm-buy__choice select {
  padding: .65rem .8rem; font-weight: 750;
  border: var(--jj-line) solid var(--jj-charcoal); border-radius: 14px;
}
.jj .gm-buy__choice select:focus-visible { border-color: var(--jj-charcoal); outline: 3px solid var(--jj-leaf); outline-offset: 2px; box-shadow: none; }

/* ================= JJ'S SHOP ================= */
/* The dispatch date, centred under the books heading and the combo banner. */
.jj .gm-dispatch-note {
  width: fit-content; max-width: 100%; margin: var(--gm-space-4) auto 0 !important;
  background: #fff; border: 2px solid var(--jj-charcoal); border-radius: 999px;
  padding: .45rem 1rem; font-size: var(--gm-small); font-weight: 750; text-wrap: balance;
}
.jj-shop { background: #fff; }
.jj-combo {
  width: fit-content; max-width: 100%; margin: var(--gm-space-4) auto 0 !important;
  background: var(--jj-yellow); color: var(--jj-ink);
  border: var(--jj-line) solid var(--jj-charcoal); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--jj-charcoal);
  padding: .6rem 1.2rem; font-weight: 650; text-wrap: balance;
  transform: rotate(-1deg);
}
.jj-items {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: clamp(2rem, 5vw, 3.5rem) !important;
}
/* The flow layout's block gap would push every card but the first down a step. */
.jj-items > .jj-item { margin-block: 0; }
.jj-item {
  display: flex; flex-direction: column;
  background: #fff; border: var(--jj-line) solid var(--jj-charcoal); border-radius: 22px;
  box-shadow: 6px 6px 0 var(--jj-yellow);
  padding: var(--gm-space-3) var(--gm-space-3) var(--gm-space-5);
}
.jj-item > * { margin-inline: var(--gm-space-2); }
.jj-item > p:empty { display: none; }               /* left over from wrapping the shortcode */
.jj-item__photo { margin: 0 !important; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: var(--jj-cream); }
.jj-item__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jj-item__name { font-size: var(--gm-h3); font-weight: 900; letter-spacing: -0.01em; margin: var(--gm-space-4) var(--gm-space-2) var(--gm-space-2); }
.jj-item__blurb { color: var(--jj-muted); font-size: var(--gm-small); margin-top: 0; }
.jj-item .gm-product-buy { margin-top: auto; padding-top: var(--gm-space-2); }
.jj-item .gm-product__price { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.7rem); }
.jj-item .gm-buy { gap: var(--gm-space-3); }

/* ================= A DAY WITH JJ ================= */
.jj-dayband {
  --sky: #CDEBFA;
  position: relative; overflow: hidden;
  background: var(--sky);
  transition: background-color 300ms var(--ease-out);
}
.jj-dayband[data-sky="dawn"]      { --sky: #FFDCC2; }
.jj-dayband[data-sky="morning"]   { --sky: #FFF0B8; }
.jj-dayband[data-sky="day"]       { --sky: #CDEBFA; }
.jj-dayband[data-sky="afternoon"] { --sky: #FFE29A; }
.jj-dayband[data-sky="evening"]   { --sky: #F7C6A3; }
.jj-dayband[data-sky="dusk"]      { --sky: #C9B6E4; }
.jj-dayband[data-sky="night"]     { --sky: #1E2A4A; }
/* Stars come out at night. */
.jj-dayband::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 28% 62%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 46% 12%, #FFF3C4 50%, transparent 52%),
    radial-gradient(2px 2px at 64% 40%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 78% 14%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 88% 58%, #FFF3C4 50%, transparent 52%),
    radial-gradient(2px 2px at 8% 82%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 94% 86%, #fff 50%, transparent 52%);
  transition: opacity 300ms var(--ease-out);
}
.jj-dayband[data-sky="night"]::before { opacity: 1; }
.jj-dayband > * { position: relative; }
.jj-dayband[data-sky="night"] .jj-title,
.jj-dayband[data-sky="night"] .jj-lead { color: #fff; }
.jj-dayband[data-sky="night"] .jj-eyebrow { color: var(--jj-yellow); }

/* Without JavaScript the day is a simple timeline. */
.jj-day__list { list-style: none; padding: 0; margin: var(--gm-space-6) auto 0; max-width: 46rem; display: grid; gap: var(--gm-space-3); }
.jj-day__list li {
  background: #fff; border: 2px solid var(--jj-charcoal); border-radius: 16px;
  padding: var(--gm-space-3) var(--gm-space-4);
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 var(--gm-space-3);
}
.jj-day__list strong { color: var(--jj-leaf); grid-row: span 2; }
.jj-day__list span { font-weight: 800; }
.jj-day__list em { font-style: normal; color: var(--jj-muted); grid-column: 2; }
.jj-day.is-ready .jj-day__list { display: none; }

.jj-day__ui {
  max-width: 54rem; margin: var(--gm-space-6) auto 0;
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
@media (min-width: 700px) { .jj-day__ui { grid-template-columns: auto 1fr; } }

.jj-clock {
  position: relative; justify-self: center;
  width: clamp(190px, 28vw, 250px); aspect-ratio: 1;
  border-radius: 50%; background: #fff;
  border: 6px solid var(--jj-charcoal); box-shadow: 6px 6px 0 var(--jj-charcoal);
}
/* twelve ticks around the rim */
.jj-clock::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  background: repeating-conic-gradient(from -1.5deg, var(--jj-charcoal) 0 3deg, transparent 3deg 30deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
}
.jj-clock__num { position: absolute; font-weight: 900; font-size: 1.05rem; color: var(--jj-charcoal); transform: translate(-50%, -50%); }
.jj-clock__hand {
  position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%;
  border-radius: 999px; background: var(--jj-charcoal);
  transform: translateX(-50%) rotate(var(--a, 0deg));
  transition: transform 300ms var(--ease-in-out);
}
.jj-clock__hand--h { width: 9px; height: 25%; }
.jj-clock__hand--m { width: 6px; height: 36%; background: var(--jj-leaf); }
.jj-clock__cap { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--jj-yellow); border: 4px solid var(--jj-charcoal); }

/* ================= JJ'S DIGITAL CLOCK =================
   The campaign clock, in "Meet JJ", telling the visitor's real time. The
   artwork's screen was wiped and the time is written onto it. Everything inside
   is sized in cqw — hundredths of the clock's own width — so the digits stay
   on the screen at any size. The screen box is where "12:20" sat in the
   original; without JavaScript it still reads 12:20, the campaign time. */
@font-face {
  font-family: 'DSEG7 Classic';
  src: url('../fonts/DSEG7Classic-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal;
  /* "!" is the font's blank digit; never show it in a fallback font. */
  font-display: block;
}
.jj-dclock {
  position: relative;
  width: min(100%, 340px); margin: 0 auto var(--gm-space-6);
  container-type: inline-size;
  filter: drop-shadow(0 14px 18px rgba(31, 43, 26, .25));
  transform: rotate(-2deg);
}
.jj-dclock__caption {
  margin-top: var(--gm-space-2); text-align: center;
  font-size: var(--gm-small); font-weight: 750; color: var(--jj-muted);
  transform: rotate(2deg);                 /* undo the clock's tilt for the words */
}
.jj-dclock__img { display: block; width: 100%; height: auto; }
/* Measured, not guessed. The artwork is 830×496, so its height is 59.76cqw.
   Its digits were 37.9% of that tall (22.65cqw) and DSEG7 digits are exactly
   1em, so the font size is 22.65cqw. "2:20" was 40cqw wide and DSEG7's "8:88"
   is 2.454em of ink, so the text is squeezed to 72%. The hours' tens digit is
   a narrow slot beside the bell — "1" or blank, as on the real clock — so a
   full "88:88" never runs into the bell. Positions are in cqw rather than %
   because the caption makes the figure taller than the clock. */
.jj-dclock__screen {
  position: absolute; left: 15.5cqw; top: 13.39cqw;
  font: 700 22.65cqw/1 'DSEG7 Classic', ui-monospace, monospace;
  color: #1F2318; white-space: nowrap;
  transform: scaleX(.72); transform-origin: 0 0;
}
.jj-dclock__ghost, .jj-dclock__digits { position: absolute; left: 0; top: 0; }
.jj-dclock__ghost { color: rgba(31, 35, 24, .07); }
.jj-dclock__colon { animation: jj-blink 1s steps(1, end) infinite; }
.jj-dclock__ampm {
  position: absolute; left: 13.6cqw; top: 28.1cqw;
  font-weight: 800; font-size: 4.6cqw; letter-spacing: .04em; color: #1F2318;
}

.jj-day__card {
  position: relative;
  background: #fff; border: var(--jj-line) solid var(--jj-charcoal); border-radius: 22px;
  box-shadow: 6px 6px 0 var(--jj-charcoal);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
  min-height: 12.5rem;
}
.jj-day__avatar { position: absolute; inset-block-start: -30px; inset-inline-end: 18px; width: 64px; height: 64px; border-radius: 50%; border: var(--jj-line) solid var(--jj-charcoal); background: #fff; }
.jj-day__time { margin: 0; font-weight: 900; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); color: var(--jj-leaf); letter-spacing: -0.02em; line-height: 1.1; }
.jj-day__title { margin: var(--gm-space-1) 0 var(--gm-space-2); font-weight: 900; font-size: var(--gm-h3); }
.jj-day__text { margin: 0; }
.jj-day__card.is-changing .jj-day__time,
.jj-day__card.is-changing .jj-day__title,
.jj-day__card.is-changing .jj-day__text { opacity: 0; transform: translateY(4px); }
.jj-day__time, .jj-day__title, .jj-day__text { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }

.jj-day__controls {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--gm-space-3); align-items: center;
}
.jj-ctl--icon { width: 3rem; height: 3rem; padding: 0; font-size: 1.25rem; }
.jj-ctl--play { width: auto; height: auto; padding: .7rem 1.35rem; font-size: 1rem; grid-column: 1 / -1; justify-self: center; background: var(--jj-yellow); color: var(--jj-ink); }
.jj-ctl[disabled] { opacity: .45; cursor: default; box-shadow: 4px 4px 0 var(--jj-charcoal); transform: none; }
.jj-day__range { width: 100%; accent-color: var(--jj-leaf); height: 2rem; cursor: pointer; }
.jj-day__ends { grid-column: 1 / -1; display: flex; justify-content: space-between; font-weight: 800; font-size: var(--gm-small); color: var(--jj-charcoal); margin-top: -.25rem; }
.jj-dayband[data-sky="night"] .jj-day__ends { color: #fff; }

/* ================= WATCH ================= */
.jj-watch { background: var(--jj-leaf); color: #fff; }
.jj-watch__card { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 58rem; margin-inline: auto !important; }
@media (min-width: 700px) { .jj-watch__card { grid-template-columns: auto 1fr; } }
.jj-watch__face { margin: 0; justify-self: center; }
.jj-watch__face img {
  display: block; width: clamp(120px, 18vw, 180px) !important; height: auto !important;
  background: var(--jj-yellow); border-radius: 50%; padding: 6px; border: 5px solid #fff;
  animation: jj-sway 6s ease-in-out infinite; transform-origin: 50% 0;
}
.jj-watch .jj-eyebrow { color: var(--jj-yellow); }
.jj-watch .jj-title { color: #fff; }
.jj-watch__copy > p:not(.jj-eyebrow):not(.jj-actions) { max-width: 52ch; }

/* ================= ADOPT A PLUSHIE ================= */
.jj-adopt { background: var(--jj-yellow-soft); }
.jj-adopt__cols { gap: clamp(2rem, 5vw, 4rem); }
/* The real plushie, front and back, as a card that turns around like the books.
   It is a product photo on white, so it gets a sticker frame rather than page
   edges, and stands a little crooked on the yellow. */
.jj-book--plush { max-width: 360px; margin-inline: auto; }
.jj-book--plush .jj-book__tilt { rotate: -2deg; }
.jj-book--plush .jj-book__card { aspect-ratio: 3 / 5; }
.jj-book--plush .jj-book__face {
  background: #fff; border-radius: 18px;
  border: 4px solid var(--jj-charcoal);
  box-shadow: 8px 8px 0 var(--jj-charcoal);
}.jj-uses li {
  background: #fff; border: 2px solid var(--jj-charcoal); border-radius: 999px;
  padding: .4rem .9rem; font-weight: 750; font-size: var(--gm-small);
}
.jj-uses li::before { content: "♥"; content: "♥" / ""; color: #B32D2E; margin-inline-end: .4rem; }
.jj-impact {
  margin-top: var(--gm-space-5);
  background: #fff; border-inline-start: 6px solid var(--jj-leaf); border-radius: 12px;
  padding: var(--gm-space-4) var(--gm-space-5); font-weight: 650;
}

/* ================= LETTER ================= */
.jj-letter { background: var(--jj-cream); }
.jj-note {
  position: relative; max-width: 40rem; margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem);
  background:
    repeating-linear-gradient(to bottom, transparent 0 calc(1.7em - 1px), #EADFC6 calc(1.7em - 1px) 1.7em),
    var(--jj-paper);
  line-height: 1.7;
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(40, 25, 15, .45);
  transform: rotate(-1deg);
}
/* a strip of tape holding the note up */
.jj-note::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(251, 213, 90, .75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.jj-note p { margin: 0 0 1.7em; }
.jj-note__lead { font-size: 1.25rem; font-weight: 750; }
.jj-note__sign { margin-bottom: 0 !important; }
.jj-note a { color: var(--jj-leaf); font-weight: 750; }

/* ================= MOTION ================= */
@keyframes jj-bob    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes jj-sway   { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes jj-wiggle { 0% { transform: rotate(0); } 30% { transform: rotate(-14deg) scale(1.08); } 65% { transform: rotate(10deg) scale(1.08); } 100% { transform: rotate(0); } }
@keyframes jj-blink  { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .jj-hero__twins, .jj-say__btn, .jj-say__btn.is-wiggling, .jj-watch__face img,
  .jj-dclock__colon { animation: none; }
  .jj-book__tilt { transform: none; }
  .jj-chip, .jj-chip + .jj-chip { transition: none; }
  .jj-book__card, .jj-clock__hand, .jj-dayband, .jj-dayband::before,
  .jj-day__time, .jj-day__title, .jj-day__text { transition: none; }
  .jj-day__card.is-changing .jj-day__time,
  .jj-day__card.is-changing .jj-day__title,
  .jj-day__card.is-changing .jj-day__text { transform: none; }
  .jj-badges li:hover { transform: none; }
}
