/* Bare Elements - public website.
   Her market booth: olive table covers, gauzy muslin, weathered barn-wood shelves, kraft boxes with
   round labels, a wood-framed chalkboard and a copper flower-of-life banner.
   Same tokens as the Bare Elements inventory app, so the two feel like one family. */

:root {
  --olive: #4f5b3a;
  --olive-deep: #3c4630;
  --sage: #8a9670;
  --sage-soft: #cdd3bb;
  --muslin: #efe7d6;
  --paper: #f7f2e8;
  --kraft: #c49a6c;
  --kraft-soft: #e3cba9;
  --wood: #9c958a;
  --wood-dark: #6f695f;
  --chalk-bg: #2a2c28;
  --chalk-ink: #ece8dc;
  --chalk-soft: #c9c3b4;
  --copper: #a86b43;
  --copper-deep: #8e5634;
  --copper-light: #d9a57a;
  --gold: #b8923a;
  --gold-chalk: #e7c78c;

  --bg: var(--muslin);
  --kraft-bg: #e6d4b8;
  --surface: var(--paper);
  --ink: #2f2a22;
  --ink-soft: #5a5246;
  --ink-faint: #6f675a;
  --line: rgba(79, 91, 58, 0.18);
  --link: #8a5232;
  --gauze: rgba(247, 242, 232, 0.55);
  --fold: rgba(120, 100, 70, 0.22);
  --shadow: 0 1px 2px rgba(60, 50, 30, 0.06), 0 10px 28px -12px rgba(60, 50, 30, 0.25);
  --shadow-lift: 0 2px 4px rgba(60, 50, 30, 0.08), 0 20px 40px -16px rgba(60, 50, 30, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Cormorant Garamond", "Lora", Georgia, serif;
  --sans: "Nunito Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --chalk: "Caveat", "Patrick Hand", "Segoe Print", cursive;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --chalkdust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --woodgrain: repeating-linear-gradient(178deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 7px), repeating-linear-gradient(181deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 11px), linear-gradient(180deg, #8f887c, #777064);
  --kraftgrain: repeating-linear-gradient(115deg, rgba(120, 80, 40, 0.035) 0 2px, transparent 2px 6px), linear-gradient(180deg, #d9bf98, #cfae80);
  color-scheme: light;
}

/* Dark = the chalkboard / forest banner */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f2420;
    --kraft-bg: #272a24;
    --surface: #2c2f2a;
    --ink: #ece8dc;
    --ink-soft: #c9c3b4;
    --ink-faint: #a8a294;
    --line: rgba(217, 165, 122, 0.22);
    --link: #e0ad84;
    --gauze: rgba(60, 64, 56, 0.55);
    --fold: rgba(217, 165, 122, 0.25);
    --sage-soft: #3d4535;
    --kraft-soft: #4a3e30;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 40px -14px rgba(0, 0, 0, 0.7);
    --woodgrain: repeating-linear-gradient(178deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 7px), repeating-linear-gradient(181deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 11px), linear-gradient(180deg, #5a554d, #48443d);
    --kraftgrain: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 6px), linear-gradient(180deg, #4a3e30, #3f3428);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f2420;
  --kraft-bg: #272a24;
  --surface: #2c2f2a;
  --ink: #ece8dc;
  --ink-soft: #c9c3b4;
  --ink-faint: #a8a294;
  --line: rgba(217, 165, 122, 0.22);
  --link: #e0ad84;
  --gauze: rgba(60, 64, 56, 0.55);
  --fold: rgba(217, 165, 122, 0.25);
  --sage-soft: #3d4535;
  --kraft-soft: #4a3e30;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  --woodgrain: repeating-linear-gradient(178deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 7px), repeating-linear-gradient(181deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 11px), linear-gradient(180deg, #5a554d, #48443d);
  --kraftgrain: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 6px), linear-gradient(180deg, #4a3e30, #3f3428);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: var(--grain);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: 0.005em; text-wrap: balance; }
p { margin: 0 0 0.8em; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--copper); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
svg.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.band { position: relative; padding: clamp(40px, 7vw, 84px) 0; }
.chalkhand { font-family: var(--chalk); font-weight: 600; letter-spacing: 0.01em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 40em; margin-inline: auto; }
.faint { color: var(--ink-faint); font-size: 0.92rem; }

/* kicker + title: "all the Essentials" */
.kt { font-size: clamp(2.1rem, 5.4vw, 3.3rem); margin-bottom: 14px; }
.kt .chalkhand { display: block; font-size: 0.62em; color: var(--copper); line-height: 1; margin-bottom: 2px; transform: rotate(-2deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn-copper { background: var(--copper-deep); color: #fffaf2; box-shadow: 0 8px 20px -10px rgba(142, 86, 52, 0.8); }
.btn-copper:hover { background: #7d4a2b; }
.btn-olive { background: var(--olive); color: #fbf8f1; box-shadow: 0 8px 20px -10px rgba(60, 70, 48, 0.8); }
.btn-olive:hover { background: var(--olive-deep); }
.btn-ghost { border-color: rgba(236, 232, 220, 0.45); color: var(--chalk-ink); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: var(--copper-light); background: rgba(217, 165, 122, 0.1); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-chalk { font-family: var(--chalk); font-size: 1.35rem; font-weight: 600; color: var(--chalk-ink); border: 2px dashed rgba(236, 232, 220, 0.5); background: transparent; padding: 6px 22px; }
.btn-chalk:hover { border-color: var(--gold-chalk); color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center-cta { justify-content: center; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 14px; width: min(1220px, 100% - 32px); margin-inline: auto; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex: none; }
.brand .mark { width: 44px; height: 44px; flex: none; transition: transform 0.6s var(--ease); }
.brand:hover .mark { transform: rotate(-12deg); }
.brand-words b { display: block; font-family: var(--serif); font-size: 1.42rem; font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
.brand-words i { display: block; font-family: var(--chalk); font-style: normal; font-size: 1.08rem; color: var(--copper); line-height: 1.1; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: background 0.2s; white-space: nowrap; }
.nav a:hover { background: color-mix(in srgb, var(--olive) 10%, transparent); }
.nav a[aria-current="page"] { background: var(--olive); color: #fbf8f1; }
.top-tools { display: flex; align-items: center; gap: 8px; }
.chip-theme, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--ink);
}
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .top-tools { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand-words i { display: none; }
  .brand .mark { width: 40px; height: 40px; }
  .brand-words b { font-size: 1.3rem; }
  .chip-theme .theme-name { display: none; }
  .chip-theme { width: 40px; padding: 0; justify-content: center; }
  .shop-top { padding: 8px 14px; }
}

/* mobile drawer: a chalkboard that slides down */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(20, 22, 18, 0.45); }
.drawer[hidden] { display: none; }
.drawer-in {
  position: absolute; inset: 0 0 auto 0; max-height: 100dvh; overflow: auto;
  padding: 22px 22px 32px; border-bottom: 10px solid transparent; border-image: var(--woodgrain) 10;
  animation: dropin 0.32s var(--ease);
}
.drawer nav ul { display: grid; gap: 2px; margin: 8px 0 22px; position: relative; }
.drawer nav a { display: block; padding: 12px 6px; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--chalk-ink); text-decoration: none; border-bottom: 1px dashed rgba(236, 232, 220, 0.16); }
.drawer nav a[aria-current="page"] { color: var(--gold-chalk); }
.drawer nav a[aria-current="page"]::after { content: " ✿"; font-size: 0.8em; color: var(--copper-light); }
.drawer-tag { font-size: 1.5rem; color: var(--gold-chalk); margin: 0; }
.menu-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(236, 232, 220, 0.3); background: transparent; color: var(--chalk-ink); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.drawer .mandala.wm { right: -70px; top: auto; bottom: -60px; width: 300px; }
@keyframes dropin { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- chalkboard surfaces ---------- */
.chalk {
  position: relative; overflow: hidden;
  background-color: var(--chalk-bg);
  background-image: var(--chalkdust), radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.07), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(79, 91, 58, 0.35), transparent 60%);
  color: var(--chalk-ink);
}
.board {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); padding: clamp(28px, 5vw, 52px);
  background-color: var(--chalk-bg);
  background-image: var(--chalkdust), radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.08), transparent 55%);
  color: var(--chalk-ink);
  border: 10px solid transparent; border-image: var(--woodgrain) 10;
  box-shadow: var(--shadow-lift);
  text-align: center;
}
.mandala { overflow: visible; }
.mandala .lines circle { fill: none; stroke: var(--copper); stroke-width: 1; }
.mandala .lines .ring { stroke-width: 1.3; }
.mandala .lines .thin { stroke-width: 0.6; }
.mandala .lines .bead { stroke-width: 0.8; }
.mandala.wm { position: absolute; z-index: -1; right: -90px; top: -90px; width: 340px; opacity: 0.17; pointer-events: none; }
.chalk > .mandala.wm, .foot-in > .mandala.wm, .drawer-in > .mandala.wm { z-index: 0; }
.mandala.wm .lines circle { stroke: var(--copper-light); }

/* the mandala drawing itself */
.mandala.draw .lines circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + 0.15s); }
.mandala.draw .seed { transform-origin: 160px 182px; transform: scale(0); animation: sprout 0.9s var(--ease) forwards; animation-delay: 2.7s; }
.mandala.draw .seed path { fill: var(--sage); stroke: #c9d1b0; stroke-width: 1; }
.mandala.draw .seed .stem { fill: none; stroke: #c9d1b0; stroke-width: 1.6; stroke-linecap: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sprout { 0% { transform: scale(0) rotate(-25deg); } 70% { transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes breathe { 50% { transform: rotate(4deg) scale(1.015); } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 7vw, 96px) 0 clamp(40px, 6vw, 70px); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at 72% 46%, rgba(168, 107, 67, 0.2), transparent 42%), radial-gradient(circle at 10% 90%, rgba(79, 91, 58, 0.45), transparent 50%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero-art { order: 2; display: grid; place-items: center; }
.hero-art .mandala { width: min(100%, 460px); height: auto; filter: drop-shadow(0 0 22px rgba(168, 107, 67, 0.25)); }
.hero-art .mandala .lines { transform-origin: 160px 160px; animation: breathe 14s ease-in-out 3.6s infinite; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.34em; font-size: 0.95rem; font-weight: 700; color: var(--copper-light); margin: 0 0 6px; opacity: 0; animation: fadeup 0.8s var(--ease) 0.3s forwards; }
.hero h1 { font-size: clamp(3.2rem, 9.5vw, 6.2rem); line-height: 0.95; margin: 0 0 18px; }
.hero h1 .tag { display: block; font-weight: 700; color: #f4efe3; opacity: 0; animation: fadeup 0.9s var(--ease) 0.55s forwards; }
.pillars { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; opacity: 0; animation: fadeup 0.8s var(--ease) 0.85s forwards; }
.pillars span { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(217, 165, 122, 0.55); color: var(--gold-chalk); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(168, 107, 67, 0.1); }
.hero-lead { font-size: clamp(1.06rem, 2.2vw, 1.2rem); color: var(--chalk-soft); max-width: 32em; opacity: 0; animation: fadeup 0.8s var(--ease) 1.05s forwards; }
.hero .cta { opacity: 0; animation: fadeup 0.8s var(--ease) 1.25s forwards; }
.banner-line { margin: 26px 0 0; font-family: var(--chalk); font-size: 1.35rem; color: rgba(236, 232, 220, 0.75); opacity: 0; animation: fadeup 0.8s var(--ease) 1.5s forwards; }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: 0; margin-bottom: -6px; }
  .hero-art .mandala { width: min(64vw, 250px); }
  .pillars, .hero .cta { justify-content: center; }
  .hero-lead { margin-inline: auto; }
}

/* page hero (inner pages) */
.phero { padding: clamp(44px, 8vw, 90px) 0 clamp(36px, 6vw, 60px); text-align: center; }
.phero .mandala.small { position: absolute; width: 420px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.26; pointer-events: none; }
.phero-in { position: relative; }
.phero h1 { color: #f4efe3; }
.phero h1 .chalkhand { color: var(--gold-chalk); }
.phero .lead { color: var(--chalk-soft); }

/* ---------- muslin drape ---------- */
.drape { --h: clamp(34px, 5vw, 70px); position: relative; height: var(--h); margin-top: calc(-1 * var(--h) + 1px); margin-bottom: -1px; z-index: 1; pointer-events: none; }
.drape svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.drape .cloth { fill: var(--to); }
.drape .gauze { fill: var(--to); opacity: 0.2; }
.drape .fold { fill: none; stroke: var(--fold); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.drape.flip svg { transform: scaleX(-1); }

/* ---------- promise / values ---------- */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.promise.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promise li { text-align: center; padding: 30px 22px 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.promise .badge { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; margin-bottom: 14px; color: var(--olive); background: radial-gradient(circle, color-mix(in srgb, var(--sage) 20%, var(--surface)) 60%, transparent 61%); border: 1.5px dashed color-mix(in srgb, var(--copper) 60%, transparent); }
:root[data-theme="dark"] .promise .badge { color: var(--sage-soft); }
.promise .badge svg { width: 32px; height: 32px; stroke-width: 1.5; }
.promise h3 { font-size: 1.6rem; margin-bottom: 6px; }
.promise p { color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .promise.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .promise { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .promise.four { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .promise li { display: grid; grid-template-columns: 62px 1fr; text-align: left; column-gap: 16px; padding: 18px; align-items: center; }
  .promise .badge { width: 58px; height: 58px; margin: 0; grid-row: span 2; }
  .promise .badge svg { width: 28px; height: 28px; }
  .promise h3 { font-size: 1.4rem; margin: 0; }
}

/* ---------- categories: kraft boxes with round labels ---------- */
.kraft-band { padding: 0; }
.kraft-in { background: var(--kraft-bg); background-image: var(--grain); padding: clamp(28px, 5vw, 60px) 0 clamp(36px, 5vw, 64px); }
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 34px 0 34px; }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; gap: 16px; } }
.cat {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cat-pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--kraftgrain); overflow: hidden; }
.cat-pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 9c10-6 20-6 30 0s20 6 30 0 20-6 30 0 20 6 30 0v7H0z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 9c10-6 20-6 30 0s20 6 30 0 20-6 30 0 20 6 30 0v7H0z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; background-color: var(--surface); }
.cat-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cat:hover .cat-pic img { transform: scale(1.04); }
.art { width: 74%; height: auto; overflow: visible; transition: transform 0.6s var(--ease); }
.cat:hover .art { transform: translateY(-4px) rotate(-1.5deg); }
.art path, .art circle, .art ellipse, .art rect { fill: none; stroke: #5b4128; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.art .fill { fill: #f3e7d1; }
.art .fill2 { fill: #fbf5ea; }
.art .wood { fill: #b98e62; }
.art .leafy { fill: var(--sage); stroke: var(--olive); }
.art .sh { fill: rgba(70, 45, 20, 0.12); stroke: none; }
:root[data-theme="dark"] .art path, :root[data-theme="dark"] .art circle, :root[data-theme="dark"] .art ellipse, :root[data-theme="dark"] .art rect { stroke: #e6c9a6; }
:root[data-theme="dark"] .art .fill { fill: #5a4b3a; }
:root[data-theme="dark"] .art .fill2 { fill: #6b5a46; }
:root[data-theme="dark"] .art .sh { fill: rgba(0, 0, 0, 0.25); stroke: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .art path, :root:not([data-theme="light"]) .art circle, :root:not([data-theme="light"]) .art ellipse, :root:not([data-theme="light"]) .art rect { stroke: #e6c9a6; }
  :root:not([data-theme="light"]) .art .fill { fill: #5a4b3a; }
  :root:not([data-theme="light"]) .art .fill2 { fill: #6b5a46; }
  :root:not([data-theme="light"]) .art .sh { fill: rgba(0, 0, 0, 0.25); stroke: none; }
  :root:not([data-theme="light"]) .promise .badge { color: var(--sage-soft); }
}
.labeldot { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--dot); border: 3px solid #fbf5ea; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 3px rgba(0, 0, 0, 0.08); }
.cat-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 22px 22px; flex: 1; }
.cat-name { font-family: var(--serif); font-size: 1.65rem; font-weight: 700; line-height: 1.1; }
.cat-text { color: var(--ink-soft); }
.cat-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--link); font-size: 0.95rem; }
.cat-go svg { transition: transform 0.25s var(--ease); }
.cat:hover .cat-go svg { transform: translateX(4px); }

/* ---------- press ---------- */
.press-k { font-size: 1.6rem; color: var(--gold-chalk); margin: 0 0 6px; }
.press-t { position: relative; font-size: clamp(1.8rem, 4.6vw, 2.9rem); font-style: italic; font-weight: 500; color: #f6f1e6; max-width: 20em; margin: 0 auto 10px; }
.press-s { color: var(--chalk-soft); font-size: 1.05rem; margin-bottom: 22px; }
.press-s b { color: var(--chalk-ink); }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; position: relative; padding: 34px 26px 22px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.review::before { content: "“"; position: absolute; top: -8px; left: 18px; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--copper); opacity: 0.5; }
.review blockquote { margin: 10px 0 14px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; font-weight: 500; }
.review blockquote p { margin: 0; }
.review figcaption { font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; }
.review figcaption span { font-weight: 600; color: var(--ink-faint); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: color-mix(in srgb, var(--wood) 40%, transparent); stroke: none; }
.stars svg.on { fill: var(--gold); }
.review.placeholder { background: transparent; border: 2px dashed color-mix(in srgb, var(--copper) 55%, transparent); box-shadow: none; }
.review.placeholder blockquote { color: var(--ink-faint); font-style: italic; }
.review.placeholder figcaption { font-family: var(--chalk); font-size: 1.2rem; font-weight: 600; color: var(--link); }

/* ---------- newsletter ---------- */
.nl {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 6px);
  background-color: var(--olive); background-image: var(--grain), radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08), transparent 50%), radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.18), transparent 55%);
  color: #f3efe4; box-shadow: var(--shadow-lift);
}
.nl .mandala.wm { right: auto; left: -120px; top: -110px; width: 380px; opacity: 0.2; }
.nl .mandala.wm .lines circle { stroke: #e3c7a2; }
.nl-title { font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; color: #fff4dc; margin: 0 0 4px; }
.nl-title .chalkhand { font-weight: 700; }
.nl-lead { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.nl-copy p:last-child { color: #e2dfd0; margin: 0; }
.nl-form { display: grid; gap: 12px; background: rgba(0, 0, 0, 0.16); padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.12); }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 5px; }
.field .opt { font-weight: 600; opacity: 0.75; }
.field input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.28); background: #f7f2e8; color: #2f2a22; font-size: 1rem; }
.field input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #f0b49a; box-shadow: 0 0 0 3px rgba(240, 180, 154, 0.35); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-form .btn { width: 100%; margin-top: 4px; }
.nl-status { min-height: 1.4em; margin: 0; font-weight: 700; color: #fff4dc; }
.nl-status.err { color: #ffd6c4; }
.nl-status a { color: #fff4dc; }
.nl-fine { margin: 0; font-size: 0.85rem; color: #dcd8c8; }
.nl-fine a { color: #fff4dc; }
.nl.done .nl-form .field, .nl.done .nl-form .btn { display: none; }
.shake { animation: shake 0.4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 820px) { .nl { grid-template-columns: 1fr; } .nl-copy { text-align: center; } }

/* ---------- teasers + cards ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.teaser, .card {
  position: relative; display: block; padding: 28px 26px 26px; padding-top: 38px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; overflow: hidden;
}
a.teaser { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
a.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.teaser h2, .card h2 { font-size: clamp(1.8rem, 3.6vw, 2.3rem); margin: 14px 0 8px; }
.teaser p, .card p { color: var(--ink-soft); }
.teaser .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--link); }
.teaser.wide { margin-top: 34px; text-align: center; }
.teaser.wide h2 { margin-bottom: 12px; }
.card .btn { margin-top: 6px; }
/* muslin drape along the top of a card */
.muslin::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v7c-10 6-20 6-30 1S70 2 60 7 40 13 30 8 10 2 0 7z' fill='%23e6dcc6'/%3E%3Cpath d='M0 7c10-5 20-5 30 1s20 5 30-1 20-5 30 0 20 6 30-1' fill='none' stroke='%23d4c6a8' stroke-width='.8'/%3E%3C/svg%3E") top/100% 100% no-repeat;
}
:root[data-theme="dark"] .muslin::before { filter: brightness(0.35) sepia(0.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .muslin::before { filter: brightness(0.35) sepia(0.4); } }

/* wood-grain shelf labels */
.shelf-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px; border-radius: 6px 14px 14px 6px;
  background: var(--woodgrain);
  color: #fbf7ef; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em; line-height: 1.2;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.14), var(--shadow);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.shelf-label svg { width: 18px; height: 18px; }
.shelf-label small { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; opacity: 0.92; margin-left: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- about: the story ---------- */
.story { position: relative; display: grid; gap: 26px; padding-left: 34px; }
.story::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(180deg, var(--copper) 0 6px, transparent 6px 12px); opacity: 0.6; }
.chapter { position: relative; padding: 24px 26px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chapter::before { content: ""; position: absolute; left: -32px; top: 30px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--copper); box-shadow: 0 0 0 4px var(--bg); }
.when { display: inline-block; font-family: var(--chalk); font-size: 1.35rem; font-weight: 600; color: var(--link); line-height: 1; margin-bottom: 4px; }
.chapter h2 { font-size: clamp(1.6rem, 3.6vw, 2rem); margin-bottom: 8px; }
.chapter p { margin: 0; color: var(--ink-soft); }
.closing { margin-top: 40px; }
.closing .chalkhand { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--chalk-ink); max-width: 24em; margin: 0 auto; line-height: 1.25; }
.closing .cta { margin-top: 20px; }

/* ---------- where to find us ---------- */
.map-frame { position: relative; border-radius: var(--radius); padding: 10px; background: var(--woodgrain); box-shadow: var(--shadow-lift); }
.map { height: clamp(360px, 58vh, 560px); border-radius: 10px; overflow: hidden; background: #dfe3d1; z-index: 0; }
.map-fallback { padding: 24px; text-align: center; color: #3b3a33; }
.map-lock {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 500;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 0; background: var(--chalk-bg); color: var(--chalk-ink); font-weight: 700; cursor: pointer; box-shadow: var(--shadow-lift);
}
.map-lock[hidden] { display: none; }
.map-lock[aria-pressed="true"] { background: var(--copper-deep); }
.map-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 2px 0; }
.states { display: grid; grid-auto-flow: dense; gap: 34px 14px; margin-top: 44px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.state { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 900px) {
  .state.n1 { grid-column: span 1; }
  .state.n2 { grid-column: span 2; }
}
.state .shelf-label { margin-bottom: 14px; font-size: 1.35rem; }
.shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shop { position: relative; padding: 20px 20px 14px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow 0.3s, transform 0.3s var(--ease); }
.shop::after { content: ""; position: absolute; top: 18px; right: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--copper) 18%, transparent); }
.shop.online::after { background: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 22%, transparent); }
.shop h3 { font-size: 1.45rem; padding-right: 26px; margin-bottom: 6px; }
.shop .addr { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 10px; }
.shop-acts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 2px; background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 0.93rem; color: var(--link); text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.link-btn svg { width: 17px; height: 17px; }
.shop.lit { box-shadow: 0 0 0 3px var(--copper), var(--shadow-lift); transform: translateY(-2px); }

/* Leaflet pins + popups in the brand */
.pin { background: none; border: 0; }
.pin svg { width: 34px; height: 44px; overflow: visible; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3)); transition: transform 0.2s var(--ease); transform-origin: 50% 100%; }
.pin:hover svg, .pin:focus svg { transform: scale(1.15); }
.leaflet-container { font-family: var(--sans); }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; line-height: 30px; }
.leaflet-popup-content-wrapper { border-radius: 14px; background: #f7f2e8; color: #2f2a22; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); }
.leaflet-popup-tip { background: #f7f2e8; }
.leaflet-popup-content { margin: 14px 18px; line-height: 1.45; }
.pop b { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; margin-bottom: 4px; }
.pop span { color: #5a5246; font-size: 0.92rem; }
.pop a { display: inline-block; margin-top: 6px; font-weight: 700; color: #8a5232; }
.leaflet-control-attribution { font-size: 11px; }
.leaflet-control-attribution a { color: #6b4c2b; }

/* ---------- newsletters ---------- */
.issues { display: grid; gap: 12px; }
.issue { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.issue-t { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.issue-x { color: var(--ink-soft); flex: 1; }
.issue svg { margin-left: auto; color: var(--link); }
.empty { text-align: center; padding: 34px 20px; border: 2px dashed color-mix(in srgb, var(--copper) 45%, transparent); border-radius: var(--radius); }
.empty-art { width: 170px; height: auto; margin: 0 auto 12px; }
.empty-art path { fill: none; stroke: var(--link); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-art .fill { fill: var(--surface); }
.empty-art .fill2 { fill: color-mix(in srgb, var(--kraft) 35%, var(--surface)); }
.empty-art .leafy { fill: var(--sage); stroke: var(--olive); }
.empty h2 { font-size: 2rem; margin-bottom: 8px; }
.empty p { color: var(--ink-soft); margin: 0; }

/* ---------- contact ---------- */
.mail-big { font-size: clamp(1.35rem, 4.6vw, 2rem) !important; word-break: break-word; }
.mail-big a { color: var(--ink); text-decoration-color: var(--copper); }
.mail-big.small { font-family: var(--sans); font-size: 1.1rem !important; }
.mail-big.small a { display: inline-flex; gap: 8px; align-items: center; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: transform 0.2s var(--ease), background 0.2s; }
.socials a:hover { transform: translateY(-2px); }
.socials-big a { background: color-mix(in srgb, var(--olive) 10%, var(--surface)); color: var(--ink); border: 1px solid var(--line); }
.socials-big a svg { color: var(--copper); }
.socials-foot a { color: var(--chalk-ink); border: 1px solid rgba(236, 232, 220, 0.22); }
.socials-foot a:hover { background: rgba(217, 165, 122, 0.14); border-color: var(--copper-light); }

/* ---------- footer ---------- */
.foot { margin-top: 30px; }
.foot .drape { --fold: rgba(217, 165, 122, 0.3); }
.foot-in { padding: clamp(36px, 5vw, 60px) 0 26px; }
.foot-in .mandala.wm { left: auto; right: -100px; top: -40px; width: 420px; opacity: 0.12; }
.foot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr 1.4fr; gap: 34px; width: min(1160px, 100% - 32px); margin-inline: auto; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }
.foot .brand .mark { --stem: #cdd3bb; --leaf2: #b5c193; }
.foot .brand-words i { color: var(--gold-chalk); }
.foot h2 { font-size: 1.7rem; color: var(--gold-chalk); margin-bottom: 8px; font-weight: 600; }
.pillars-line { margin: 16px 0 6px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: var(--copper-light); }
.faint-chalk { color: var(--chalk-soft); font-size: 0.95rem; }
.foot-nav ul { display: grid; gap: 2px; }
.foot-nav a { color: var(--chalk-ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.foot-nav a:hover { color: var(--gold-chalk); text-decoration: underline; }
.mail { display: inline-flex; align-items: center; gap: 8px; color: var(--chalk-ink); font-weight: 700; word-break: break-all; }
.copy { position: relative; z-index: 1; width: min(1160px, 100% - 32px); margin: 34px auto 0; padding-top: 18px; border-top: 1px dashed rgba(236, 232, 220, 0.18); font-size: 0.88rem; color: var(--chalk-soft); }

/* ---------- photo / video / review spots (?spots=1 outlines them) ---------- */
html.show-spots [data-spot] { outline: 3px dashed #d14f8a; outline-offset: -3px; }
html.show-spots [data-spot]::before { content: attr(data-spot); position: absolute; z-index: 3; left: 8px; top: 8px; background: #d14f8a; color: #fff; font: 700 12px/1 var(--sans); padding: 5px 8px; border-radius: 6px; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mandala.draw .lines circle { stroke-dashoffset: 0; }
  .mandala.draw .seed { transform: none; }
}

/* phones: category cards lie on their side, picture left, words right */
@media (max-width: 560px) {
  .cat { flex-direction: row; }
  .cat-pic { aspect-ratio: auto; width: 40%; flex: none; min-height: 150px; }
  .cat-pic::after { left: auto; top: 0; bottom: 0; right: -1px; width: 12px; height: auto; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 120' preserveAspectRatio='none'%3E%3Cpath d='M9 0c-6 10-6 20 0 30s6 20 0 30-6 20 0 30 6 20 0 30h7V0z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 120' preserveAspectRatio='none'%3E%3Cpath d='M9 0c-6 10-6 20 0 30s6 20 0 30-6 20 0 30 6 20 0 30h7V0z'/%3E%3C/svg%3E"); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
  .art { width: 92%; }
  .labeldot { top: 10px; left: 10px; right: auto; width: 22px; height: 22px; border-width: 2px; }
  .cat-body { padding: 14px 16px 14px 14px; gap: 3px; }
  .cat-name { font-size: 1.4rem; }
  .cat-text { font-size: 0.95rem; line-height: 1.45; }
}
.phero .mandala .seed { display: none; }
.map-fallback a { color: #6b3f22; font-weight: 700; }

/* =====================================================================
   S2 SHOP: kraft product boxes, the product window, the slide-in cart
   ===================================================================== */
html.locked { overflow: hidden; }
.kt-sm { font-size: clamp(1.9rem, 4vw, 2.3rem); margin: 0; }

/* header cart button */
.cart-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; flex: none;
}
.cart-btn[hidden] { display: none; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-n {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.74rem; font-weight: 800; line-height: 1;
  background: var(--olive); color: #fbf8f1; border: 2px solid var(--bg); transform: scale(0); transition: transform 0.25s var(--ease);
}
.cart-btn.has .cart-n { transform: scale(1); }
.cart-btn.pop .cart-n { animation: pop 0.5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.shop-top[aria-current="page"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 30%, transparent); }
@media (max-width: 480px) {
  .top-in { gap: 8px; }
  .top-tools { gap: 6px; }
  .cart-btn, .menu-btn { width: 40px; height: 40px; }
  .shop-top { padding: 6px 12px; min-height: 38px; }
}
/* phones with the cart button: "Bare / Elements" stacks on two lines so the header tools fit */
@media (max-width: 430px) { .has-cart .brand-words b { width: 4.6em; font-size: 1.22rem; line-height: 0.98; } .has-cart .brand { gap: 8px; } }

/* filters: little round-labelled shelf chips */
.shop-band { padding-top: clamp(26px, 4vw, 44px); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--copper); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fbf8f1; }
.chip-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px #fbf5ea; flex: none; }
.chip-n { font-size: 0.78rem; font-weight: 800; opacity: 0.75; }
.shop-count { text-align: center; color: var(--ink-faint); font-size: 0.92rem; margin: 14px 0 0; }
.shop-note {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 auto 26px; max-width: 900px;
  padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 2px dashed color-mix(in srgb, var(--copper) 45%, transparent);
}
.shop-note[hidden] { display: none; }
.shop-note > div { flex: 1 1 260px; }
.shop-note h2 { font-size: clamp(1.6rem, 3.6vw, 2rem); margin-bottom: 4px; }
.shop-note p { margin: 0; color: var(--ink-soft); }
.shop-note .badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--copper); border: 1.5px dashed color-mix(in srgb, var(--copper) 60%, transparent); flex: none; }
.shop-note .badge svg { width: 26px; height: 26px; }
.shop-note.soft { margin: 16px auto 0; padding: 12px 18px; gap: 10px; font-weight: 600; color: var(--ink-soft); border-width: 1.5px; justify-content: center; }
.shop-note.soft svg { color: var(--olive); }
.shop-fallback .cats { margin-top: 10px; }
.shop-loading { display: grid; justify-items: center; gap: 10px; padding: 40px 0; color: var(--ink-faint); font-family: var(--chalk); font-size: 1.5rem; }
.shop-loading .mandala { width: 90px; animation: turn 9s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.shop-loading[hidden] { display: none; }
.shop-empty { text-align: center; padding: 30px 0; color: var(--ink-soft); font-family: var(--chalk); font-size: 1.5rem; }

/* the product grid: kraft boxes with a paper label */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
@media (max-width: 1080px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.pcard {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 10px 10px 12px; border-radius: var(--radius);
  background: var(--kraftgrain); border: 1px solid color-mix(in srgb, var(--kraft) 70%, transparent);
  box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: fadeup 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pc-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; border-radius: 12px; }
.pc-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #efe2cb; box-shadow: inset 0 0 0 1px rgba(90, 60, 30, 0.12); }
.pc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pc-pic .art { width: 82%; }
.pcard:hover .pc-pic img { transform: scale(1.04); }
.pc-pic .labeldot { top: 10px; right: 10px; width: 24px; height: 24px; border-width: 2.5px; }
.pc-tag {
  position: absolute; left: 10px; top: 10px; padding: 4px 11px; border-radius: 999px;
  background: #fbf5ea; color: #6b3f22; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.pc-body {
  position: relative; display: flex; flex-direction: column; gap: 2px; flex: 1;
  margin: -14px 8px 0; padding: 14px 14px 12px; border-radius: 10px;
  background: var(--surface); box-shadow: 0 2px 6px rgba(60, 40, 20, 0.12);
  outline: 1.5px dashed color-mix(in srgb, var(--copper) 35%, transparent); outline-offset: -6px;
}
.pc-cat { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.pc-title { font-family: var(--serif); font-size: 1.32rem; font-weight: 700; line-height: 1.12; color: var(--ink); overflow-wrap: anywhere; }
.pc-price { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--link); }
.from { font-weight: 600; font-size: 0.85em; color: var(--ink-faint); }
.pc-act { display: flex; justify-content: center; padding: 12px 8px 2px; }
.pc-act .btn { width: 100%; }
.pc-act .btn.done { background: var(--olive); }
.pc-out { display: inline-flex; align-items: center; min-height: 40px; font-family: var(--chalk); font-size: 1.35rem; color: #5b4128; }
/* sold out, shown softly */
.pcard.soldout .pc-pic > img, .pcard.soldout .pc-pic > .art { filter: grayscale(0.75) opacity(0.6); }
.pcard.soldout .pc-tag.out { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%) rotate(-6deg); padding: 6px 18px; background: rgba(251, 245, 234, 0.92); font-family: var(--chalk); font-size: 1.45rem; font-weight: 700; color: #5b4128; border: 1.5px dashed #a86b43; }
.pcard.soldout .pc-price { color: var(--ink-faint); }
@media (max-width: 760px) {
  .pcard { padding: 7px 7px 10px; }
  .pc-body { margin: -12px 4px 0; padding: 12px 10px 10px; }
  .pc-title { font-size: 1.12rem; }
  .pc-act { padding: 10px 2px 0; }
  .pc-act .btn { padding: 8px 10px; font-size: 0.86rem; min-height: 42px; }
  .pc-act .btn svg { display: none; }
  .pc-pic .labeldot { left: auto; right: 7px; top: 7px; width: 20px; height: 20px; }
  .pc-tag { left: 7px; top: 7px; font-size: 0.72rem; padding: 3px 9px; }
}
:root[data-theme="dark"] .pc-pic { background: #4a3e30; }
:root[data-theme="dark"] .pc-out { color: var(--kraft-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pc-pic { background: #4a3e30; } :root:not([data-theme="light"]) .pc-out { color: #e3cba9; } }

/* ---------- dialogs (product + cart) ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(20, 22, 18, 0.55); backdrop-filter: blur(2px); }
.x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; flex: none; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.stepper button { display: grid; place-items: center; width: 44px; height: 46px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: color-mix(in srgb, var(--olive) 10%, transparent); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper input { width: 48px; height: 46px; border: 0; background: none; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm button { width: 36px; height: 36px; }
.stepper.sm .q { min-width: 26px; text-align: center; font-weight: 800; }

/* product window */
.pdlg {
  width: min(1000px, 100% - 32px); max-height: min(92dvh, 860px); padding: 0; border: 0; border-radius: calc(var(--radius) + 4px);
  background: var(--bg); background-image: var(--grain); box-shadow: var(--shadow-lift); overflow: auto; overscroll-behavior: contain;
}
.pdlg[open] { animation: rise 0.32s var(--ease); }
@keyframes rise { from { transform: translateY(18px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.pd-x { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3; }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(18px, 3vw, 34px); padding: clamp(16px, 3vw, 30px); }
.pd-gal { min-width: 0; }
.pd-main { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--kraftgrain); border: 10px solid transparent; border-image: var(--woodgrain) 10; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main .art { width: 80%; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(251, 245, 234, 0.92); color: #2f2a22; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-n { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(42, 44, 40, 0.75); color: #ece8dc; font-size: 0.8rem; font-weight: 700; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--kraft-soft); cursor: pointer; opacity: 0.75; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--copper); opacity: 1; }
.pd-info { min-width: 0; padding-top: 6px; }
.pd-cat { margin: 0 0 12px; }
.pd-cat .shelf-label { font-size: 1rem; }
.pd-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; padding-right: 46px; overflow-wrap: anywhere; }
.pd-price { font-size: 1.5rem; font-weight: 800; color: var(--link); margin: 0 0 2px; }
.pd-stock { min-height: 1.5em; font-weight: 800; font-size: 0.95rem; margin: 0 0 10px; }
.pd-stock.few { color: var(--link); }
.pd-stock.out { color: var(--ink-faint); font-family: var(--chalk); font-size: 1.4rem; }
.pd-form { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pd-vars { border: 0; padding: 0; margin: 0; min-width: 0; }
.pd-vars[hidden] { display: none; }
.pd-vars legend, .pd-qty label { font-weight: 800; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.pd-qty label { display: block; }
.pd-var-list { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { position: relative; cursor: pointer; }
.vchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vchip span { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: 0.95rem; transition: background 0.2s, border-color 0.2s; }
.vchip small { font-weight: 700; font-size: 0.8rem; color: var(--ink-faint); }
.vchip:hover span { border-color: var(--copper); }
.vchip input:checked + span { background: var(--olive); border-color: var(--olive); color: #fbf8f1; }
.vchip input:checked + span small { color: #e2dfd0; }
.vchip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.vchip.off { cursor: default; }
.vchip.off span { border-style: dashed; color: var(--ink-faint); background: transparent; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-faint) 60%, transparent); }
.vchip.off small { text-decoration: none; }
.pd-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.pd-qty[hidden], .pd-add[hidden], .pd-etsy[hidden] { display: none; }
.pd-add { flex: 1 1 180px; }
.pd-add:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.pd-status { margin: 0; min-height: 1.3em; font-weight: 700; color: var(--olive); }
:root[data-theme="dark"] .pd-status { color: var(--sage-soft); }
.pd-desc { margin-top: 20px; color: var(--ink-soft); font-size: 0.98rem; }
.pd-desc p { margin: 0 0 0.75em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pd-status { color: #cdd3bb; } }
@media (max-width: 760px) {
  .pdlg { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .pdlg[open] { animation: slideup 0.34s var(--ease); }
  .pd-grid { grid-template-columns: 1fr; padding: 14px 16px 24px; }
  .pd-main { aspect-ratio: 4 / 3; border-width: 8px; }
  .pd-x { margin: 10px 10px -54px 0; }
  .pd-title { padding-right: 0; }
}
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* the slide-in cart */
.cart {
  margin: 0 0 0 auto; width: min(430px, 100%); height: 100dvh; max-height: 100dvh; padding: 0; border: 0;
  background: var(--bg); background-image: var(--grain); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.45);
  border-left: 10px solid transparent; border-image: var(--woodgrain) 10;
}
.cart[open] { animation: slidein 0.34s var(--ease); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-in { display: flex; flex-direction: column; height: 100%; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px dashed var(--line); }
.cart-head .kt .chalkhand { display: inline; font-size: 0.8em; margin-right: 4px; }
.cart-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 8px 18px; }
.cart-empty { margin: 30px 6px; text-align: center; font-family: var(--chalk); font-size: 1.5rem; color: var(--ink-soft); }
.cart-lines { display: grid; }
.cl { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cl-pic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--kraftgrain); }
.cl-pic img { width: 100%; height: 100%; object-fit: cover; }
.cl-pic .art { width: 92%; }
.cl-main { display: flex; flex-direction: column; min-width: 0; }
.cl-t { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.15; overflow-wrap: anywhere; }
.cl-v { color: var(--ink-faint); font-size: 0.88rem; font-weight: 700; }
.cl-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.cl-rm { min-height: 36px; font-size: 0.85rem; }
.cl-p { font-weight: 800; padding-top: 2px; }
.cart-foot { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.cart-foot.is-empty .cart-sub, .cart-foot.is-empty .cart-note { display: none; }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-weight: 700; }
.cart-sub b { font-size: 1.3rem; }
.cart-note { margin: -4px 0 0; color: var(--ink-faint); font-size: 0.9rem; }
.cart-go { width: 100%; }
.cart-go[hidden], .pp-wrap[hidden] { display: none; }
.cart-go.busy { opacity: 0.75; cursor: progress; }
.pp-or { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--ink-faint); font-size: 0.85rem; font-weight: 700; }
.pp-or::before, .pp-or::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.pp-buttons { min-height: 46px; }
.cart-status { margin: 0; min-height: 1.2em; font-weight: 700; font-size: 0.92rem; color: var(--olive); }
.cart-status:empty { display: none; }
.cart-status.err { color: #9c3d1f; }
:root[data-theme="dark"] .cart-status { color: var(--sage-soft); } :root[data-theme="dark"] .cart-status.err { color: #f0b49a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cart-status { color: #cdd3bb; } :root:not([data-theme="light"]) .cart-status.err { color: #f0b49a; } }
.cart-etsy { margin: 0; text-align: center; font-size: 0.9rem; font-weight: 700; }
.cart-etsy a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.cart-etsy svg { width: 16px; height: 16px; }

/* success receipt */
.receipt { margin-bottom: 30px; }
.receipt .shelf-label { margin-bottom: 8px; }
.rc-lines { display: grid; margin-top: 10px; }
.rc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rl-t { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.rl-q { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-faint); }
.rl-p { font-weight: 700; white-space: nowrap; }
.rc-sums { margin: 12px 0 8px; display: grid; gap: 4px; }
.rc-sums div { display: flex; justify-content: space-between; gap: 12px; }
.rc-sums dt { color: var(--ink-soft); }
.rc-sums dd { margin: 0; font-weight: 700; }
.rc-sums .rc-total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--line); font-size: 1.25rem; }
.rc-sums .rc-total dt { color: var(--ink); font-weight: 800; }
.rc-sums .rc-total dd { font-weight: 800; color: var(--link); }

/* cart: shipping ZIP + the Worker's quote */
.ship-to { display: grid; gap: 4px; }
.ship-to[hidden], .cart-quote[hidden], .cart-note[hidden] { display: none; }
.ship-to label { font-weight: 800; font-size: 0.9rem; }
.ship-to input { width: 100%; max-width: 220px; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 700; letter-spacing: 0.06em; }
.ship-to input[aria-invalid="true"] { border-color: #b4532c; }
.ship-help { margin: 0; color: var(--ink-faint); font-size: 0.82rem; }
.cart-quote { margin: 0; display: grid; gap: 3px; transition: opacity 0.2s; }
.cart-quote.busy { opacity: 0.5; }
.cart-quote div { display: flex; justify-content: space-between; gap: 12px; }
.cart-quote dt { color: var(--ink-soft); }
.cart-quote dd { margin: 0; font-weight: 700; }
.cart-quote .cq-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 1.15rem; }
.cart-quote .cq-total dt { color: var(--ink); font-weight: 800; }
.cart-quote .cq-total dd { color: var(--link); font-weight: 800; }
.cq-note[hidden] { display: none; }
.cq-note { margin: -6px 0 0; color: var(--ink-faint); font-size: 0.8rem; }
.cart-go:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
/* short or narrow screens: the hint stays for screen readers only, so the cart lines keep their room */
@media (max-height: 700px), (max-width: 480px) { .ship-help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
