/* ============ Finch & Friends — dark theme (v1.6 design) ============ */
:root {
  --bg: #2A1710;
  --surface: #3A2118;
  --surface-2: #452A20;
  --line: #573529;
  --cream: #FFF1E6;
  --muted: #D2B3A4;
  --ink: #1E0D08;
  --orange: #FF6A1A;
  --red: #D62A1E;
  --red-text: #FF5A45;
  --peach: #FFB27A;
  --yellow: #FFC23D;
  --nav-bg: rgba(42, 23, 16, .86);
  --footer-bg: #1F110B;
  --pill-text: #E8C9B8;
  --badge-text: #FFD9C2;
  --hover-shadow: 0 26px 50px rgba(0,0,0,.55);
  --water: #170B07;              /* darker accent the "jug" fills with */
  --water-2: rgba(255, 106, 26, .5);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --ease-float: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"] {
  --bg: #FFF7F0;
  --surface: #FFFFFF;
  --surface-2: #FFE6D6;
  --line: #F1DDCF;
  --cream: #1E0D08;              /* main text colour */
  --muted: #6B4A3E;
  --red-text: #D62A1E;
  --nav-bg: rgba(255, 247, 240, .88);
  --footer-bg: #1E0D08;
  --pill-text: #6B3A2C;
  --badge-text: #6B3A2C;
  --hover-shadow: 0 26px 50px rgba(110, 30, 10, .18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--cream); background: var(--page-bg, var(--bg));
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
a { color: #FF6A4A; } a:hover { color: #FF9A7A; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
.red { color: var(--red-text); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn, .btn-cart, .btn-dark, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .2s ease, opacity .2s;
}
.btn:hover, .btn-cart:hover, .btn-dark:hover, .btn-ghost:hover { transform: translateY(-1px); }
.btn:active, .btn-cart:active, .btn-dark:active { transform: translateY(1px); }
.btn-red { color: #fff; background: var(--red); }
.btn-red:hover { color: #fff; background: #E8392C; }
.btn-ghost { color: var(--cream); background: transparent; border: 1.5px solid var(--cream); padding: 0 24px; }
.btn-ghost:hover { color: var(--cream); }
.btn-dark { color: #fff; background: var(--red); min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.full { width: 100%; }

/* gravity + idle bob (driven by --g / --gr from app.js) */
@property --bob { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes bob { 0%, 100% { --bob: -1; } 50% { --bob: 1; } }
.grav {
  translate: 0 calc(var(--g, 0px) * var(--k, 1) + var(--bob) * 3px);
  rotate: calc(var(--gr, 0deg) * var(--k, 1) + var(--bob) * .6deg);
  animation: bob 4.2s ease-in-out infinite;
}
.k1 { --k: 1; } .k2 { --k: 1.45; } .k3 { --k: .7; } .k4 { --k: 1.2; } .k5 { --k: .9; }
.k2.grav { animation-duration: 5s; animation-delay: -1.3s; }
.k3.grav { animation-duration: 3.8s; animation-delay: -2.1s; }
.k4.grav { animation-duration: 4.6s; animation-delay: -.7s; }
.k5.grav { animation-duration: 5.4s; animation-delay: -3s; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--bg); transition: opacity .6s ease, transform .6s ease;
}
.loader.leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }
.loader-center { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: -80px; text-align: center; padding: 0 20px; }
.loader-title { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -1px; }
.loader-sub { color: var(--muted); }
.ld-dot { animation: ldd 1s ease-in-out infinite; }
.ld-dot:nth-child(2) { animation-delay: .15s; } .ld-dot:nth-child(3) { animation-delay: .3s; }
@keyframes ldd { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.ld-track { width: 220px; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ld-bar { height: 6px; width: 0; background: var(--orange); border-radius: 999px; animation: ldbar 2.6s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes ldbar { to { width: 100%; } }
.ld-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: var(--surface); border-top: 2px dashed var(--line); }
.ld-walk { position: absolute; bottom: 56px; left: 0; transform: translateX(-160px); animation: walk 3.2s linear forwards; }
.ld-walk.w2 { animation-delay: .45s; } .ld-walk.w3 { animation-delay: .85s; }
@keyframes walk { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 40px)); } }
.ld-bob { animation: ldbob .32s ease-in-out infinite alternate; }
@keyframes ldbob { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-10px) rotate(5deg); } }
.ld-hop { transform-origin: 50% 100%; animation: ldhop .45s cubic-bezier(.3,0,.6,1) infinite alternate; }
@keyframes ldhop { from { transform: translateY(0) scale(1.08,.92); } to { transform: translateY(-26px) scale(.95,1.05); } }
.ld-roll { animation: ldroll .9s linear infinite; }
@keyframes ldroll { to { transform: rotate(360deg); } }
.legA, .legB { stroke: var(--cream); transform-box: fill-box; transform-origin: 50% 0; animation: leg .32s ease-in-out infinite alternate; }
.legB { animation-direction: alternate-reverse; }
@keyframes leg { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.brand:hover { color: var(--cream); }
.logo-badge { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--orange); border-radius: 12px; }
.logo-badge svg { width: 26px; height: 26px; }
.logo-badge.big { width: 72px; height: 72px; border-radius: 22px; }
.logo-badge.big svg { width: 48px; height: 48px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links > a { color: var(--cream); text-decoration: none; }
.nav-links > a:hover { color: var(--orange); }
.btn-cart { min-height: 44px; padding: 0 18px; font-size: 15px; color: var(--ink); background: var(--orange); }
.btn-cart:hover { color: var(--ink); }
.count { display: flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; font-size: 13px; color: var(--orange); background: var(--ink); border-radius: 999px; }
@media (max-width: 640px) { .nav-row { flex-wrap: nowrap; } .nav-links { gap: 16px; } .nav-links > a { display: none; } .brand { font-size: 19px; } }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; padding-top: 56px; padding-bottom: 80px; }
.hero-text-col { flex: 1 1 480px; min-width: 0; display: flex; padding: 24px 0; }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.pill-badge { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; font-weight: 500; font-size: 14px; color: var(--badge-text); background: var(--surface-2); border-radius: 999px; }
.pill-badge .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.hero h1 { font-weight: 800; font-size: clamp(46px, 6.2vw, 84px); line-height: .95; letter-spacing: -3px; }
.hero p { max-width: 470px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-panel { flex: 1 1 440px; min-width: 0; position: relative; min-height: 480px; background: var(--orange); border-radius: 36px; overflow: hidden; }
.layer, .deco { position: absolute; pointer-events: none; }
.circle { width: var(--s); height: var(--s); background: var(--c); border-radius: 50%; }
.hero-finch { position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; margin: -160px 0 0 -160px; }
.hero-finch svg { width: 320px; height: 320px; display: block; }
.chip { position: absolute; padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; }
.chip-light { left: 24px; top: 24px; color: var(--ink); background: #FFF7F0; }
.chip-dark { right: 24px; bottom: 24px; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; background: var(--ink); }
@media (max-width: 520px) {
  .hero-panel { min-height: 380px; }
  .hero-finch { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .hero-finch svg { width: 240px; height: 240px; }
  .hero h1 { letter-spacing: -2px; }
}

/* ---------- strip ---------- */
.strip { background: var(--red); overflow: hidden; }
.strip-row { display: flex; width: max-content; gap: 28px; padding: 20px 0; white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 22px; }
.strip-row .sep { color: var(--yellow); }

/* ---------- sections ---------- */
.section { position: relative; padding-top: 96px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.section-tight { position: relative; padding-bottom: 96px; display: flex; flex-direction: column; gap: 36px; }
.section-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head > div:not(.filters) { display: flex; flex-direction: column; gap: 8px; }
.section-head h2 { font-weight: 800; font-size: clamp(36px, 4.5vw, 48px); letter-spacing: -1.5px; }
.eyebrow { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--red-text); }
.eyebrow.light { color: #FFD9C2; }

/* ---------- shop ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--surface-2); border-radius: 999px; }
.filters button { min-height: 44px; padding: 0 18px; font: inherit; font-weight: 600; font-size: 15px; color: var(--pill-text); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
@media (max-width: 640px) { .filters { border-radius: 22px; } }
.filters button[aria-pressed="true"] { color: var(--ink); background: var(--orange); }
.notice { padding: 12px 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product { display: flex; }
.card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .45s var(--ease-float), box-shadow .45s ease;
  animation: drift 7s ease-in-out infinite;
}
.card:hover { transform: translateY(-12px); box-shadow: var(--hover-shadow), 0 0 0 1.5px var(--orange); }
@keyframes drift { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 7px; } }
.product:nth-child(2n) .card, .friend:nth-child(2n) { animation-duration: 8.2s; animation-delay: -2.4s; }
.product:nth-child(3n) .card, .friend:nth-child(3n) { animation-duration: 6.4s; animation-delay: -4.1s; }
.product .card { flex: 1; text-align: left; font: inherit; color: inherit; border: 0; padding: 0; cursor: pointer; }
.p-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: 18px; overflow: hidden; }
.p-art img { width: 100%; height: 100%; object-fit: cover; }
.p-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.p-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--peach); }
.p-body h3 { font-weight: 600; font-size: 21px; letter-spacing: -.3px; margin-top: 4px; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-price { font-weight: 700; font-size: 18px; }
.p-add { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: #fff; background: var(--red); border: 0; border-radius: 50%; cursor: pointer; }
.p-add:hover { background: #E8392C; }

/* ---------- friends ---------- */
.friends { position: relative; overflow: hidden; padding: 64px 48px; background: var(--red); border-radius: 40px; display: flex; flex-direction: column; gap: 40px; }
.section-head.on-red h2 { color: #fff; }
.section-head.on-red p { max-width: 340px; font-size: 17px; line-height: 1.6; color: #FFE6D6; }
.friend-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.friend { gap: 14px; padding: 24px; border-radius: 28px; box-shadow: none; }
.friend-art { display: flex; align-items: center; justify-content: center; height: 180px; overflow: hidden; background: var(--peach); border-radius: 20px; }
.friend h3 { font-weight: 800; font-size: 26px; letter-spacing: -.5px; }
.friend p { font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (max-width: 640px) { .friends { padding: 44px 22px; border-radius: 28px; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border-radius: 24px; box-shadow: 0 0 0 1px var(--line); }
.step .num { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--orange); }
.step h3 { font-weight: 600; font-size: 22px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- signup ---------- */
.signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 48px; background: var(--orange); border-radius: 36px; }
.signup-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.signup h2 { font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -1px; color: var(--ink); }
.signup p { font-size: 17px; color: #3A1A10; }
.signup-form { flex: 1 1 400px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--bg); border-radius: 999px; }
.signup-form input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 0 18px; font: inherit; font-size: 16px; color: var(--cream); background: transparent; border: 0; }
.signup-form input::placeholder { color: #B08A7A; }
.signup-done { padding: 14px 24px; font-weight: 700; font-size: 17px; color: #fff !important; background: var(--ink); border-radius: 999px; }
@media (max-width: 640px) { .signup { padding: 32px 22px; } .signup-form { border-radius: 24px; } .signup-form button { width: 100%; } }

/* ---------- footer ---------- */
.footer { background: var(--footer-bg); color: #FFE6D6; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--orange); }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a { color: #FFE6D6; text-decoration: none; }
.footer nav a:hover { color: var(--orange); }

/* ---------- product popup ---------- */
dialog { padding: 0; width: min(880px, 94vw); color: var(--cream); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(10, 4, 2, .7); backdrop-filter: blur(4px); }
dialog[open] { animation: dlg .5s var(--ease-float); }
@keyframes dlg { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.x { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--cream); background: var(--surface-2); border: 0; border-radius: 50%; cursor: pointer; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-img { background: var(--peach); min-height: 320px; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pd-info h2 { font-weight: 800; font-size: 32px; letter-spacing: -1px; padding-right: 40px; }
.pd-price { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--orange); }
.pd-info label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
select { font: inherit; min-height: 44px; padding: 0 12px; color: var(--cream); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.pd-desc { font-size: 15px; line-height: 1.6; color: var(--muted); max-height: 180px; overflow: auto; white-space: pre-line; }
@media (max-width: 680px) { .pd { grid-template-columns: 1fr; } .pd-img { aspect-ratio: 1; min-height: 0; } }

/* ---------- cart ---------- */
.cart { position: fixed; top: 0; right: 0; z-index: 40; width: min(400px, 92vw); height: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .5s var(--ease-float); }
.cart.open { transform: none; }
.cart-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-weight: 800; font-size: 26px; }
.cart-head .x { position: static; }
#cartItems { list-style: none; margin: 0; padding: 8px 22px; flex: 1; overflow: auto; }
#cartItems li { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
#cartItems img { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; background: var(--peach); }
#cartItems .t { font-weight: 600; font-size: 15px; }
#cartItems .v { color: var(--muted); font-size: 13px; }
#cartItems .empty { display: block; text-align: center; color: var(--muted); padding: 40px 0; border: 0; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; color: var(--cream); background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-weight: 700; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cart-foot p { display: flex; justify-content: space-between; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(10, 4, 2, .6); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translateX(-50%); padding: 12px 20px; font-weight: 600; color: var(--ink); background: var(--orange); border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: toast .5s var(--ease-float); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 640px) { .toast { bottom: auto; top: 80px; max-width: 90vw; text-align: center; } }
.pd-img { display: flex; align-items: center; justify-content: center; }
.pd-img svg { width: 60%; height: auto; }

/* ---------- intro, float, reveal ---------- */
.intro { opacity: 0; }
body.ready .intro { animation: intro 1.3s var(--ease-float) forwards; }
body.ready .d1 { animation-delay: .1s; } body.ready .d2 { animation-delay: .3s; }
body.ready .d3 { animation-delay: .5s; } body.ready .d4 { animation-delay: .7s; }
@keyframes intro { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
.pop { opacity: 0; }
body.ready .pop { animation: pop .9s cubic-bezier(.3,1.5,.5,1) .1s forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.float { animation: flt 7.5s ease-in-out infinite; }
@keyframes flt { 0%, 100% { transform: translateY(4px) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
.spin { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(110px) scale(.94); transition: opacity 1.1s ease, transform 1.4s var(--ease-float); }
.reveal.in { opacity: 1; transform: none; }
[data-py], [data-px] { will-change: transform; }

/* ---------- text pages (shipping, privacy) ---------- */
.doc { max-width: 760px; padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 22px; }
.doc h1 { font-weight: 800; font-size: clamp(40px, 6vw, 64px); letter-spacing: -2px; line-height: 1; }
.doc h2 { font-weight: 800; font-size: 26px; letter-spacing: -.5px; margin-bottom: 10px; }
.doc .lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.doc section { padding: 26px 28px; background: var(--surface); border-radius: 24px; box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 90px; }
.doc section p, .doc li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.doc section p + p { margin-top: 12px; }
.doc strong { color: var(--cream); }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc .note { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--orange); background: var(--surface-2); border-radius: 10px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--cream); text-decoration: none; background: var(--surface-2); border-radius: 999px; }
.toc a:hover { color: var(--ink); background: var(--orange); }
.doc-table { display: grid; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doc-table [role="row"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.doc-table [role="row"]:first-child { border-top: 0; font-weight: 700; color: var(--cream); background: var(--surface-2); }
.nav .btn-cart { text-decoration: none; }

/* ---------- product share link ---------- */
.pd-share { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; font: inherit; font-weight: 600; font-size: 14px; color: var(--cream); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.pd-share:hover { border-color: var(--orange); }

/* ---------- theme toggle ---------- */
.btn-theme { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--cream); background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.btn-theme:hover { color: var(--orange); }
.btn-theme .ico-sun { display: none; }
:root[data-theme="light"] .btn-theme .ico-sun { display: block; }
:root[data-theme="light"] .btn-theme .ico-moon { display: none; }

/* ---------- water fill (the site is the jug) ---------- */
/* sits BEHIND the page: the background fills up while the content stays on top */
.water-ov { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* while switching, every colour eases over to the new theme */
.theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 1.3s ease .15s, color 1.3s ease .15s, border-color 1.3s ease .15s,
              fill 1.3s ease .15s, stroke 1.3s ease .15s, box-shadow 1.3s ease .15s !important;
}
.theme-anim body { transition: none !important; }
.water { position: absolute; left: 0; right: 0; bottom: 0; height: calc(100vh + 90px); display: flex; flex-direction: column; transform: translateY(100%); }
.wave { display: block; flex: none; width: 200%; height: 90px; }
.wave.front { position: relative; z-index: 1; fill: var(--water); animation: slosh 1.7s linear infinite; }
.wave.back { position: absolute; top: -22px; left: 0; fill: var(--water-2); animation: slosh 2.6s linear infinite reverse; }
@keyframes slosh { to { transform: translateX(-50%); } }
.water-body { position: relative; flex: 1; margin-top: -1px; background: var(--water); overflow: hidden; }
.bubble { position: absolute; bottom: -20px; width: var(--b); height: var(--b); border: 2px solid rgba(255, 241, 230, .35); border-radius: 50%; animation: bubble var(--t) ease-in infinite; animation-delay: var(--d); }
@keyframes bubble { to { transform: translate(var(--x), -90vh); opacity: 0; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .grav { translate: none; rotate: none; }
  .intro, .pop, .reveal { opacity: 1; transform: none; }
  .ld-walk { display: none; }
}
