/* ==================================================================== */
/* The homepage below the hero (docs/index.html; behaviour in           */
/* assets/sections.js). Each section follows its approved mockup in     */
/* tools/sipply/site-refs/comps:                                        */
/*   #dex     dex-1.png     the count, the chips, the dealt spread      */
/*   #recipe  recipe-1.png  the Daiquiri, Nº 0100, on the cream         */
/*   #people  shelf-1.png   two phones, "Your shelf, your friends"      */
/*   #beta    close-1.png   "Start your Dex." on the red                */
/*                                                                      */
/* The drawn language is sipply.css's: the marker for names and big    */
/* words, the poster's capitals for heads and the outlined figures,     */
/* Archivo for the rest, red for the pen alone, squared keys and chips, */
/* no texture anywhere. Every doodle is pen.js, the app's own hand.     */
/*                                                                      */
/* MOTION is light here (the hero's ink is the page's one heavy         */
/* moment): marks draw in once, headings rise word by word (motion.js), */
/* blocks rise once ([data-reveal]), cards are dealt, doodles drift a   */
/* little with the scroll ([data-drift], sections.js). With Reduce      */
/* Motion all of it is simply there.                                    */
/* ==================================================================== */

.sec { position: relative; }
.sec .dd { position: absolute; pointer-events: none; }
.sec .dd > [data-pen] { display: block; }

/*
 * THE BRUSHED JOINS. Where a section with a colour of its own meets the page's sweep, the colour runs
 * into it with the ink's own dry-brush edge, not a ruled line: img/edge-brush-{1,2,3}.png (2048 x 96
 * alpha strips rendered once from ink.js's brush sprites, scripts/site-hero/edges.mjs; files, because
 * the policy is img-src 'self'). Each is a band inside its own section's padding, so it never sits on
 * a word: the hero's field (hero.js sets --edge-c to the drink on screen) into the top of the Dex, the
 * cream up into the Dex's foot and down into the shelf's head, the red up into the shelf's foot. The mockups' colours stay as they are; only the joins are drawn.
 */
.dex, .shelf { --edge-h: clamp(44px, 6.6vw, 96px); }
/* A jump to the Dex ("The Dex" in the head, a #dex link) lands with the brushed band of the hero's colour gone up under the
   closed head, so the head sits on the Dex's white as dex-1.png draws it (motion.js scrollTo honours scroll-margin, as a
   native jump does; site.js turns the head white once the band has passed under it: data-over-until). */
#dex { scroll-margin-top: calc(-1 * var(--edge-h)); }
.dex::before, .dex::after, .shelf::before, .shelf::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--edge-h); z-index: 0; pointer-events: none;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: auto 100%; mask-size: auto 100%;
}
.dex::before {
  top: -1px; background-color: var(--edge-c, var(--field-daiquiri)); transform: scaleY(-1);
  -webkit-mask-image: url("../img/edge-brush-1.png"); mask-image: url("../img/edge-brush-1.png"); -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: background-color .3s ease;
}
.dex::after {
  bottom: -1px; background-color: #FFF4E2;
  -webkit-mask-image: url("../img/edge-brush-2.png"); mask-image: url("../img/edge-brush-2.png"); -webkit-mask-position: -620px 0; mask-position: -620px 0;
}
.shelf::before {
  top: -1px; background-color: #FFF4E2; transform: scaleY(-1);
  -webkit-mask-image: url("../img/edge-brush-3.png"); mask-image: url("../img/edge-brush-3.png"); -webkit-mask-position: -1180px 0; mask-position: -1180px 0;
}
.shelf::after {
  bottom: -1px; background-color: var(--red);
  -webkit-mask-image: url("../img/edge-brush-1.png"); mask-image: url("../img/edge-brush-1.png"); -webkit-mask-position: -910px 0; mask-position: -910px 0;
}
.dex > .wrap, .shelf > .wrap { position: relative; z-index: 1; }
@media print { .dex::before, .dex::after, .shelf::before, .shelf::after { display: none; } }
@media (forced-colors: active) { .dex::before, .dex::after, .shelf::before, .shelf::after { display: none; } }

/* THE PEN'S THREAD (sections.js, 1024+ wide): one SVG over <main>, its ink the pen's red, white over the red of "Start your Dex.";
   a dot rides its tip. Where it runs, the shelf's own arrow stands aside (the thread draws it). */
main { position: relative; }
.pen-thread { position: absolute; left: 0; z-index: 3; overflow: visible; pointer-events: none; }
.pen-thread .pt-ink { fill: var(--red); }
.pen-thread .pt-ink.is-white, .pen-thread .pt-dot.is-white { fill: var(--white); }
.pen-thread .pt-dot { fill: var(--red); }
.thread-arrow { position: absolute; z-index: 3; --pen: var(--red); pointer-events: none; }
/* the thread draws the shelf's arrow (the drawn one keeps its place, unseen) */
.has-thread .shelf-arrow { display: none; }
@media print { .pen-thread, .thread-arrow { display: none; } }
@media (forced-colors: active) { .pen-thread { display: none; } }

/* THE PIN's hand-off (hero.js, html.hero-pinned): the Dex slides up over the held hero from its foot, its field-coloured band
   first (the hero's copy and deck go before its edge reaches them), and the glass flies into its first card. Half a window of
   overlap: at the pin's end that card's print is on screen. It has a ground of its own then (white, the sweep's top), from just
   under the band's own top, which fades in over 12px (no ruled edge across anything of the hero's). */
.hero-pinned .dex { margin-top: -50vh; z-index: 2; background: linear-gradient(to bottom, transparent 12px, var(--white) 12px); }
.hero-pinned .dex::before {
  -webkit-mask-image: url("../img/edge-brush-1.png"), linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
  mask-image: url("../img/edge-brush-1.png"), linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
  -webkit-mask-repeat: repeat-x, no-repeat; mask-repeat: repeat-x, no-repeat;
  -webkit-mask-size: auto 100%, 100% 100%; mask-size: auto 100%, 100% 100%;
  -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* the card the glass lands in (hero.js landInto, fly): placed, not dealt; its print waits empty until the glass hands over */
.hero-pinned .dex.is-armed .dex-set .dslot.dex-land { opacity: 1; transform: translate3d(0, var(--oy, 0px), 0) rotate(var(--r, 0deg)); transition: none; }
.hero-pinned .dslot.dex-land .print img { opacity: 0; transition: opacity .18s var(--ease-out); }
.hero-pinned .dslot.dex-land.is-landed .print img { opacity: 1; }

/* Rising once, as a block comes into view (sections.js adds .sx to <html>; without it, nothing hides). */
@media (prefers-reduced-motion: no-preference) {
  .sx [data-reveal] { transition: opacity .8s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms); }
  .sx [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 22px, 0); }
}

/* A section's small head, the poster's capitals with the swash drawn under (the app's `sub`). */
.sec-eyebrow { position: relative; display: inline-block; margin: 0; padding-bottom: 12px; font: 400 clamp(1.25rem, .75rem + .95vw, 1.75rem)/1 var(--f-poster); text-transform: uppercase; letter-spacing: .1em; }
.sec-eyebrow .eb-swash { position: absolute; left: -2px; bottom: 0; }

/* ==================================================================== */
/* The Dex                                                              */
/* ==================================================================== */

.dex { padding: clamp(84px, 9vw, 150px) 0 clamp(72px, 8vw, 132px); overflow-x: clip; }
.dex-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .dex-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 clamp(44px, 5vw, 96px); align-items: center; }
}
.dex-copy { position: relative; z-index: 2; }

/* The count: the floor of what the chip chooses, outlined; what it counts in solid capitals; the whole in a smaller line. */
.dex-count { position: relative; margin-top: clamp(26px, 3vw, 44px); }
.dc-rays { position: absolute; width: clamp(54px, 5vw, 80px); left: clamp(96px, 11vw, 190px); top: calc(-1 * clamp(40px, 4vw, 66px)); }
.dc-fig {
  position: relative; display: grid; margin: 0 0 0 -0.02em; padding: .05em 0 .02em;
  font-size: clamp(6.5rem, 13vw, 14.75rem); line-height: .9; overflow: hidden;
  --outline-w: clamp(2px, .19vw, 3.4px);
}
.dc-num, .dc-word { grid-area: 1 / 1; display: block; white-space: nowrap; }
.dc-ch { display: inline-block; }
.dc-what { display: grid; margin: .3em 0 0; overflow: hidden; font: 400 clamp(2.875rem, 5.4vw, 5.75rem)/.98 var(--f-poster); text-transform: uppercase; letter-spacing: .004em; padding-top: .04em; }
.dc-all { margin: .34em 0 0; font: 400 clamp(1.5rem, 1rem + 1.175vw, 2.5rem)/1 var(--f-poster); text-transform: uppercase; letter-spacing: .01em; }
.dc-swash { display: block; width: min(92%, 470px); margin-top: clamp(16px, 1.6vw, 26px); }
/* A chip changes the count: the old figure rolls up out of its line's mask, then the new one rolls up into it
   (sections.js sets --after on the new one), so the two are never drawn over each other. Transform only. */
@media (prefers-reduced-motion: no-preference) {
  .dc-ch { transition: transform .62s var(--ease-out) calc(var(--i, 0) * 40ms + var(--after, 0ms)); }
  .is-enter .dc-ch { transform: translate3d(0, 110%, 0); transition: none; }
  .is-leave .dc-ch { transform: translate3d(0, -110%, 0); transition: transform .3s var(--ease-in) calc(var(--i, 0) * 26ms); }
}

.dex-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }
.dex-chips .chip { min-height: clamp(46px, 3.7vw, 58px); padding: 0 clamp(18px, 2vw, 32px); font-size: clamp(1rem, .5938rem + .71vw, 1.375rem); }
@media (prefers-reduced-motion: no-preference) {
  .dex-chips .chip { transition: background-color .18s ease, color .18s ease, transform .5s var(--spring); }
  .dex-chips .chip:active { transform: scale(.95); transition-duration: .12s; }
  .dex-chips .chip.is-pop { animation: chip-pop .62s var(--spring); }
}
@keyframes chip-pop { 0% { transform: scale(.92); } 100% { transform: none; } }
html:not(.js) .dex-chips { display: none; }

.dex-lede { margin-top: clamp(28px, 3vw, 44px); max-width: 30ch; font: 500 clamp(1.125rem, .6406rem + .75vw, 1.4375rem)/1.4 var(--f-text); letter-spacing: -.012em; text-wrap: pretty; }
.dex-body { margin-top: 14px; max-width: 46ch; color: var(--muted); font-size: clamp(1rem, .5156rem + .575vw, 1.0625rem); text-wrap: pretty; }

/* ---- The spread: six cards, dealt, each a little turned ---- */
.dex-spread { position: relative; z-index: 1; padding: 18px clamp(4px, 1vw, 14px) clamp(118px, 10vw, 150px); }
.dex-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 40px) clamp(14px, 1.7vw, 28px);
  margin: 0; padding: 0; list-style: none; align-items: start;
}
@media (max-width: 699px) { .dex-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; } }
.dslot { position: relative; transform: translate3d(0, var(--oy, 0px), 0) rotate(var(--r, 0deg)); }
.dslot:hover, .dslot:focus-within { z-index: 3; }

/* The card: a print on its paper, the name in the marker under it, its Nº. */
.dcard {
  --tx: 0deg; --ty: 0deg; --lift: 0px; --sc: 1;
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  border-radius: var(--r);
  transform: perspective(1100px) translate3d(0, var(--lift), 0) rotateX(var(--tx)) rotateY(var(--ty)) scale(var(--sc));
  transition: transform .5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.dpaper {
  position: relative; display: block; padding: 7.5% 7.5% 0; border-radius: var(--r);
  background: #FCFBF8;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, .035), 0 1px 2px rgba(10, 10, 10, .06), 0 10px 22px -10px rgba(10, 10, 10, .2), 0 26px 46px -26px rgba(10, 10, 10, .3);
  transition: box-shadow .5s var(--ease-out);
}
.dcard .print { display: block; aspect-ratio: 1; }
.dcap { display: block; padding: 10px 2px clamp(12px, 1.2vw, 18px); }
.dcap .drink-name { display: block; font-size: clamp(1.1875rem, .7344rem + .81vw, 1.75rem); line-height: 1.12; text-wrap: balance; }
.dcap .dexno { display: block; margin-top: 3px; font-size: clamp(.75rem, .4062rem + .475vw, .875rem); color: var(--ink); opacity: .74; }
/* light catching the print as the card turns under the pointer (sections.js sets --gx --gy) */
.sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 10%), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 58%); transition: opacity .5s var(--ease-out); }
/* the lean and the lift ride springs (sections.js) on a mouse: no transition under them then */
.dcard.is-tilting { transition: none; }
.dcard.is-hover .dpaper { box-shadow: 0 0 0 1px rgba(10, 10, 10, .035), 0 2px 3px rgba(10, 10, 10, .06), 0 22px 34px -14px rgba(10, 10, 10, .26), 0 50px 70px -34px rgba(10, 10, 10, .36); }
.dcard.is-hover .sheen { opacity: 1; }
/*
 * A CARD ANSWERS THE POINTER (a mouse or trackpad, or a key's focus): it lifts and leans (sections.js), straightens to 40%
 * of its turn on the spring (260 ms), its shadow deepens, and the light sweeps across its print once (600 ms). A card not
 * yet in your Dex warms a little from its grey under the pointer, a peek, and goes back on leave: nothing is won, locked
 * or crowned. With Reduce Motion only the shadow changes.
 */
.print .ps-sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.print .ps-sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 90%);
  transform: skewX(-14deg);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .dcard { rotate: 0deg; transition: transform .5s var(--ease-out), rotate .26s var(--spring); }
  .dcard.is-tilting { transition: rotate .26s var(--spring); }
  .dcard.is-hover, .dslot:focus-within .dcard { rotate: calc(var(--r, 0deg) * -.6); }
  .dcard.is-hover .dpaper, .dslot:focus-within .dpaper { transition-duration: .26s; }
  .dslot:focus-within .dpaper { box-shadow: 0 0 0 1px rgba(10, 10, 10, .035), 0 2px 3px rgba(10, 10, 10, .06), 0 22px 34px -14px rgba(10, 10, 10, .26), 0 50px 70px -34px rgba(10, 10, 10, .36); }
  .dcard.is-hover .ps-sweep::before, .dslot:focus-within .ps-sweep::before { animation: print-sweep .6s cubic-bezier(.3, .7, .3, 1) 1 both; }
  .proof img { transition: filter .3s ease; }
  .dcard-lock.is-hover .dface-front .proof img, .dslot:focus-within .dface-front .proof img { filter: grayscale(.6) contrast(.9) brightness(1.06); }
}
@keyframes print-sweep { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: 400% 0; } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .dslot:focus-within .dpaper { box-shadow: 0 0 0 1px rgba(10, 10, 10, .035), 0 2px 3px rgba(10, 10, 10, .06), 0 22px 34px -14px rgba(10, 10, 10, .26), 0 50px 70px -34px rgba(10, 10, 10, .36); }
}
.dcrop { position: absolute; inset: 0 0 auto 0; aspect-ratio: auto; height: 100%; pointer-events: none; }

/* NOT YET IN YOUR DEX (the app's DexCard): the grey proof of the same photo, its name in muted ink, the pen's
   glass drawn small beside it; turned over, the colour print, as posting one you have had turns it in the app. */
.dcard-lock { cursor: pointer; }
.dflip { position: relative; display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.28, .46, 1); }
.dface-front, .dface-back { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.dface-back { transform: rotateY(180deg); }
.dcard-lock.is-flipped .dflip { transform: rotateY(180deg); }
.dface-front .drink-name { color: var(--grey); }
.proof img { filter: grayscale(1) contrast(.86) brightness(1.1); }
.proof::after { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .08); }
.dface-front { position: relative; }
/* turned over: the pen frames the print (its crop corners) and signs the name (sections.js draws them 220 ms into the turn) */
.db-frame { position: absolute; left: 7.5%; right: 7.5%; top: 0; margin-top: 7.5%; aspect-ratio: 1; pointer-events: none; }
.db-crop { position: absolute; inset: 0; --pen: var(--red); }
.db-swash { display: block; width: 66%; height: 6px; margin: 1px 0 2px; --pen: var(--red); }
.pl-art { position: absolute; z-index: 2; right: -9%; top: -7%; width: 34%; aspect-ratio: 1; pointer-events: none; --pen: var(--red); }
.pl-art > [data-pen] { position: absolute; }
.pl-glass { left: 8%; top: 14%; width: 62%; }
.pl-glass.is-tall { left: 10%; top: 0; width: 60%; }
.pl-glass.is-rocks { left: 6%; top: 18%; width: 66%; }
.pl-rays { right: -6%; top: -4%; width: 40%; transform: rotate(30deg); }
/* the app's no-photo face (VectorFace): a wash square, the drink's own glass in control grey at 1.4 */
.dcard .print.face { display: grid; place-items: center; background: #F5F5F5; }
.print.face svg { width: 56%; height: auto; aspect-ratio: 100 / 112; fill: none; stroke: #8A8A8A; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* Without script there is nothing to turn the card: show the print. */
html:not(.js) .dface-front { display: none; }
html:not(.js) .dface-back { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .dflip { transition: none; transform-style: flat; }
  .dface-back { transform: none; visibility: hidden; }
  .dcard-lock.is-flipped .dflip { transform: none; }
  .dcard-lock.is-flipped .dface-back { visibility: visible; }
  .dcard-lock.is-flipped .dface-front { visibility: hidden; }
}
@media (hover: hover) { .dcard-lock:hover .pl-glass { translate: 0 -2px; transition: translate .4s var(--spring); } }

/* Dealt: sections.js arms the spread (.is-armed) and deals a set (.is-dealt) when it comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .dex.is-armed .dslot { opacity: 0; transform: translate3d(var(--fx, 0px), var(--fy, 60px), 0) rotate(var(--fr, 0deg)) scale(.86); }
  .dex.is-armed .dex-set.is-dealt .dslot {
    opacity: 1; transform: translate3d(0, var(--oy, 0px), 0) rotate(var(--r, 0deg));
    transition: transform 1.1s var(--spring) calc(var(--i, 0) * 80ms + 60ms), opacity .28s ease calc(var(--i, 0) * 80ms + 60ms);
  }
  .dex.is-armed .dex-set.is-gone .dslot {
    opacity: 0; transform: translate3d(0, calc(var(--oy, 0px) - 34px), 0) rotate(calc(var(--r, 0deg) * -2)) scale(.94);
    transition: transform .4s var(--ease-in) calc(var(--i, 0) * 32ms), opacity .3s ease calc(var(--i, 0) * 32ms + 70ms);
  }
}

/* The pen's note and its arrow, to the card not yet in your Dex (the fifth). */
.dex-note { position: absolute; z-index: 2; pointer-events: none; right: clamp(0px, 2vw, 30px); bottom: clamp(20px, 2.4vw, 40px); margin: 0; font-size: clamp(1.75rem, 2.7vw, 2.875rem); line-height: 1; transform: rotate(-6deg); transform-origin: 100% 100%; white-space: nowrap; }
.dn-t { display: inline-block; }
.dn-swash { position: absolute; left: 4%; right: 2%; bottom: -12px; }
.dex-arrow { position: absolute; z-index: 2; left: 52%; bottom: clamp(26px, 3vw, 54px); width: 9%; height: clamp(70px, 7vw, 116px); }
@media (prefers-reduced-motion: no-preference) {
  .js .dex-note .dn-t { clip-path: inset(-20% 102% -30% -4%); transition: clip-path 1.1s var(--ease-pen) .15s; }
  .js .dex-note.is-in .dn-t { clip-path: inset(-20% -4% -30% -4%); }
}
@media (max-width: 699px) {
  .dex-spread { padding-bottom: 104px; }
  .dex-note { right: 4px; bottom: 18px; font-size: 1.75rem; }
  .dex-arrow { left: 14%; width: 26%; bottom: 40px; height: 64px; }
}

/* The margins' doodles (positions in the grid's frame) */
.dex-doodles { position: absolute; inset: 0; z-index: 0; pointer-events: none; --pen: var(--red); }
.dd-lime { width: clamp(82px, 7.6vw, 132px); left: 35%; top: -9%; }
.dd-coil { width: clamp(38px, 3.4vw, 58px); left: 27.5%; top: -4%; }
.dd-cherry { width: clamp(50px, 4.4vw, 76px); left: 34.5%; top: 56%; }
.dd-olive { width: clamp(60px, 5.4vw, 92px); left: 33%; top: 86%; }
.dd-rays-r { width: clamp(40px, 3.6vw, 60px); right: 1%; top: 18%; }
.dd-shaker { width: clamp(42px, 3.8vw, 64px); right: 1%; top: 62%; }
.dd-rays-s { width: clamp(34px, 3vw, 50px); right: 3.6%; top: 57%; }
@media (max-width: 1023px) {
  .dd-lime { left: auto; right: 0; top: -2%; }
  .dd-coil { left: auto; right: 22%; top: 4%; }
  .dd-cherry, .dd-olive, .dd-rays-r, .dd-rays-s { display: none; }
  .dd-shaker { right: 0; top: 34%; }
}
@media (max-width: 699px) { .dd-lime { width: 72px; top: 0; } .dd-coil { right: 26%; top: 2%; } .dd-shaker { display: none; } }

/* ==================================================================== */
/* The recipe                                                           */
/* ==================================================================== */

.recipe {
  --bg: #FFF4E2; --fg: var(--ink); --muted: #5A5249; --pen: var(--red); --focus-gap: #FFF4E2;
  background: var(--bg); color: var(--fg);
  padding: clamp(84px, 9vw, 150px) 0 clamp(92px, 9vw, 150px); overflow-x: clip;
}
.recipe-grid { position: relative; display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .recipe-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: auto 1fr; grid-template-areas: "h card" "stage card"; gap: clamp(20px, 2vw, 34px) clamp(40px, 5vw, 100px); align-items: start; }
  .recipe-h { grid-area: h; }
  .recipe-stage { grid-area: stage; }
  .recipe-card { grid-area: card; }
}
.recipe-h { position: relative; justify-self: start; width: fit-content; max-width: 100%; margin: 0; padding-bottom: clamp(18px, 1.6vw, 26px); font: 400 clamp(2.125rem, 3.4vw, 3.875rem)/.96 var(--f-poster); text-transform: uppercase; letter-spacing: .004em; text-wrap: balance; }
/* under the heading's last line, ending where its words end (sections.js measures --sw-r when the heading wraps) */
.rh-swash { position: absolute; right: var(--sw-r, 0px); width: min(52%, 22em); bottom: 0; }

/* The stage: the glass inside the pen's four crop corners, the lime wheel turning beside it. */
.recipe-stage { position: relative; margin: 0; }
@media (min-width: 1024px) and (min-height: 700px) { .recipe-stage { position: sticky; top: calc(var(--head-c) + 28px); } }
.rs-frame { position: relative; aspect-ratio: 1.3; }
.rs-crop { position: absolute; inset: 0; }
.rs-glass { position: absolute; left: 50%; bottom: 0.6%; height: 99%; aspect-ratio: 816 / 1000; transform: translateX(-46%); }
.rs-glass img { position: relative; width: 100%; height: 100%; object-fit: contain; max-width: none; }
.rs-shadow { position: absolute; left: 14%; right: 12%; bottom: -1.6%; height: 5.4%; background: radial-gradient(closest-side, rgba(70, 40, 10, .26), rgba(70, 40, 10, .08) 55%, rgba(70, 40, 10, 0)); }
.rs-rays { position: absolute; left: 17%; top: 5%; width: clamp(60px, 7vw, 116px); }
.rs-lime { position: absolute; right: 9%; top: 47%; width: clamp(84px, 9.4vw, 158px); }
.rs-lime > [data-pen] { display: block; }
.rs-arcs { position: absolute; width: clamp(18px, 1.9vw, 32px); }
.rs-arcs-a { right: calc(9% + clamp(84px, 9.4vw, 158px) + 6px); top: 56%; }
.rs-arcs-b { right: calc(9% - clamp(22px, 2.2vw, 36px)); top: 44%; }
.rs-note { position: absolute; pointer-events: none; right: -4%; bottom: 13%; margin: 0; font-size: clamp(1.875rem, 3vw, 3.25rem); line-height: 1; transform: rotate(-8deg); transform-origin: 0 100%; white-space: nowrap; }
.rn-t { display: inline-block; }
.rn-swash { position: absolute; left: 0; right: 6%; bottom: -12px; }
.rs-arrow { position: absolute; left: calc(100% + 6px); bottom: 31%; width: clamp(36px, 3.4vw, 60px); height: clamp(70px, 7.4vw, 124px); }
@media (prefers-reduced-motion: no-preference) {
  .js .rs-note .rn-t { clip-path: inset(-20% 102% -30% -4%); transition: clip-path 1.1s var(--ease-pen) .1s; }
  .js .rs-note.is-in .rn-t { clip-path: inset(-20% -4% -30% -4%); }
}
@media (max-width: 1023px) {
  .rs-frame { aspect-ratio: 1.08; max-width: 640px; }
  .rs-note { right: auto; left: 2%; bottom: auto; top: calc(100% + 16px); font-size: clamp(1.75rem, 1.0625rem + 3.5vw, 2.5rem); transform: rotate(-5deg); }
  .rs-arrow { display: none; }
}

/* The card: the outlined Nº, the name in the marker signed with the swash, the press's lines. */
.recipe-card { position: relative; }
@media (max-width: 1023px) { .recipe-card { margin-top: 70px; } }
.rc-no { margin: 0; font-size: clamp(4.75rem, 9.6vw, 10.5rem); line-height: .92; white-space: nowrap; --outline-w: clamp(1.8px, .17vw, 3px); }
.rc-n { letter-spacing: -.01em; }
/* Anton's º is a tall oval, the same shape as its 0: 'Nº 0100' read 'N0 0100'. Archivo's is round and barred: set solid, in ink,
   as the mockup's ordinal (a ring over its bar, half the capitals' height, hung from their top), not a thin outline that reads as a degree sign. */
.rc-o { display: inline-block; margin-left: .04em; font-family: var(--f-text); font-weight: 600; font-size: .8em; line-height: 1; vertical-align: top; position: relative; top: -.04em; color: var(--fg); -webkit-text-stroke: 0; }
.rc-o::after { content: ""; position: absolute; left: .08em; right: .08em; top: .5em; height: max(2px, .045em); background: currentColor; }
.odo { display: inline-flex; vertical-align: top; font-variant-numeric: proportional-nums; }
.odo-d { position: relative; display: inline-flex; justify-content: center; height: 1.02em; overflow: hidden; margin: -.04em 0; }
.odo-d + .odo-d { margin-left: .02em; }
.odo-s { display: flex; flex-direction: column; line-height: 1.02; }
.odo-s > span { display: block; height: 1.02em; text-align: center; }
@media (prefers-reduced-motion: no-preference) { .odo-s { transition: transform var(--odo-t, 1.6s) cubic-bezier(.16, 1, .3, 1) var(--odo-d, 0ms); } }
.rc-name { position: relative; display: inline-block; margin: -.02em 0 0 -.03em; padding-bottom: .16em; font: 400 clamp(4.25rem, 8.2vw, 9.25rem)/1.04 var(--f-marker); letter-spacing: 0; }
.rc-swash { position: absolute; left: 2%; right: -4%; bottom: 0; }
.rc-meta { margin-top: clamp(24px, 2.4vw, 40px); font: 400 clamp(1.3125rem, .8594rem + 1.025vw, 2.125rem)/1 var(--f-poster); text-transform: uppercase; letter-spacing: .02em; }
.rc-ings { margin: clamp(18px, 1.8vw, 28px) 0 0; padding: 0; list-style: none; }
.rc-ings li { padding: .2em 0; font: 400 clamp(1.1875rem, .7344rem + .86vw, 1.75rem)/1.35 var(--f-text); letter-spacing: -.01em; }
.rc-ings b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-ings small { margin-left: .5em; color: var(--muted); font-size: .58em; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: center; }
.rc-ings .leader {
  height: .3em; min-width: 24px; margin: 0 .38em; padding: 0;
  background: radial-gradient(circle at center, var(--ink) 0 1.25px, transparent 1.6px) right center / .42em 100% repeat-x;
}
@media (prefers-reduced-motion: no-preference) {
  .sx .rc-ings li { transition: opacity .7s var(--ease-out) calc(var(--i) * 110ms + 150ms), transform .8s var(--ease-out) calc(var(--i) * 110ms + 150ms); }
  .sx .rc-ings li .leader { transition: clip-path 1s var(--ease-pen) calc(var(--i) * 110ms + 300ms); }
  .sx .rc-ings:not(.is-in) li { opacity: 0; transform: translate3d(-14px, 0, 0); }
  .sx .rc-ings:not(.is-in) li .leader { clip-path: inset(0 0 0 100%); }
}
.rc-steps { margin: clamp(20px, 2vw, 32px) 0 0; padding: 0; list-style: none; display: grid; gap: clamp(8px, .9vw, 14px); }
.rc-steps li { display: grid; grid-template-columns: clamp(38px, 3.4vw, 52px) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 22px); align-items: center; font: 400 clamp(1.0625rem, .6406rem + .75vw, 1.5rem)/1.3 var(--f-text); letter-spacing: -.01em; }
.rc-k { position: relative; display: grid; place-items: center; aspect-ratio: 1; color: var(--red); font: 600 clamp(1.0625rem, .6406rem + .75vw, 1.5rem)/1 var(--f-text); font-variant-numeric: tabular-nums; }
.rc-ring { position: absolute; inset: 0; }

/* THE RECIPE YOU CAN TOUCH (sections.js). oz | ml: two squared chips joined, over the ingredients. */
.rc-units { display: inline-flex; margin: clamp(16px, 1.6vw, 24px) 0 0; }
.rc-units .chip { min-height: 40px; min-width: 54px; padding: 0 14px; font-size: .9375rem; }
.rc-units .chip + .chip { margin-left: -2px; }
.rc-units + .rc-ings { margin-top: clamp(8px, .9vw, 14px); }
/* each amount rolls between its oz and its ml in one line's room (clipped by clip-path, so the row keeps its baseline) */
.rc-amt { display: inline-grid; clip-path: inset(-0.12em -0.4em -0.2em -0.4em); }
.ra-roll { display: inline-grid; justify-items: end; }
.ra-f { grid-area: 1 / 1; }
.ra-f + .ra-f { transform: translate3d(0, 110%, 0); }
.is-ml .ra-f:first-child { transform: translate3d(0, -110%, 0); }
.is-ml .ra-f + .ra-f { transform: none; }
@media (prefers-reduced-motion: no-preference) { .ra-f { transition: transform .18s var(--ease-out) calc(var(--i, 0) * 30ms); } }
/* under a mouse: the leader drawn again in the pen's red (pen.js dots), the amount lifted 2 px */
.rc-ings .leader { position: relative; }
.rc-dots { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; pointer-events: none; }
.lead-row.is-hot .leader { background-image: none; }
.rc-ings .rc-amt { translate: 0 0; }
.lead-row.is-hot .rc-amt { translate: 0 -2px; }
@media (prefers-reduced-motion: no-preference) { .rc-ings .rc-amt { transition: translate .22s var(--ease-out); } }
/* a step is a key: pressed, the pen ticks its numeral and strikes its words through (its numeral turns grey so the red tick reads) */
.rc-steps li.is-key { display: block; }
.rc-step {
  display: grid; grid-template-columns: clamp(38px, 3.4vw, 52px) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 22px); align-items: center;
  width: 100%; margin: 0; padding: 3px 8px 3px 0; border: 0; border-radius: var(--r); background: none; color: inherit;
  font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .rc-step:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); } }
.rc-st { position: relative; }
.rc-strike { position: absolute; height: 8px; pointer-events: none; }
.rc-check { position: absolute; left: 36%; top: -34%; width: 108%; pointer-events: none; }
/* these marks show a state: never there without it (with Reduce Motion pen.js draws every mark it sets up, without a mask) */
.rc-check:not(.is-drawn), .rc-dots:not(.is-drawn), .rc-strike:not(.is-drawn),
.rc-step:not(.is-done) .rc-check, .rc-step:not(.is-done) .rc-strike, .lead-row:not(.is-hot) .rc-dots { visibility: hidden; }
/* (greyed, never faded: the muted ink is 7.05:1 on the cream, so the numeral stays readable text under the red tick; the 40 % red was 2.0:1) */
.rc-step.is-done .rc-k { color: var(--muted); }
.rc-step.is-done .rc-st { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .rc-k, .rc-st { transition: color .26s ease; } }
.rc-facts { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: clamp(22px, 2.2vw, 34px) 0 0; }
.rc-facts div { display: grid; gap: 2px; }
.rc-facts dt { font: 400 .875rem/1.2 var(--f-poster); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rc-facts dd { margin: 0; font-weight: 500; }
.rc-body { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: .9375rem; line-height: 1.5; text-wrap: pretty; }

/* ==================================================================== */
/* Your shelf, your friends                                             */
/* ==================================================================== */

.shelf { padding: clamp(84px, 9vw, 150px) 0 clamp(80px, 9vw, 150px); overflow-x: clip; }  /* the foot holds the red's brushed edge into "Start your Dex." */
.shelf-grid { position: relative; display: grid; gap: 56px; }
@media (min-width: 1024px) { .shelf-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 0 clamp(36px, 4vw, 80px); align-items: center; } }

/* ---- The phones: drawn at 30em wide, 1em = a thirtieth of the phone, so they scale as one ---- */
.phones { position: relative; container-type: inline-size; aspect-ratio: 1 / 1.06; max-width: 760px; width: 100%; justify-self: center; }
.phone {
  --rot: 0deg; --drot: 0deg;
  position: absolute; width: 44cqw; font-size: calc(44cqw / 30);
  padding: .95em; border-radius: 4.7em; background: #0A0A0A;
  box-shadow: inset 0 0 0 .18em #2A2A2A, inset 0 0 0 .3em #050505, 0 .3em .6em rgba(10, 10, 10, .18), 0 2.6em 4.6em -1.6em rgba(10, 10, 10, .42), 0 6em 9em -5em rgba(10, 10, 10, .3);
  rotate: calc(var(--rot) + var(--drot));
  color: var(--ink); letter-spacing: 0;
}
.phone-a { --rot: -7deg; left: 5cqw; top: 6cqw; z-index: 1; }
.phone-b { --rot: 5deg; left: 46cqw; top: 13cqw; z-index: 2; }
.ph-screen { position: relative; height: 62.2em; overflow: hidden; border-radius: 3.8em; background: #FFFFFF; }
.ph-island { position: absolute; z-index: 2; left: 50%; top: 1.1em; width: 9.2em; height: 2.7em; margin-left: -4.6em; border-radius: 1.4em; background: #0A0A0A; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 4.9em; padding: .4em 2.5em 0 3.1em; }
.ph-time { font: 600 1.5em/1 var(--f-text); letter-spacing: -.01em; }
.ph-sys { display: flex; align-items: center; gap: .45em; }
.ph-sys svg { width: 1.7em; height: 1.7em; }
.ph-bar { display: flex; align-items: center; justify-content: space-between; height: 4.6em; padding: 0 1.6em 0 1.4em; }
.ph-mark { --mark: var(--red); height: 3.3em; }
.ph-acts { display: flex; gap: 1.6em; }
.ph-acts svg, .pp-head svg, .pp-acts svg, .ph-nav svg { width: 2.4em; height: 2.4em; color: var(--ink); }

.ph-post { padding-top: .4em; }
.pp-head { display: flex; align-items: center; gap: 1em; height: 5.2em; padding: 0 1.2em 0 1.6em; }
.pp-who { flex: 1; min-width: 0; font: 400 1.3em/1.4 var(--f-text); white-space: nowrap; overflow: hidden; }
.pp-who b { font-weight: 600; }
.pp-photo { position: relative; margin: .2em 1.6em 0; aspect-ratio: 1; }
.nophoto { display: grid; place-items: center; width: 100%; height: 100%; border-radius: var(--r); background: #F5F5F5; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .07); }
.pp-photo .pp-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.nophoto svg { width: 56%; height: auto; aspect-ratio: 100 / 112; fill: none; stroke: #8A8A8A; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-crop { position: absolute; inset: 0; --pen: var(--red); }
.pp-acts { display: flex; align-items: center; gap: 1.6em; height: 4.4em; margin-top: .4em; padding: 0 1.6em; }
.pp-acts span { flex: 1; }
/* the caption keeps to the part of the phone the second phone never covers (the third judge: it was cut at "half th"): a column
   about 230 px wide on a wide window (16 of its em), two lines at most */
.pp-cap { padding: .2em 1.6em 0; font: 400 1.3em/1.4 var(--f-text); max-width: calc(16em + 3.2em); box-sizing: border-box; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pp-cap b { font-weight: 600; }
.pp-when { padding: .4em 1.6em 0; font: 400 1.15em/1.4 var(--f-text); color: var(--grey); }

/* a face: initials on one of the app's four greys (avatarTone), the one round thing */
/* the font is 1.3em, so 2.46 of its em is the phone's 3.2 */
.av { display: inline-grid; place-items: center; flex: none; width: 2.46em; height: 2.46em; border-radius: 50%; background: #3D3D3D; color: #FFFFFF; font: 600 1.3em/1 var(--f-text); }
.av.sm { font-size: 1.1em; width: 2.2em; height: 2.2em; }
.av.t1 { background: #262626; }
.av.t4 { background: #E3E3E3; color: var(--ink); }

.ph-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; height: 7.6em; padding: 0 1.2em 2em; background: #FFFFFF; box-shadow: inset 0 1px 0 #E3E3E3; }
.ph-tabs svg { width: 2.5em; height: 2.5em; color: #8A8A8A; }
.ph-tabs svg.on { color: var(--ink); }
.ph-dex { display: grid; place-items: center; width: 4.6em; height: 4.6em; border-radius: .4em; background: var(--red); }
.ph-dex svg { width: 2.6em; height: 2.6em; color: #FFFFFF; }

.ph-nav { display: flex; align-items: center; justify-content: space-between; height: 4.4em; padding: 0 1.4em; }
.ph-trn { padding: .8em 1.6em 0; }
.tr-name { position: relative; display: inline-block; margin: 0; padding-bottom: .5em; font: 600 2.6em/1.2 var(--f-text); letter-spacing: -.016em; }
.tr-swash { position: absolute; left: 0; right: 18%; bottom: .12em; --pen: var(--red); }
.tr-meta { margin-top: .5em; font: 400 1.3em/1.4 var(--f-text); color: var(--grey); }
.tr-rule { display: block; margin: 1.6em 0 .4em; --pen: var(--red); }
.tr-log { margin: 0; padding: 0; list-style: none; }
.tr-log li { display: flex; align-items: center; gap: 1.1em; min-height: 4.5em; }
/* the shared log on a ticket (the app's TicketCard: a pressed stub with a half-round die-cut notch each side), its edges in the pen's hairline, grey */
.tr-ticket { position: relative; margin: .5em -.4em 0; padding: .45em 1.2em .45em 1.1em; }
.tk-frame { position: absolute; inset: 0; pointer-events: none; --pen: #CDCDCD; }
.tk-frame > [data-pen="rule"] { position: absolute; left: 4px; right: 4px; }
.tk-frame > .t { top: -2px; }
.tk-frame > .b { bottom: -3px; }
.tk-frame > [data-pen="vrule"] { position: absolute; top: 4px; bottom: 4px; }
.tk-frame > .l { left: -2px; }
.tk-frame > .r { right: -3px; }
.tk-notch { position: absolute; top: calc(50% - 1em); width: 2em; height: 2em; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 0 0 1.2px #CDCDCD; pointer-events: none; }
.tk-notch.is-l { left: -1.05em; clip-path: inset(-2px -2px -2px 50%); }
.tk-notch.is-r { right: -1.05em; clip-path: inset(-2px 50% -2px -2px); }
.tr-who { flex: 1; min-width: 0; font: 400 1.3em/1.35 var(--f-text); }
.tr-who > b, .tr-who > span { display: block; }
.tr-who b { font-weight: 600; }
.tr-who .dexno { font-size: .86em; line-height: 1.2; color: var(--grey); letter-spacing: .06em; }
.tr-who .drink-name { font-size: 1.12em; }
.tr-day { font: 400 1.2em/1 var(--f-text); color: var(--grey); }
.tr-sign { display: block; margin: .7em 0 0 auto; width: 5.6em; --pen: var(--red); }
.tr-rules { display: flex; align-items: center; gap: .5em; margin-top: 1.2em; font: 400 1.12em/1.35 var(--f-text); color: var(--grey); }
.tr-rules svg { width: 1.6em; height: 1.6em; flex: none; }

/* doodles round the phones */
.phones .dd { --pen: var(--red); }
.sd-cherry { width: clamp(46px, 7.4cqw, 76px); left: -3cqw; top: 42cqw; z-index: 3; }
.sd-coil { width: clamp(40px, 6.4cqw, 64px); left: 3cqw; top: 86cqw; z-index: 3; }
.sd-rays { width: clamp(52px, 9cqw, 92px); left: 60cqw; top: -2cqw; }

/* ---- The words ---- */
.shelf-copy { position: relative; }
.shelf-arrow { position: absolute; left: -27%; top: -4%; width: 30%; height: clamp(54px, 5.4vw, 92px); --pen: var(--red); }
.sd-olive { width: clamp(56px, 5.4vw, 92px); right: 0; top: -6%; --pen: var(--red); }
.shelf-h { position: relative; display: inline-block; margin: 0; padding-bottom: clamp(22px, 2vw, 34px); font: 400 clamp(3.25rem, 6.8vw, 7.25rem)/1.0 var(--f-poster); text-transform: uppercase; letter-spacing: .004em; }
.sh-t { display: block; max-width: 7.2em; }
.sh-swash { position: absolute; left: 2%; right: 4%; bottom: 0; }
.points { display: grid; gap: clamp(22px, 2.2vw, 34px); margin: clamp(30px, 3vw, 48px) 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: clamp(46px, 4.4vw, 70px) minmax(0, 1fr); gap: clamp(16px, 2vw, 30px); align-items: start; }
.pt-ic { --pen: var(--red); justify-self: center; width: clamp(38px, 3.6vw, 56px); margin-top: -2px; }
.pt-ic.is-crown { width: clamp(42px, 4vw, 62px); margin-top: 6px; }
.pt-lead { font: 500 clamp(1.1875rem, .7031rem + .81vw, 1.625rem)/1.3 var(--f-text); letter-spacing: -.014em; text-wrap: pretty; }
.pt-more { margin-top: 6px; max-width: 48ch; color: var(--muted); font-size: clamp(.9375rem, .4844rem + .54vw, 1rem); line-height: 1.5; text-wrap: pretty; }

.shelf-also { position: relative; display: grid; gap: 22px 56px; margin-top: clamp(56px, 6vw, 96px); padding-top: clamp(30px, 3vw, 44px); }
@media (min-width: 900px) { .shelf-also { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; max-width: 1040px; } }
.sa-rule { position: absolute; left: 0; top: 0; width: min(100%, 420px); }
.sa-item h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font: 400 clamp(1.375rem, .7812rem + .95vw, 1.75rem)/1 var(--f-poster); text-transform: uppercase; letter-spacing: .01em; }
.sa-ic { --pen: var(--red); width: 34px; }
.sa-item p { max-width: 44ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }
/* the examples note, a caption under the two phones it is about */
/* THE SHELF YOU CAN TOUCH (sections.js): the phone behind comes to the front on a click or tap (the two part, cross and
   settle: the transform property, so the drift's translate and the tilt's rotate are left alone), or from the two chips */
.ph-pick { display: flex; justify-content: center; margin: clamp(16px, 1.6vw, 24px) 0 0; }
.ph-pick .chip { min-height: 40px; min-width: 54px; padding: 0 14px; font-size: .9375rem; }
.ph-pick .chip + .chip { margin-left: -2px; }
.phones .phone { transform: none; }
/* HOME IN FRONT. The tournament's rules line (No prizes · Apple is not a sponsor · Drink responsibly) stays whole whichever
   phone is in front: Home comes forward a step out to its own side and a little straighter, the tournament a step the other
   way, so Home's corner clears the line by about 2 of the phone's em through the whole of the drift. Under 700 px the two are
   wider than the window together: there both stand up straight and the one behind steps back (.9), its line clear by about 1.5
   em. Tournament in front (the default) is unchanged. Measured: 0 px of the line covered at 1440, 1280, 1024, 390 and 320. */
.phones[data-front="a"] .phone-a { z-index: 3; transform: translate3d(-3cqw, 0, 0) rotate(2deg); }
.phones[data-front="a"] .phone-b { transform: translate3d(5cqw, -2cqw, 0) rotate(-1deg); }
/* Home in front also lies over the two doodles on its side (with the tournament in front they are drawn over Home), so
   neither scribbles on its photo or its tab bar */
.phones[data-front="a"] .sd-cherry, .phones[data-front="a"] .sd-coil { z-index: 2; }
@media (max-width: 699px) {
  .phones[data-front="a"] .phone-a { transform: translate3d(-2cqw, -2cqw, 0) rotate(7deg); }
  .phones[data-front="a"] .phone-b { transform: translate3d(7cqw, 0, 0) rotate(-5deg) scale(.9); }
  /* (here the coil lies all but whole under Home: none of it, rather than a red sliver under its corner) */
  .phones[data-front="a"] .sd-coil { opacity: 0; }
}
.phones.can-pick[data-front="b"] .phone-a, .phones.can-pick[data-front="a"] .phone-b { cursor: pointer; }
/* the part (after the rules above, so it wins over Home in front while the two cross back) */
.phones.is-apart .phone-a { transform: translate3d(-1.5cqw, -5cqw, 0) rotate(-2deg); }
.phones.is-apart .phone-b { transform: translate3d(3cqw, 3cqw, 0) rotate(2deg); }
@media (prefers-reduced-motion: no-preference) { .phones .phone { transition: transform .24s var(--ease-out); } }
.phones-note { margin: 14px 0 0; color: var(--grey); font-size: .875rem; line-height: 1.5; text-align: center; }
.phones-fig { margin: 0; justify-self: center; width: 100%; max-width: 760px; }
@media (max-width: 1023px) { .phones-fig { max-width: 620px; } }

@media (max-width: 1023px) {
  .shelf-copy { display: contents; }
  .shelf-h { order: -1; justify-self: start; }
  .points { margin-top: 0; }
  .shelf-arrow, .sd-olive { display: none; }
  .phones { max-width: 620px; }
}
@media (max-width: 699px) {
  .phones { aspect-ratio: 1 / 1.38; }
  .phone { width: 56cqw; font-size: calc(56cqw / 30); }
  .phone-a { left: 0; top: 4cqw; }
  .phone-b { left: 42cqw; top: 12cqw; }
  /* the second phone covers more of the first here (14 of its 56cqw): the caption keeps to 12 of its em, three lines at most */
  .pp-cap { max-width: calc(12em + 3.2em); -webkit-line-clamp: 3; line-clamp: 3; }
  .sd-cherry { display: none; }
  .sd-coil { left: -2cqw; top: 104cqw; }
  .sd-rays { left: 70cqw; top: -4cqw; }
}

/* ==================================================================== */
/* What Sipply does not do                                              */
/* ==================================================================== */


/* ==================================================================== */
/* Start your Dex                                                       */
/* ==================================================================== */

.beta {
  --bg: var(--red); --fg: var(--white); --muted: rgba(255, 255, 255, .9); --pen: var(--white); --pen-2: var(--ink); --mark: var(--ink);
  --key-bg: var(--white); --key-fg: var(--ink); --key-bg-hover: #F2F2F2; --focus: var(--white); --focus-gap: var(--ink);
  background: var(--bg); color: var(--fg);
  padding: clamp(80px, 8vw, 132px) 0 clamp(72px, 7vw, 116px); overflow: clip;
}
.beta-inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.beta-h { position: relative; display: inline-block; margin: 0; padding: 0 .1em .3em; font: 400 clamp(3.875rem, 8.8vw, 10rem)/1 var(--f-marker); letter-spacing: 0; text-wrap: balance; }
.bh-swash { position: absolute; left: 10%; right: 6%; bottom: .2em; }
.beta-cta { display: grid; justify-items: center; gap: 16px; margin-top: clamp(28px, 3vw, 46px); }
.beta-cta .key.lg { min-height: clamp(56px, 4.6vw, 74px); padding: 0 clamp(30px, 3.6vw, 58px); font-size: clamp(1.125rem, .6875rem + .85vw, 1.625rem); }
.beta-small { max-width: 44ch; color: var(--muted); font-size: clamp(.9375rem, .5312rem + .65vw, 1.1875rem); line-height: 1.45; }
.beta-how { display: grid; justify-items: center; gap: 18px; margin-top: clamp(44px, 5vw, 76px); }
.beta-how h3 { font: 400 clamp(1.125rem, .625rem + .75vw, 1.375rem)/1 var(--f-poster); text-transform: uppercase; letter-spacing: .08em; }
.beta-how ol { display: grid; gap: 14px 40px; margin: 0; padding: 0; list-style: none; text-align: left; }
@media (min-width: 900px) { .beta-how ol { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; } }
.beta-how li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.bk { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--white); font: 600 1.0625rem/1 var(--f-text); }
.bk > [data-pen] { position: absolute; inset: 0; }

.beta-doodles { position: absolute; inset: 0; z-index: 0; pointer-events: none; --pen: var(--white); }
.wob { position: absolute; display: block; pointer-events: auto; padding: 10px; margin: -10px; }
.wob > [data-pen] { display: block; }
.bd-coupe { width: clamp(84px, 8.6vw, 150px); left: 6%; top: 16%; }
.bd-rays-l { width: clamp(46px, 4.4vw, 74px); left: 9%; top: 6%; }
.bd-crown { width: clamp(60px, 5.8vw, 100px); left: 4.5%; top: 64%; }
.bd-lime { width: clamp(92px, 9vw, 150px); left: 15%; top: 50%; }
.bd-cherry { width: clamp(70px, 6.6vw, 112px); right: 10.5%; top: 15%; }
.bd-shaker { width: clamp(60px, 6vw, 100px); right: 7%; top: 34%; }
.bd-rays-r { width: clamp(46px, 4.4vw, 74px); right: 3.6%; top: 22%; }
@media (max-width: 899px) {
  .bd-coupe { left: 3%; top: 3%; width: 56px; }
  .bd-rays-l, .bd-crown, .bd-rays-r, .bd-lime { display: none; }
  .bd-cherry { right: 4%; top: 3%; width: 48px; }
  .bd-shaker { right: 4%; top: auto; bottom: 3%; width: 42px; }
}
@media (prefers-reduced-motion: no-preference) {
  .beta.is-in .wob > [data-pen] { animation: wob-float 1.1s var(--ease-inout) calc(var(--k, 0) * .12s) 2 alternate; }
  .bd-rays-l { --k: 1; } .bd-crown { --k: 2; } .bd-lime { --k: 3; } .bd-cherry { --k: 4; } .bd-shaker { --k: 2.5; } .bd-rays-r { --k: 3.5; }
  .wob.is-wob { animation: wob 1s var(--ease-out); }
}
@keyframes wob-float { 0% { translate: 0 0; } 45% { translate: 0 -6px; } 100% { translate: 0 4px; } }
@keyframes wob { 0% { rotate: 0deg; } 18% { rotate: -11deg; } 38% { rotate: 8deg; } 58% { rotate: -5deg; } 78% { rotate: 2deg; } 100% { rotate: 0deg; } }

/* The foot under the red: on the sweep, as on every page. */
.beta + .site-foot, main + .site-foot { padding-top: clamp(44px, 5vw, 72px); }

@media print {
  .dex-doodles, .beta-doodles, .phones .dd { display: none; }
  .dex.is-armed .dslot { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .dpaper, .phone { border: 1px solid CanvasText; }
}
