/* Web Potions, v1: the apothecary counter.
   One decorative idea: an ordered pixel dither, and it does every transition between grounds. */
@font-face { font-family: 'Pixelify Sans'; src: url('/assets/worlds/fonts/pixelify-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/worlds/fonts/atkinson-hyperlegible-next-latin-wght.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --deep: #6a12c4;
  --toxic: #9b30ff;
  --ink: #22163a;
  --lilac: #e7daff;
  --mid: #c9a8ff;
  --paper: #f7f5ff;
  --slime: #7cf29a;
  --gold: #ffc933;
  --cork: #e8b07a;
  --cork-d: #a86b3c;
  --soft: #51436f;
  --cell: 8px;
  --gut: clamp(20px, 5vw, 64px);
  --pixel: 'Pixelify Sans', ui-monospace, 'SF Mono', monospace;
  --text: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
@media (max-width: 720px) { :root { --cell: 6px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 clamp(17px, 1.3vw, 19px)/1.55 var(--text); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
b { font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--pixel); font-weight: 500; font-variant-ligatures: none; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.5vw, 62px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
h4 { font-size: 22px; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }
.flow > * + * { margin-top: 1em; }

/* The product's rounded corner, spoken in pixels: five steps cut from a square. */
.stair {
  --st: 8px;
  clip-path: polygon(
    calc(5 * var(--st)) 0, calc(100% - 5 * var(--st)) 0,
    calc(100% - 5 * var(--st)) var(--st), calc(100% - 3 * var(--st)) var(--st),
    calc(100% - 3 * var(--st)) calc(2 * var(--st)), calc(100% - 2 * var(--st)) calc(2 * var(--st)),
    calc(100% - 2 * var(--st)) calc(3 * var(--st)), calc(100% - var(--st)) calc(3 * var(--st)),
    calc(100% - var(--st)) calc(5 * var(--st)), 100% calc(5 * var(--st)),
    100% calc(100% - 5 * var(--st)), calc(100% - var(--st)) calc(100% - 5 * var(--st)),
    calc(100% - var(--st)) calc(100% - 3 * var(--st)), calc(100% - 2 * var(--st)) calc(100% - 3 * var(--st)),
    calc(100% - 2 * var(--st)) calc(100% - 2 * var(--st)), calc(100% - 3 * var(--st)) calc(100% - 2 * var(--st)),
    calc(100% - 3 * var(--st)) calc(100% - var(--st)), calc(100% - 5 * var(--st)) calc(100% - var(--st)),
    calc(100% - 5 * var(--st)) 100%, calc(5 * var(--st)) 100%,
    calc(5 * var(--st)) calc(100% - var(--st)), calc(3 * var(--st)) calc(100% - var(--st)),
    calc(3 * var(--st)) calc(100% - 2 * var(--st)), calc(2 * var(--st)) calc(100% - 2 * var(--st)),
    calc(2 * var(--st)) calc(100% - 3 * var(--st)), var(--st) calc(100% - 3 * var(--st)),
    var(--st) calc(100% - 5 * var(--st)), 0 calc(100% - 5 * var(--st)),
    0 calc(5 * var(--st)), var(--st) calc(5 * var(--st)),
    var(--st) calc(3 * var(--st)), calc(2 * var(--st)) calc(3 * var(--st)),
    calc(2 * var(--st)) calc(2 * var(--st)), calc(3 * var(--st)) calc(2 * var(--st)),
    calc(3 * var(--st)) var(--st), calc(5 * var(--st)) var(--st)
  );
}

/* The dither bands: a 64-cell tile, one image pixel to one --cell. */
.dith { background-repeat: repeat-x; background-position: 0 0; background-size: calc(64 * var(--cell)) auto; image-rendering: pixelated; }
.dith--hero { height: calc(56 * var(--cell)); background-image: url('/assets/worlds/web-potions/v1-dith-hero.png'); }
.dith--p2l { height: calc(16 * var(--cell)); background-image: url('/assets/worlds/web-potions/v1-dith-p2l.png'); }
.dith--l2p { height: calc(16 * var(--cell)); background-image: url('/assets/worlds/web-potions/v1-dith-l2p.png'); }
.dith--p2i { height: calc(45 * var(--cell)); background-image: url('/assets/worlds/web-potions/v1-dith-p2i.png'); }
.dith--i2p { height: calc(45 * var(--cell)); background-image: url('/assets/worlds/web-potions/v1-dith-i2p.png'); }
.dith--p2d { height: calc(48 * var(--cell)); background-image: url('/assets/worlds/web-potions/v1-dith-p2d.png'); }

/* Buttons: square-cornered outline drawn with four shadows, so the corners stay notched like a sprite. */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px; margin: 3px;
  font: 500 21px/1 var(--pixel); text-decoration: none; white-space: nowrap;
  transition: background-color 120ms ease, transform 100ms var(--ease-out);
}
.btn:active { transform: translateY(2px); }
.btn--go {
  color: var(--ink); background: var(--slime);
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), inset 3px 3px 0 #c9ffd9, inset -3px -3px 0 #38c76e;
}
.btn--line { color: #fff; box-shadow: 0 -3px 0 var(--lilac), 0 3px 0 var(--lilac), -3px 0 0 var(--lilac), 3px 0 0 var(--lilac); }
@media (hover: hover) and (pointer: fine) {
  .btn--go:hover { background: #99f7b1; }
  .btn--line:hover { background: rgb(255 255 255 / 0.14); }
}

/* Top bar */
.wp { background: var(--deep); overflow-x: clip; }
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(1240px, 100% - 2 * var(--gut));
  margin-inline: auto; padding-block: 16px; color: var(--lilac);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font: 500 22px/1 var(--pixel); color: #fff; }
.world-exit { justify-self: start; gap: 8px; font: 500 18px/1 var(--pixel); color: var(--lilac); }
.world-exit svg { display: none; }
.world-exit::before { content: ''; width: 9px; height: 16px; background: url('/assets/worlds/web-potions/v1-back.svg') center / 9px 16px no-repeat; }
.world-lang {
  justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; margin: 3px; font: 500 17px/1 var(--pixel); color: var(--ink); background: #fff;
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), inset -3px -3px 0 var(--mid);
}
.top :focus-visible, .hero :focus-visible, .end :focus-visible, .world-colophon :focus-visible { outline-color: var(--gold); }

/* Hero */
.hero { --overlap: calc(30 * var(--cell)); color: #fff; background: var(--deep); padding-top: clamp(8px, 2vh, 24px); }
.hero h1 { font-size: min(7.35vw, 105px); line-height: 1.04; white-space: nowrap; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(16px, 2.4vh, 28px); }
.lede { max-width: 58ch; color: #fff; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; text-wrap: pretty; }
.hero__act { justify-self: end; }
.meta { width: 0; min-width: 100%; margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--lilac); text-wrap: balance; }

/* The wipe */
.wipe { position: relative; z-index: 1; margin-top: clamp(48px, 6vh, 64px); margin-bottom: calc(var(--overlap) * -1); }
.wipe__shade { --st: 5px; position: absolute; inset: 0; transform: translate(10px, 10px); background: var(--ink); opacity: 0.55; }
.win { --st: 5px; position: relative; height: clamp(372px, calc(100vh - 396px), 560px); background: var(--ink); }
.stage { --st: 5px; position: absolute; inset: 3px; overflow: hidden; container-type: inline-size; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: #fff; }
.wp-js .stage { cursor: ew-resize; }
.stage.is-sweep .fx--brewed { transition: clip-path var(--sweep-ms, 800ms) var(--ease-in-out); }
.seam.is-sweep { transition: transform var(--sweep-ms, 800ms) var(--ease-in-out); }
.stage.is-glide .fx--brewed { transition: clip-path 180ms var(--ease-out); }
.seam.is-glide { transition: transform 180ms var(--ease-out); }

/* The faux site. Everything inside scales with the frame. */
.fx { position: absolute; inset: 0; display: flex; flex-direction: column; font: 400 clamp(12px, 1.34cqw, 17px)/1.4 var(--text); color: #333; background: #fff; text-align: left; }
.fx--brewed { clip-path: inset(0 0 0 50%); color: var(--ink); background: #fdfbff; }
.fx__bar { flex: none; display: flex; align-items: center; gap: 0.45em; height: 2.7em; padding-inline: 1.2em; background: #ededf0; border-bottom: 3px solid var(--ink); }
.fx__bar i { width: 0.72em; height: 0.72em; border: 2px solid #85858c; background: #fff; }
.fx__url { margin-left: 0.8em; padding: 0.1em 1em; font-size: 0.86em; color: #666; background: #fff; }
.fx--brewed .fx__bar { background: var(--toxic); }
.fx--brewed .fx__bar i { border-color: var(--ink); background: var(--lilac); }
.fx--brewed .fx__url { color: var(--ink); background: var(--lilac); }
.fx__ico { margin-left: auto; width: 2em; height: 2em; }
.fx__page { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.fx__promo { padding: 0.5em 1.8em; font-weight: 700; color: #fff; background: #55555c; }
.fx__mast { display: flex; align-items: baseline; gap: 1.4em; padding: 0.7em 1.8em; color: #6b6b73; border-bottom: 1px solid #dddde1; }
.fx__mast b { margin-right: auto; font: 700 1.7em/1.2 Georgia, 'Times New Roman', serif; color: #333; }
.fx__cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.2em; padding: 1.4em 1.8em; }
.fx__ad { display: grid; place-items: center; min-height: 5.6em; margin-bottom: 1em; padding: 0.8em; text-align: center; font-weight: 700; color: #333; background: #e2e2e6; border: 2px dashed #85858c; }
.fx__h4 { font-weight: 700; font-size: 1.15em; margin-bottom: 0.3em; }
.fx__side ul { padding-left: 1.2em; list-style: disc; color: #555; }
.fx__h3 { font: 700 1.9em/1.15 Georgia, 'Times New Roman', serif; color: #333; }
.fx__pic { height: 9em; margin-block: 0.9em; background: #d2d2d7; }
.fx__story p { color: #555; }
.fx__story mark { background: none; color: inherit; }
.fx__chat { position: absolute; left: 1.8em; bottom: 1.2em; width: 15em; padding: 0.8em 1em; line-height: 1.35; background: #fff; border: 1px solid #85858c; border-radius: 12px; box-shadow: 0 4px 14px rgb(0 0 0 / 0.2); }
.fx--brewed .fx__promo, .fx--brewed .fx__ad, .fx--brewed .fx__chat, .fx--brewed .fx__more { display: none; }
.fx--brewed .fx__mast { color: var(--deep); border-color: var(--lilac); }
.fx--brewed .fx__mast b { font: 500 2em/1.1 var(--pixel); color: var(--deep); }
.fx--brewed .fx__h4 { font: 500 1.4em/1.2 var(--pixel); color: var(--deep); }
.fx--brewed .fx__h3 { font: 500 2.5em/1.08 var(--pixel); color: var(--ink); }
.fx--brewed .fx__side ul { color: var(--soft); }
.fx--brewed .fx__story p { color: var(--ink); }
.fx--brewed .fx__pic { height: 11em; background: #170a36 url('/assets/worlds/web-potions/v1-sky.png') 50% 100% / cover no-repeat; image-rendering: pixelated; box-shadow: 0 0 22px rgb(255 79 168 / 0.45); }
.fx--brewed .fx__story mark { padding: 0 0.2em; color: var(--ink); background: var(--slime); }
@container (max-width: 620px) {
  .fx__cols { grid-template-columns: 1fr; gap: 0; padding: 0.9em 1.2em; }
  .fx__promo, .fx__mast { padding-inline: 1.2em; }
  .fx__mast span { display: none; }
  .fx__side { display: contents; }
  .fx__ad { min-height: 3.6em; margin: 0 0 0.6em; order: -1; }
  .fx__h4, .fx__side ul { display: none; }
  .fx__h3 { font-size: 1.5em; }
  .fx--brewed .fx__h3 { font-size: 2em; }
  .fx__pic { height: 7em; }
  .fx--brewed .fx__pic { height: 8em; }
  .fx__chat { left: 1em; bottom: 0.8em; width: 12.5em; }
}

/* The seam and its grip */
.seam { position: absolute; left: 50%; top: 3px; bottom: 3px; width: 0; z-index: 2; pointer-events: none; }
.wp-js .seam { left: 3px; will-change: transform; }
.seam::before { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 4px; background: var(--ink); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5); }
.seam__wand { position: absolute; left: -100px; top: -62px; filter: drop-shadow(0 0 10px rgb(155 48 255 / 0.65)); }
.grip {
  position: absolute; top: 50%; left: -38px; width: 76px; height: 52px; margin-top: -26px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; pointer-events: auto; touch-action: none;
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), inset -3px -3px 0 var(--mid), 5px 5px 0 3px rgb(34 22 58 / 0.45);
}
.wp-js .grip { cursor: grab; }
.grip svg { width: 32px; height: 32px; }
.grip__arrow { display: block; width: 8px; height: 12px; background: var(--ink); }
.grip__arrow--l { clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.grip__arrow--r { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.grip:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.is-dragging .stage, .wp-js .is-dragging .grip { cursor: grabbing; }
.grip__tag {
  position: absolute; top: -48px; left: 50%; transform: translateX(-50%); padding: 7px 11px; font: 500 15px/1 var(--pixel); white-space: nowrap; color: var(--ink); background: var(--gold);
  box-shadow: 0 0 0 3px var(--ink); opacity: 0;
}
.wp-js .grip__tag { opacity: 1; }
.grip__tag[hidden] { display: none; }

/* Why */
.why { background: var(--paper); padding-block: clamp(32px, 4vw, 64px) clamp(72px, 9vw, 128px); }
.why .say { font-size: clamp(38px, 6vw, 86px); line-height: 1.04; max-width: 15em; }
.why__lead { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.35; max-width: 34em; }
.why__one { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(40px, 7vw, 112px); margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(28px, 3vw, 40px); }
.why__one h3 { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.12; }
.why__one .flow { max-width: 60ch; }

/* Ingredients */
.ings { background: var(--lilac); padding-block: clamp(24px, 3vw, 44px) clamp(40px, 5vw, 72px); }
.ings__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 76px) clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 72px); }
.ings__grid h3 { margin-top: 18px; }
.ings__grid p { margin-top: 8px; max-width: 30ch; color: #3a2d58; }
.ings__grid .px { width: 72px; height: 72px; }

/* Brewing window */
.brew { background: var(--paper); padding-block: clamp(32px, 4vw, 64px) clamp(56px, 7vw, 96px); }
.brew__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.brew__copy h2 { max-width: 14em; }
.brew__flow { margin-top: clamp(28px, 3vw, 44px); max-width: 56ch; }
.brew__after { font-weight: 600; }
.brew__shot { justify-self: end; width: min(100%, 430px); }
.brew__shot img { width: 100%; box-shadow: 10px 10px 0 var(--ink); }

/* Shelf */
.shop { background: var(--paper); padding-bottom: clamp(48px, 6vw, 88px); }
.shop__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; }
.shop__head h2 { max-width: 12em; }
.shop__head p { max-width: 46ch; }
.cabinet { --st: 8px; margin-top: clamp(32px, 4vw, 52px); padding: clamp(32px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(40px, 4.5vw, 64px); background: var(--lilac); }
.cabinet > h3 { font-size: clamp(22px, 2.1vw, 30px); }
.cabinet > h3 ~ h3 { margin-top: clamp(48px, 5vw, 76px); }
.cabinet__try { margin-top: 6px; color: #3a2d58; }
.shelf { display: grid; margin-top: 18px; }
.shelf--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shelf--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bot { display: flex; flex-direction: column; }
.bot__stand { position: relative; display: flex; padding: 16px 0 0 6px; width: 140px; }
.bot__stand .px { width: 128px; height: 128px; }
.plank { height: 24px; background: linear-gradient(var(--ink) 0 3px, var(--cork) 3px 15px, var(--cork-d) 15px 21px, var(--ink) 21px 24px); }
.bot__label { padding: 18px clamp(12px, 1.6vw, 24px) 0 0; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.bot__works { font: 500 15px/1 var(--pixel); color: #5a12a6; margin-top: 6px; }
.bot__label p:not(.bot__works) { margin-top: 8px; margin-bottom: 16px; font-size: 16.5px; line-height: 1.45; color: #2f2350; }

/* Bubbles: "the bubbling ones are live right now". */
.bub { position: absolute; left: 6px; top: 16px; width: 128px; height: 40px; opacity: 0; }
.bub i { position: absolute; width: 8px; height: 8px; background: var(--deep); }
.bub i:nth-child(1) { left: 96px; top: 8px; }
.bub i:nth-child(2) { left: 112px; top: 24px; }
.bub i:nth-child(3) { left: 88px; top: 26px; }
.bot.is-live .bub { opacity: 1; }
@keyframes wp-bubble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bot.is-live .bub i { animation: wp-bubble 900ms steps(2) infinite; }
.bot.is-live .bub i:nth-child(2) { animation-delay: 300ms; }
.bot.is-live .bub i:nth-child(3) { animation-delay: 600ms; }

.drink {
  margin: auto 3px 3px; min-height: 44px; padding: 9px 16px; font: 500 18px/1 var(--pixel); color: var(--ink); background: #fff; cursor: pointer; border: 0;
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), inset -3px -3px 0 var(--mid);
  transition: background-color 120ms ease, transform 100ms var(--ease-out);
}
.drink:active { transform: translateY(2px); }
.drink[hidden] { display: none; }
.bot.is-live .drink { background: var(--slime); box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), inset -3px -3px 0 #38c76e; }
@media (hover: hover) and (pointer: fine) { .drink:hover { background: var(--paper); } .bot.is-live .drink:hover { background: #99f7b1; } }
.cabinet__status { min-height: 1.5em; margin-top: 18px; font-weight: 600; }
.cabinet__status:empty { margin-top: 0; min-height: 0; }

.switches { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(56px, 7vw, 100px); }
.switches p { margin-top: 12px; max-width: 48ch; }
.switches img { width: 100%; border-radius: 0; }

/* AI: the one dark room */
.ai { color: #fff; background: var(--ink); padding-block: clamp(16px, 2vw, 32px) clamp(16px, 2vw, 32px); }
.ai :focus-visible { outline-color: var(--gold); }
.ai__top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.ai h2 { color: #fff; }
.ai__lead { margin-top: clamp(18px, 2vw, 28px); max-width: 56ch; color: var(--lilac); }
.ai__mirror { justify-self: center; filter: drop-shadow(0 0 28px rgb(124 242 154 / 0.5)); }
.ai__mirror .px { width: 240px; height: 336px; }
.ai__rules { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 96px); margin-top: clamp(56px, 7vw, 100px); align-items: start; }
.ai__rules h3 { font-size: clamp(24px, 2.4vw, 34px); }
.ai b { color: #fff; }
.ai__side img { width: 100%; max-width: 440px; box-shadow: 8px 8px 0 #000; }
.note { max-width: 60ch; margin-top: 36px; padding: 20px 22px 22px; color: var(--ink); background: #fffbe0; box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px var(--gold); }
.ai__rules .note { margin-top: 0; }
.note h3 { font-size: 22px; }
.note p { margin-top: 8px; font-size: 16.5px; line-height: 1.45; }
.note b { color: var(--ink); }

/* Privacy and setup */
.keep { background: var(--paper); padding-block: clamp(32px, 4vw, 64px) clamp(56px, 7vw, 96px); }
.keep__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.keep__priv h2 { font-size: clamp(32px, 3.8vw, 52px); max-width: 12em; }
.keep__priv .flow { margin-top: 24px; max-width: 58ch; }
.keep__setup { --st: 8px; padding: clamp(28px, 3vw, 44px); background: var(--lilac); }
.keep__setup h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
.keep__setup p { margin-top: 12px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 12px 16px; font-weight: 600; background: #fff; box-shadow: 0 0 0 3px var(--ink); }
.toggle i { position: relative; display: block; flex: none; width: 56px; height: 26px; background: var(--slime); box-shadow: 0 0 0 3px var(--ink); }
.toggle i::after { content: ''; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; background: #fff; box-shadow: 0 0 0 3px var(--ink); }

/* FAQ */
.faq { background: var(--paper); padding-block: clamp(32px, 4vw, 64px) clamp(32px, 4vw, 64px); }
.faq__list { columns: 2; column-gap: clamp(40px, 6vw, 96px); margin-top: clamp(32px, 4vw, 52px); }
.faq__item { break-inside: avoid; padding-bottom: clamp(30px, 3vw, 44px); }
.faq__item h3 { font-size: clamp(21px, 1.8vw, 25px); }
.faq__item p { margin-top: 8px; color: #2f2350; }

/* The end, back in the purple */
.end { color: #fff; background: var(--deep); padding-block: clamp(8px, 2vw, 32px) clamp(56px, 7vw, 96px); text-align: center; }
.end .page { display: flex; flex-direction: column; align-items: center; }
.end__flask { width: 128px; height: 128px; }
.end h2 { margin-top: 24px; font-size: clamp(42px, 7vw, 96px); line-height: 1.02; }
.end p { margin-top: 18px; color: var(--lilac); }
.end .cta { margin-top: 30px; justify-content: center; }

.world-colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; padding-block: 20px 88px; color: var(--lilac); font-size: 15px; }
.world-colophon a { display: inline-block; padding-block: 2px; text-underline-offset: 3px; }
.world-colophon p { margin: 0; }

/* What the potions on the shelf do to this page: the catalog's own CSS. */
html.drink-gray { filter: grayscale(1) !important; }
html.drink-night { filter: invert(1) hue-rotate(180deg) !important; background: #fff !important; }
html.drink-gray.drink-night { filter: grayscale(1) invert(1) hue-rotate(180deg) !important; }
html.drink-night img, html.drink-night video, html.drink-night canvas, html.drink-night iframe, html.drink-night svg image { filter: invert(1) hue-rotate(180deg) !important; }
html.drink-veil img:not(:hover), html.drink-veil svg.px:not(:hover), html.drink-veil .fx__pic:not(:hover) { filter: grayscale(1) brightness(0) invert(0.93) !important; }
html.drink-veil img, html.drink-veil svg.px { transition: filter 0.15s ease-out !important; }
::highlight(wp-hype) { background-color: #ffb3e6; color: #22163a; }

/* The arrival: the world's colour dissolves away through the same dither (world.js paints it).
   Should the script fail, the page still appears after a moment. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes wp-failsafe { to { opacity: 1; } }
  html.is-arriving body { opacity: 0; animation: wp-failsafe 1ms linear 1400ms both; }
  html.is-arriving.wp-dissolving body { opacity: 1; animation: none; }
}
.wp-arrive { position: fixed; inset: 0; z-index: 2147483001; width: 100vw; height: 100vh; image-rendering: pixelated; pointer-events: none; }

@media (max-width: 1040px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__act { justify-self: start; }
  .why__one, .brew__grid, .shop__head, .switches, .ai__rules, .keep__grid { grid-template-columns: 1fr; }
  .brew__shot { justify-self: start; }
  .shelf--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .shelf--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq__list { columns: 1; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .top { grid-template-columns: auto 1fr auto; gap: 12px; }
  .brand { justify-self: center; font-size: 19px; }
  .world-exit { font-size: 16px; }
  .hero { --overlap: calc(26 * var(--cell)); }
  .hero h1 { font-size: clamp(50px, 15.5vw, 92px); line-height: 1; white-space: normal; }
  .win { height: 430px; }
  .cta { width: 100%; }
  .hero .btn { width: calc(100% - 6px); }
  .btn { padding-inline: 20px; font-size: 20px; }
  .ings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 22px; }
  .ings__grid .px { width: 60px; height: 60px; }
  .ings__grid h3 { font-size: 21px; }
  .ings__grid p { font-size: 16px; }
  .bot__stand { width: 108px; padding-left: 4px; }
  .bot__stand .px { width: 96px; height: 96px; }
  .bub { left: 4px; width: 96px; }
  .bub i { width: 6px; height: 6px; }
  .bub i:nth-child(1) { left: 72px; top: 6px; }
  .bub i:nth-child(2) { left: 84px; top: 18px; }
  .bub i:nth-child(3) { left: 66px; top: 20px; }
  /* On a phone each shelf is one long plank you swipe along. */
  .shelf { --pad: clamp(20px, 4vw, 56px); display: flex; overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-snap-type: x proximity; scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .bot { flex: 0 0 min(74vw, 270px); scroll-snap-align: start; scroll-margin-left: var(--pad); }
  .bot__label { padding-right: 22px; }
  .ai__top { grid-template-columns: 1fr; }
  .ai__mirror { grid-row: 1; justify-self: start; }
  .ai__mirror .px { width: 150px; height: 210px; }
  .seam__wand { width: 96px; height: 96px; left: -66px; top: -42px; }
  .grip__tag { top: -46px; }
  .world-colophon { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .drink { transition: none; }
  .bot.is-live .bub i { animation: none; }
}
