/* Heli Akiva drafts: what the three directions share. Structure only (reset, the header's skeleton, the cart panel,
   the water canvas); every colour, font, radius and motion curve comes from the direction's own site.css tokens:
   --bg, --ink, --soft, --line, --accent, --on-accent, --card, --radius, --font-display, --font-body, --hdr-h. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h, 64px) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }

/* ---- header: fixed, clear over the opening photo, solid once the photo has scrolled away (shop.js: .is-solid) ---- */
.hdr {
  position: fixed; z-index: 40; top: 0; inset-inline: 0; height: var(--hdr-h, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 40px);
  background: var(--hdr-bg, var(--bg)); color: var(--ink);
  transition: background-color .45s ease, color .45s ease, box-shadow .45s ease;
}
.hdr.is-solid { box-shadow: 0 1px 0 var(--line); }
.js .hdr:not(.is-solid) { background: transparent; color: var(--hdr-over, #fff); }
.hdr__brand { text-decoration: none; white-space: nowrap; }
.hdr__nav { display: none; gap: clamp(18px, 3vw, 40px); }
.hdr__nav a { text-decoration: none; padding: 8px 2px; }
@media (min-width: 860px) { .hdr__nav { display: flex; } }
.hdr__cart {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-inline-end: -8px;
  border: 0; border-radius: 50%; background: none;
}
.hdr__cart svg { width: 24px; height: 24px; }
.hdr__cart b {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 11.5px/1 var(--font-body);
}
.hdr__cart b[hidden] { display: none; }

/* ---- the water canvas over a photo (ripple.js) ---- */
[data-ripple] { position: relative; overflow: hidden; }
.ripple__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.ripple__gl.is-on { opacity: 1; }

/* ---- cart panel (kit drawer) ---- */
:root { --fly-toast-bottom: 20px; }
@media (max-width: 899px) { :root { --fly-toast-bottom: calc(var(--bd-switch-h, 44px) + 14px); } }
.cart { --dr-bg: var(--card, #fff); color: var(--ink); font-family: var(--font-body); }
/* clip, not hidden: a hidden box can still be scrolled by the browser, and in a right-to-left dialog the panel waiting
   off screen on the left is "scrollable" content, so opening the cart (focus moves into it) shifted everything sideways */
.cart[data-drawer] { overflow: clip; }
.cart [data-drawer-panel] { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; }
.cart__head h2 { font: var(--cart-title, 400 28px/1.1 var(--font-display)); outline: none; }
.cart__x { width: 44px; height: 44px; margin-inline-end: -10px; border: 0; border-radius: 50%; background: none; font-size: 28px; line-height: 1; }
.cart__empty { padding: 28px 22px; color: var(--soft); font-size: 17px; }
.cart__empty[hidden] { display: none; }
.cart__lines { padding: 4px 22px 12px; display: grid; gap: 14px; }
.cart__line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.cart__line img { width: 76px; height: 76px; object-fit: cover; border-radius: calc(var(--radius) * .5); }
.cart__line b { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; }
.cart__line span { color: var(--soft); font-size: 15px; }
.cart__qty { display: flex; align-items: center; gap: 4px; }
.cart__qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 18px; line-height: 1; }
.cart__qty i { font-style: normal; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.cart__foot { padding: 16px 22px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart__sum { display: flex; justify-content: space-between; font-size: 18px; }
.cart__pay { width: 100%; }
.cart__note { color: var(--soft); font-size: 13.5px; text-align: center; }

/* ---- a sentence that fills in word by word while scrolling (words.js) ---- */
.is-split .w { opacity: .2; transition: opacity .5s ease; }
.is-split .w.is-lit { opacity: 1; }
