/* Taka Vona: the Instagram cover of the shop as a site. Burgundy masthead on ivory, the model in front of the letters. */
:root { --ivory: #f8f2e9; --sand: #efe7dd; --tile: #f0e8dc; --wine: #8d2333; --ink: #292522; --quiet: #70675d;
  --line: rgb(70 45 30 / .14); --gutter: clamp(16px, 4vw, 48px); --ease: cubic-bezier(.22, .8, .24, 1);
  --serif: "Prata", "Didot", Georgia, serif; --text: "Golos Text", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.45 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--wine); color: var(--ivory); }
.skip:focus { top: 8px; }
.quiet { color: var(--quiet); font-size: 14px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 15px 26px; border: 0; border-radius: 999px;
  background: var(--wine); color: var(--ivory); font-weight: 600; text-align: center; transition: scale .15s var(--ease); }
.cta:active { scale: .97; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--wine); color: var(--ivory); font: 600 11px/18px var(--text); text-align: center; font-variant-numeric: tabular-nums; }
.badge.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { scale: 1.45; } }

/* the bar above every page but the cover */
.top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 var(--gutter);
  background: rgb(248 242 233 / .9); backdrop-filter: blur(14px); }
.top.on-cover { display: none; }
.top .brand img { height: 19px; width: auto; }
.top nav { display: none; }
.top .fav { position: relative; margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--tile); }
.top .fav .badge { position: absolute; top: -2px; right: -2px; }

/* the tabs under the thumb */
.tabs { position: fixed; z-index: 9; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px; border-radius: 26px; background: rgb(252 249 244 / .86); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 10px 34px rgb(70 45 30 / .16), 0 0 0 1px rgb(70 45 30 / .07); }
.tabs a, .tabs button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 0; border: 0; background: none; font-size: 11px; font-weight: 500; color: var(--quiet); white-space: nowrap; }
.tabs .on { color: var(--wine); }
.tabs .badge { position: absolute; top: -2px; left: calc(50% + 6px); }
body.has-tabs main { padding-bottom: 110px; }
.foot { display: grid; gap: 6px; padding: 34px var(--gutter) 120px; color: var(--quiet); font-size: 14px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* the cover: one new thing at a time, like stories */
.stage { position: relative; height: calc(var(--screen, 100svh) - 86px); min-height: 560px; overflow: hidden; background: linear-gradient(170deg, var(--ivory) 30%, var(--sand));
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.bars { position: absolute; z-index: 5; left: var(--gutter); right: calc(var(--gutter) + 40px); top: 14px; display: flex; gap: 5px; }
.bars i { flex: 1; height: 3px; border-radius: 3px; background: rgb(141 35 51 / .18); overflow: hidden; }
.bars b { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--wine); }
.bars i.done b { width: 100%; }
.bars i.on b { animation: fill 5.5s linear forwards; }
.stage.paused .bars i.on b, .stage.held .bars i.on b, .stage.away .bars i.on b { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.hold { position: absolute; z-index: 6; right: calc(var(--gutter) - 12px); top: -6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--wine); }
.hold svg { width: 18px; height: 18px; stroke-width: 2.2; }
.hold .i-play { display: none; fill: currentColor; stroke-width: 1; }
.hold[aria-pressed="true"] .i-play { display: block; }
.hold[aria-pressed="true"] .i-pause { display: none; }
.mast { position: absolute; left: 14px; right: 14px; top: 38px; }
.mast img { width: 100%; height: auto; }
.step { position: absolute; z-index: 1; top: 0; bottom: 0; width: 34%; padding: 0; border: 0; background: none; color: transparent; }
.step.prev { left: 0; }
.step.next { right: 0; width: 66%; }
.step svg { display: none; }
.covers { position: absolute; inset: 0; pointer-events: none; }
.cover { position: absolute; inset: 0; visibility: hidden; }
.cover.on, .cover.was { visibility: visible; }
.model { position: absolute; z-index: 2; right: 3%; bottom: -6px; height: calc(100% - 66px); opacity: 0; translate: 9% 0; transition: opacity .45s var(--ease), translate .7s var(--ease); }
.model { width: 62%; }                                  /* a wide figure gets smaller instead of standing on the words */
.model img { width: 100%; height: 100%; object-fit: contain; object-position: 100% 100%; filter: drop-shadow(0 14px 12px rgb(70 45 30 / .16)); }
.model figcaption { display: none; }
.cover.on .model { opacity: 1; translate: 0; }
.cover.was .model { translate: -9% 0; }
.tag { position: absolute; z-index: 3; left: var(--gutter); top: 37%; max-width: 36%; display: grid; gap: 8px; opacity: 0; translate: 0 10px; transition: opacity .3s, translate .5s var(--ease); }
.cover.on .tag { opacity: 1; translate: 0; transition-delay: .16s; }
.tag-name { font-size: 15px; line-height: 1.25; }
.tag-price { font-weight: 600; font-size: 23px; font-variant-numeric: tabular-nums; }
.tag-price small { font-weight: 400; font-size: 13px; margin-left: 5px; }
.tag-sizes { font-size: 13px; color: var(--quiet); font-variant-numeric: tabular-nums; }
.go { position: absolute; z-index: 4; left: var(--gutter); bottom: 20px; padding: 15px 24px; border-radius: 999px; background: var(--wine); color: var(--ivory); font-weight: 600;
  opacity: 0; transition: opacity .3s; }
.cover.on .go { opacity: 1; pointer-events: auto; transition-delay: .24s; }

/* new things, day by day */
.fresh { padding: 30px 0 0; }
.fresh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); }
.fresh-head h2 { font: 400 clamp(34px, 9.4vw, 64px)/1.05 var(--serif); letter-spacing: -.01em; }
.fresh-head p { color: var(--quiet); font-size: 14px; white-space: nowrap; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter); }
.pills::-webkit-scrollbar { display: none; }
.pills a, .pills button { flex: none; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--tile); font-size: 15px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s; }
.pills .on { background: var(--wine); color: var(--ivory); }
.pills small { margin-left: 8px; font-size: 13px; font-weight: 400; opacity: .7; }
.fresh .pills { position: sticky; top: 0; z-index: 4; margin-top: 14px; background: rgb(248 242 233 / .9); backdrop-filter: blur(14px); }
.day { padding: 22px var(--gutter) 0; scroll-margin-top: 60px; }
.day h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font: 400 23px/1.1 var(--serif); }
.day h3 small { font: 400 14px/1 var(--text); color: var(--quiet); }

/* a card: the model on a tile, swipe to see the thing alone */
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; padding-bottom: 44px; }
.item { position: relative; }
.feed:not(.even, .row) .item:nth-child(even) { translate: 0 44px; }
.item a { display: grid; gap: 3px; }
.pic { position: relative; display: block; aspect-ratio: 3 / 4; margin-bottom: 7px; border-radius: 22px; overflow: hidden; background: linear-gradient(175deg, #f4ede2, #ebe2d5); }
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; object-fit: contain; }
.track .fig { padding: 9% 4% 0; object-position: 50% 100%; }
.track .alone { padding: 8%; mix-blend-mode: multiply; }
.pic:has(.fig + .alone)::after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 18px; height: 5px; translate: -50% 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) 5px, transparent 5px 8px, rgb(41 37 34 / .3) 8px 13px, transparent 13px); opacity: .55; }
.pic b { position: absolute; left: 8px; bottom: 8px; padding: 7px 12px; border-radius: 999px; background: var(--ivory); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.fit { position: absolute; left: 8px; top: 8px; padding: 6px 11px; border-radius: 999px; background: var(--wine); color: var(--ivory); font-style: normal; font-size: 13px; font-weight: 600; }
.nm { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sz { display: flex; align-items: center; gap: 10px; color: var(--quiet); font-size: 13px; font-variant-numeric: tabular-nums; }
.dots { display: flex; align-items: center; gap: 4px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .16); }
.dots i.unknown { background: none; box-shadow: inset 0 0 0 1.5px var(--quiet); }
.dots small { font-size: 12px; }
.heart { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(248 242 233 / .86); }
[data-save][aria-pressed="true"] svg { fill: var(--wine); stroke: var(--wine); }
[data-save].pop svg { animation: pop .45s var(--ease); }
@keyframes pop { 30% { scale: .7; } 65% { scale: 1.3; } }
.more { padding-bottom: 8px; }
.more button { width: 100%; padding: 16px; border: 1px solid rgb(141 35 51 / .35); border-radius: 999px; background: none; color: var(--wine); font-weight: 600; }
.item.fresh-in { animation: fresh-in .5s var(--ease) backwards; }
@keyframes fresh-in { from { opacity: 0; scale: .94; } }

/* her size */
.size { margin: 34px var(--gutter) 0; padding: 32px 22px 24px; border-radius: 30px; background: var(--wine); color: var(--ivory); display: grid; gap: 18px; }
.size h2 { font: 400 clamp(30px, 8.4vw, 54px)/1.08 var(--serif); }
.size .ask { display: grid; gap: 14px; }
.size p { max-width: 44ch; }
[data-size-form] { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
[data-size-form] label { display: grid; gap: 6px; font-size: 14px; }
[data-size-form] input { width: 100%; padding: 15px 16px; border: 1px solid transparent; border-radius: 16px; background: var(--tile); font: 600 18px/1 var(--text); font-variant-numeric: tabular-nums; }
[data-size-form] button[type=submit] { grid-column: 1 / -1; min-height: 54px; padding: 15px; border: 0; border-radius: 999px; background: var(--wine); color: var(--ivory); font-weight: 600; }
[data-size-form] .size-say { grid-column: 1 / -1; font-weight: 500; }
[data-size-form] .size-say:empty { display: none; }
[data-size-form] .forget { grid-column: 1 / -1; justify-self: start; padding: 8px 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.size [data-size-form] input { background: rgb(248 242 233 / .14); color: var(--ivory); }
.size [data-size-form] input:focus-visible, .size [data-size-form] button:focus-visible { outline-color: var(--ivory); }
.size [data-size-form] button[type=submit] { background: var(--ivory); color: var(--wine); }

/* sheets from the bottom: the size and the request */
.sheet { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; padding: 30px var(--gutter) calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 28px 28px 0 0;
  background: var(--ivory); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-in .38s var(--ease); }
.sheet::backdrop { background: rgb(41 37 34 / .42); animation: fade-in .3s; }
@keyframes sheet-in { from { translate: 0 100%; } }
@keyframes fade-in { from { opacity: 0; } }
.sheet h2 { font: 400 28px/1.12 var(--serif); padding-right: 44px; outline: 0; }
.sheet .lead { margin: 12px 0 18px; color: var(--quiet); }
.shut { position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--tile); }
[data-ask-form], .done { display: grid; gap: 16px; }
.ask-list { display: grid; gap: 10px; }
.ask-list li { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; }
.ask-list img { width: 54px; height: 68px; border-radius: 12px; background: var(--tile); object-fit: contain; object-position: 50% 100%; }
.ask-list span { font-size: 15px; line-height: 1.3; }
.ask-list small { display: block; color: var(--quiet); font-size: 13px; }
.ask-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field input { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; font-size: 17px; }
.field input[aria-invalid="true"] { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.err { color: var(--wine); font-weight: 500; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { display: flex; align-items: baseline; gap: 10px; width: 100%; margin-bottom: 10px; padding: 0; font-size: 14px; color: var(--quiet); }
.pick legend b { color: var(--ink); font-weight: 500; }
.pick legend a { margin-left: auto; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick label span { display: flex; align-items: center; gap: 8px; min-width: 52px; min-height: 46px; justify-content: center; padding: 10px 16px; border-radius: 999px; background: var(--tile);
  font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .18s, color .18s; }
.pick input:checked + span { background: var(--wine); color: var(--ivory); }
.pick input:focus-visible + span { outline: 3px solid var(--wine); outline-offset: 3px; }
.pick label.mine span { box-shadow: inset 0 0 0 2px var(--wine); }
.pick i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18), 0 0 0 1.5px var(--ivory); }
.pick i.unknown { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.pick.shake { animation: shake .4s; }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }

/* the catalogue */
.cat { padding-top: 8px; }
.cat h1, .keep h1 { padding: 8px var(--gutter) 0; font: 400 clamp(34px, 9.4vw, 64px)/1.05 var(--serif); letter-spacing: -.01em; }
.find { position: relative; margin: 16px var(--gutter) 4px; }
.find svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--quiet); pointer-events: none; }
.find input { width: 100%; padding: 15px 16px 15px 48px; border: 0; border-radius: 999px; background: var(--tile); font-size: 16px; }
.find input::placeholder { color: var(--quiet); }
.cat .chips { position: sticky; top: 56px; z-index: 4; background: rgb(248 242 233 / .9); backdrop-filter: blur(14px); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 6px var(--gutter) 18px; }
.toggle { padding: 10px 16px; border: 1px solid rgb(141 35 51 / .35); border-radius: 999px; background: none; color: var(--wine); font-weight: 500; font-size: 15px; }
.toggle[aria-pressed="true"] { background: var(--wine); color: var(--ivory); border-color: var(--wine); }
.sort select { padding: 10px 34px 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 15px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat;
  background-position: calc(100% - 19px) 55%, calc(100% - 13px) 55%; }
.tools p { width: 100%; color: var(--quiet); font-size: 14px; }
.cat .feed, .cat .more { margin: 0 var(--gutter); }
.empty { display: grid; justify-items: start; gap: 12px; margin: 10px var(--gutter) 40px; padding: 30px 22px; border-radius: 26px; background: var(--tile); }
.empty h2 { font: 400 24px/1.15 var(--serif); }
.empty p { color: var(--quiet); max-width: 40ch; }

/* a thing */
.look { position: relative; }
.shots { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gutter) 0; scroll-padding-inline: var(--gutter); }
.shots::-webkit-scrollbar { display: none; }
.shot { position: relative; flex: 0 0 88%; aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: 26px; overflow: hidden; background: linear-gradient(175deg, #f4ede2, #ebe2d5); }
.shot:only-child { flex-basis: 100%; }
.shot > img { width: 100%; height: 100%; object-fit: cover; }
.shot.alone > img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.shot.face { background: linear-gradient(170deg, var(--ivory) 30%, var(--sand)); box-shadow: inset 0 0 0 1px var(--line); }
.shot.face .word { position: absolute; left: 5%; top: 5%; width: 90%; height: auto; }
.shot.face .fig { position: absolute; left: 0; bottom: 0; height: 91%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 12px 10px rgb(70 45 30 / .15)); view-transition-name: shot; }
.shot.flash { animation: flash .9s var(--ease); }
@keyframes flash { 30% { box-shadow: inset 0 0 0 4px var(--wine); } }
.count { position: absolute; right: calc(var(--gutter) + 12% + 2px); bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgb(41 37 34 / .62); color: var(--ivory); font-size: 13px; font-variant-numeric: tabular-nums; }
.info { display: grid; gap: 16px; padding: 20px var(--gutter) 0; }
.where { display: flex; gap: 12px; color: var(--quiet); font-size: 14px; }
.where a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.info h1 { font: 400 clamp(27px, 7.4vw, 40px)/1.14 var(--serif); }
.price { font-weight: 600; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { margin-left: 6px; font-weight: 400; font-size: 16px; }
.about { max-width: 52ch; }
.choose { display: grid; gap: 18px; }
.note { margin-top: -8px; font-size: 14px; color: var(--wine); font-weight: 500; }
.avail { display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--tile); font-size: 14px; }
.avail b { font-size: 15px; font-weight: 600; }
.avail span { color: var(--quiet); }
.acts { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.save { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 20px; border: 1px solid rgb(141 35 51 / .35); border-radius: 999px; background: none; color: var(--wine); font-weight: 600; }
.facts { display: grid; gap: 8px; padding: 4px 0; }
.facts li { position: relative; padding-left: 20px; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); }
.part { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.part h2 { font: 400 22px/1.15 var(--serif); }
.measure { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.measure table { border-collapse: collapse; min-width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.measure caption { display: none; }
.measure th, .measure td { padding: 11px 12px; text-align: left; white-space: nowrap; }
.measure thead th { color: var(--quiet); font-weight: 400; font-size: 13px; }
.measure tbody tr { border-top: 1px solid var(--line); cursor: pointer; }
.measure tbody th { font-weight: 600; }
.measure tr.own { background: rgb(141 35 51 / .08); }
.measure tr.own th::after { content: " ваш"; color: var(--wine); font-weight: 500; }
.measure tr.picked { background: var(--wine); color: var(--ivory); }
.measure tr.picked th::after { color: inherit; }
.ease { font-size: 14px; color: var(--quiet); }
.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li { position: relative; padding-left: 42px; min-height: 30px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--tile); font: 400 15px/1 var(--serif); }
.code { color: var(--quiet); font-size: 13px; }
.alike { padding: 34px 0 0; }
.alike h2 { padding: 0 var(--gutter) 16px; font: 400 26px/1.1 var(--serif); }
.feed.row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 var(--gutter) 10px; scroll-padding-inline: var(--gutter); }
.feed.row::-webkit-scrollbar { display: none; }
.feed.row .item { flex: 0 0 44%; scroll-snap-align: start; }
.buybar { position: fixed; z-index: 9; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 30px; background: rgb(252 249 244 / .9); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 10px 34px rgb(70 45 30 / .16), 0 0 0 1px rgb(70 45 30 / .07); animation: bar-in .35s var(--ease); }
@keyframes bar-in { from { translate: 0 120%; } }
.buybar p { display: grid; min-width: 0; font-size: 13px; color: var(--quiet); }
.buybar p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar p b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.buybar .cta { min-height: 48px; padding: 12px 20px; }

body.has-tabs .buybar { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-tabs main.keep { padding-bottom: 190px; }

/* saved things */
.keep { padding-top: 8px; }
.keep .lead { padding: 10px var(--gutter) 0; color: var(--quiet); }
.kept { display: grid; gap: 12px; padding: 20px var(--gutter) 0; }
.kept > li { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; border-radius: 24px; background: var(--tile); }
.kept .thumb { align-self: start; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: linear-gradient(175deg, #f8f2e9, #efe7dd); }
.kept .thumb img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; padding-top: 8%; }
.kept .thumb img.alone { padding: 8%; object-position: 50% 50%; mix-blend-mode: multiply; }
.kept .say { display: grid; align-content: start; gap: 8px; min-width: 0; padding-right: 36px; }
.kept .say a { font-size: 15px; line-height: 1.3; }
.kept .say b { font-size: 18px; font-variant-numeric: tabular-nums; }
.kept .pick { gap: 6px; }
.kept .pick legend { margin-bottom: 6px; font-size: 13px; }
.kept .pick label span { min-width: 44px; min-height: 40px; padding: 8px 12px; background: var(--ivory); font-size: 14px; }
.kept .drop { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--quiet); }
.kept .drop svg { width: 18px; height: 18px; }
.kept > li.out { animation: out .3s var(--ease) forwards; }
@keyframes out { to { opacity: 0; scale: .96; } }

/* one page slides into another where the browser can do it */
@view-transition { navigation: auto; }
::view-transition-group(shot) { animation-duration: .42s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }

/* the cover drifts apart as the page leaves */
@media (prefers-reduced-motion: no-preference) {
  .mast img { animation: rise .9s var(--ease) backwards; }
  @keyframes rise { from { clip-path: inset(100% 0 0 0); translate: 0 22px; } to { clip-path: inset(0); } }
  .covers { animation: step-in .9s .12s var(--ease) backwards; }
  @keyframes step-in { from { opacity: 0; translate: 0 34px; } }
  @supports (animation-timeline: scroll()) {
    .mast { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 620px; }
    @keyframes drift { to { translate: 0 90px; opacity: .35; } }
  }
}
html.still .mast img, html.still .covers { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .bars i.on b { animation: none; width: 100%; }
  @view-transition { navigation: none; }
}

@media (hover: hover) {
  .item:hover .track { scroll-behavior: smooth; }
  .pills a:hover, .pills button:hover { background: #e7dccd; }
  .pills .on:hover { background: var(--wine); }
  .cta:hover, .go:hover { background: #7a1d2b; }
}

@media (min-width: 720px) {
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed:not(.even, .row) .item:nth-child(even) { translate: none; }
  .feed.row .item { flex-basis: 30%; }
  .kept { grid-template-columns: 1fr 1fr; }
  .sheet { width: 480px; margin: auto; border-radius: 28px; padding: 34px 32px 30px; }
  .sheet[open] { animation-name: pop-in; }
  @keyframes pop-in { from { opacity: 0; scale: .96; } }
}

@media (min-width: 1000px) {
  .top, .top.on-cover { display: flex; position: static; height: 72px; gap: 28px; background: none; backdrop-filter: none; font-size: 15px; }
  .top.on-cover .brand { display: none; }
  .top .brand img { height: 26px; }
  .top nav { display: flex; align-items: center; gap: 28px; }
  .top nav button { padding: 0; border: 0; background: none; }
  .top nav .on { color: var(--wine); }
  .tabs { display: none; }
  body.has-tabs main { padding-bottom: 60px; }
  .foot { padding-bottom: 50px; }

  .stage { height: min(86vh, 840px); min-height: 640px; margin: 0 var(--gutter); overflow: visible; background: none; }
  .mast { left: 0; right: 0; top: 6px; }
  .cover { visibility: visible; }
  .model img { width: auto; max-width: none; object-fit: fill; }
  .model { width: auto; right: auto; left: 96%; bottom: 0; height: calc(100% - 78px); translate: -50% 0; scale: .74; transform-origin: 50% 100%; opacity: 0;
    transition: opacity .35s, left 0s .4s, scale 0s .4s; }
  .cover.on .model, .cover.was .model { translate: -50% 0; }
  .cover.on .model { left: 48%; scale: 1; opacity: 1; z-index: 3; transition: opacity .5s, left .85s var(--ease), scale .85s var(--ease); }
  .cover.next .model, .cover.prev .model { opacity: 1; pointer-events: auto; cursor: pointer; transition: opacity .5s, left .85s var(--ease), scale .85s var(--ease); }
  .cover.next .model { left: 89%; }
  .cover.prev .model { left: 11%; }
  .cover.next figcaption, .cover.prev figcaption { display: block; position: absolute; left: 50%; bottom: 18px; translate: -50% 0; padding: 9px 18px; border-radius: 999px; background: var(--ivory);
    font-weight: 600; font-size: 20px; white-space: nowrap; box-shadow: 0 0 0 1px rgb(70 45 30 / .08); }
  .tag { left: calc(50% + 190px); top: 45%; max-width: 210px; }
  .tag-name { font-size: 17px; }
  .tag-price { font-size: 28px; }
  .go { left: calc(50% + 190px); bottom: 27%; }
  .bars { left: calc(50% + 190px); right: auto; top: auto; bottom: 20%; width: 132px; }
  .hold, .step.prev, .step.next { top: auto; bottom: calc(20% - 21px); width: 44px; height: 44px; color: var(--wine); }
  .step { z-index: 6; display: grid; place-items: center; }
  .step svg { display: block; width: 18px; height: 18px; stroke-width: 2.2; }
  .step.prev { left: calc(50% + 190px + 138px); }
  .step.next { left: calc(50% + 190px + 176px); right: auto; rotate: 180deg; }
  .hold { left: calc(50% + 190px + 214px); right: auto; }

  .fresh { padding-top: 70px; }
  .fresh .pills { margin-top: 20px; }
  .day { padding-top: 34px; }
  .day h3 { font-size: 30px; margin-bottom: 22px; }
  .feed { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; }
  .feed:not(.even, .row) .item:nth-child(even) { translate: 0 44px; }
  .pic { border-radius: 28px; }
  .size { grid-template-columns: 1fr 1fr; align-items: center; padding: 54px; gap: 40px; margin-top: 60px; }

  .cat .chips { top: 0; }
  .find { max-width: 520px; }
  .tools p { width: auto; margin-left: auto; }
  .feed.row .item { flex-basis: 19%; }

  .thing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding: 8px var(--gutter) 0; }
  .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; padding: 0; }
  .shot { flex: none; }
  .shot:only-child { grid-column: 1 / -1; max-width: 560px; }
  .count { display: none; }
  .info { position: sticky; top: 20px; padding: 0; }
  .buybar[data-buybar] { display: none; }
  .buybar, body.has-tabs .buybar { left: auto; right: var(--gutter); width: 440px; bottom: 20px; }
  .kept { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- what the real pages add to the prototype ---------- */
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); translate: -50% 0; width: max-content; max-width: min(92vw, 440px);
  padding: 14px 20px; border-radius: 18px; background: var(--ink); color: var(--ivory); font-size: 15px; text-align: center; box-shadow: 0 10px 30px rgb(41 37 34 / .3); animation: fade-in .25s; }
.linkish { justify-self: start; margin-top: -8px; padding: 6px 0; border: 0; background: none; color: var(--wine); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.pick input:disabled + span { color: var(--quiet); text-decoration: line-through; opacity: .55; cursor: not-allowed; }
.about-text { display: grid; gap: 12px; }
.about-list { display: grid; gap: 8px; }
.about-list li { position: relative; padding-left: 20px; }
.about-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); }
.about-line { font-size: 15px; max-width: 60ch; }
.about-line b { font-weight: 600; }
.see { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--quiet); font-size: 14px; }
.see button { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--tile); color: var(--wine); font-weight: 500; }
.part > p { max-width: 60ch; }
.charts { display: grid; gap: 10px; }
.charts img { height: auto; border-radius: 16px; }
.post a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.soon { margin: 0 var(--gutter) 30px; color: var(--quiet); font-size: 14px; }
.stage.plain .plain-say { position: absolute; left: var(--gutter); right: var(--gutter); top: 38%; max-width: 20ch; font: 400 26px/1.3 var(--serif); }
.stage.plain .go { opacity: 1; }
.field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; font: inherit; font-size: 17px; resize: vertical; }
.trap { position: absolute; left: -9999px; }
.ask-list li.sum { grid-template-columns: 1fr auto; padding-top: 10px; border-top: 1px solid var(--line); }
.ask-list img.alone { object-position: 50% 50%; mix-blend-mode: multiply; }
.kept > li.shake { animation: shake .4s; }
.empty h1 { font: 400 28px/1.15 var(--serif); }
.done p { max-width: 46ch; }
.done-box [data-done-text] { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- the basket, the order and her own page ---------- */
.tabs { grid-template-columns: repeat(5, 1fr); }
.top .fav + .fav { margin-left: -4px; }
.cta.small { justify-self: start; min-height: 44px; padding: 10px 18px; font-size: 15px; }
.kept .say .quiet { font-size: 14px; }
.kept .say .linkish { margin-top: 0; }
.order { display: grid; gap: 14px; max-width: 560px; margin: 28px var(--gutter) 0; }
.order h2, .block h2 { font: 400 26px/1.12 var(--serif); }
.tick { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tick input { width: 22px; height: 22px; accent-color: var(--wine); }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-row b { font-size: 20px; font-variant-numeric: tabular-nums; }
.done-box { margin-top: 20px; outline: 0; }
.done-box .save { text-decoration: none; }
.me .block { display: grid; gap: 14px; margin: 30px var(--gutter) 0; max-width: 620px; }
.me .block .order { margin: 0; }
.me .block [data-size-form] { max-width: 420px; }
.me .block a:not(.cta) { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.me .block .acts { grid-template-columns: 1fr auto; }
.orders { display: grid; gap: 12px; }
.order-card { display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: var(--tile); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-head b { font-weight: 600; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--wine); color: var(--ivory); font-size: 13px; font-weight: 600; }
.chip.off { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--quiet); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 12px; color: var(--quiet); }
.progress li { padding-top: 10px; border-top: 3px solid rgb(141 35 51 / .18); }
.progress li.past, .progress li.now { border-color: var(--wine); }
.progress li.now { color: var(--ink); font-weight: 600; }
.order-items { display: grid; gap: 8px; }
.order-items li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; }
.order-items small { display: block; color: var(--quiet); font-size: 13px; }
.order-items b { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  .top .fav + .fav { margin-left: -12px; }
  .keep[data-cart] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 0 clamp(28px, 4vw, 64px); align-items: start; }
  .keep[data-cart] h1, .keep[data-cart] .empty { grid-column: 1 / -1; }
  .keep[data-cart] .kept { grid-template-columns: 1fr 1fr; }
  .keep[data-cart] .order { margin: 20px var(--gutter) 0 0; padding: 26px; border-radius: 28px; background: #fffdf9; box-shadow: 0 0 0 1px var(--line); position: sticky; top: 20px; }
}

/* ---------- the shop's own pages of words, and the empty shop ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.words { max-width: 760px; }
.prose { display: grid; gap: 14px; padding: 18px var(--gutter) 0; }
.prose h2 { margin-top: 10px; font: 400 24px/1.15 var(--serif); }
.prose p { max-width: 64ch; }
.stage.plain .go { text-decoration: none; }
.empty a:not(.cta) { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
  /* the empty shop on a wide screen: the masthead, a line and a button, one under another */
  .stage.plain { height: auto; min-height: 0; padding-bottom: 80px; }
  .stage.plain .mast { position: static; }
  .stage.plain .plain-say { position: static; margin-top: 44px; max-width: 24ch; font-size: 38px; }
  .stage.plain .go { position: static; display: inline-block; margin-top: 28px; }
}

/* ---------- fields that say what is wrong, and her own page ---------- */
.field select { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; font: inherit; font-size: 17px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat;
  background-position: calc(100% - 23px) 55%, calc(100% - 17px) 55%; }
.field [aria-invalid="true"] { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.field .err { font-size: 14px; }
.me .lead { padding: 10px var(--gutter) 0; color: var(--quiet); max-width: 60ch; }
.me-nav { margin-top: 6px; position: sticky; top: 56px; z-index: 4; background: rgb(248 242 233 / .92); backdrop-filter: blur(14px); }
.me .block { scroll-margin-top: 120px; }
.me .block .empty { margin: 0; }
.me-card { display: grid; gap: 12px; justify-items: start; padding: 18px; border-radius: 24px; background: var(--tile); }
.me-card pre { margin: 0; font: inherit; white-space: pre-wrap; }
.save.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.order-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.order-acts .linkish { margin: 0; }
.avail a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; margin-right: 14px; }
@media (min-width: 1000px) { .me-nav { top: 0; } }
html { scroll-padding-top: 76px; scroll-padding-bottom: 150px; }
.kept > li, .order-card { min-width: 0; }
.prose .about-list li { max-width: 62ch; }
.prose a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.words h1 { font-size: clamp(30px, 8vw, 54px); }
