:root {
  --pearl: #f7eef3;
  --mauve: #b889a4;
  --plum: #6b2348;
  --ink: #2a1520;
  --band: #eedfe8;
  --wait: #7a4b22;
  --display: Syne, "Futura", sans-serif;
  --sans: Outfit, "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
body.theme-curl {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  padding-bottom: 4.8rem;
}
img, svg, picture { max-width: 100%; height: auto; display: block; }
picture { width: 100%; }
a { color: var(--plum); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--mauve);
  outline-offset: 2px;
}
.layout {
  display: grid;
  grid-template-columns: 12.75rem 1fr;
  min-height: 100vh;
}
.step-rail {
  position: sticky;
  top: 0;
  align-self: start;
  background: var(--plum);
  color: #f7f2f6;
  min-height: 100vh;
  padding: 1.2rem .9rem;
  display: grid;
  gap: .7rem;
  align-content: start;
}
.step-rail a { color: #f7f2f6; text-decoration: none; font-size: .82rem; }
.rail-logo { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 800; margin-bottom: .4rem; }
.rail-logo strong { white-space: nowrap; }
.rail-logo .logo-mark, .rail-logo .logo-mark svg { width: 40px; height: 40px; }
.h-steps { display: none; }
.launch {
  background: transparent;
  color: var(--plum);
  padding: .7rem 0 0;
  font-size: .88rem;
}
.wrap { width: min(1120px, calc(100% - 1.7rem)); margin: 0 auto; }
.site-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.1rem;
}
.logo, .foot-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark, .logo-mark svg { width: 40px; height: 40px; flex: none; display: block; }
.foot-brand .logo-mark, .foot-brand .logo-mark svg { width: 28px; height: 28px; }
.logo-type { display: grid; line-height: .95; }
.logo-word { font-family: var(--display); font-size: 1.08rem; font-weight: 800; letter-spacing: -.03em; }
.logo-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mauve); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: .4rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
}
.site-nav a:hover { background: var(--band); }
.site-nav a[aria-current="page"] { background: var(--plum); color: #f7f2f6; }
.head-actions { display: flex; align-items: center; gap: .4rem; }
.list-chip {
  color: var(--plum);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.list-ico { width: 15px; height: 15px; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; width: 40px; height: 40px; display: grid; place-items: center;
  cursor: pointer; background: var(--plum); color: #f7f2f6; border-radius: 12px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.burger { width: 16px; height: 12px; display: grid; align-content: space-between; }
.burger i { display: block; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-menu[open] .burger i:nth-child(1) { transform: translateY(5.1px) rotate(45deg); }
.nav-menu[open] .burger i:nth-child(2) { opacity: 0; }
.nav-menu[open] .burger i:nth-child(3) { transform: translateY(-5.1px) rotate(-45deg); }
.nav-sheet {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 16.5rem; background: #fff; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(42, 21, 32, .14); padding: .55rem; z-index: 40;
}
.sheet-kicker { margin: .2rem .75rem .4rem; font-family: var(--display); font-weight: 800; }
.nav-sheet a { display: block; padding: .7rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.nav-sheet a:hover, .nav-sheet a[aria-current="page"] { background: var(--band); color: var(--plum); }
@media (max-width: 1040px) {
  .site-head { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .nav-menu { display: block; }
}
.ritual {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.4rem;
  align-items: end;
  padding: .4rem 0 1.2rem;
}
.ritual h1 {
  font-family: var(--display);
  font-size: clamp(2.05rem, 4.8vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
  max-width: 16ch;
}
.ritual .hero-art {
  overflow: hidden;
}
.ritual .hero-art img { width: 100%; height: 100%; object-fit: cover; }
.ritual p { max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.kicker { font-family: var(--display); letter-spacing: .16em; text-transform: uppercase; font-size: .68rem; color: var(--mauve); }
h1, h2 { font-family: var(--display); letter-spacing: -.03em; }
section { padding: 1.2rem 0 1.8rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem 1.1rem; }
.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { background: transparent; }
.product-card a { color: inherit; text-decoration: none; display: grid; }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { display: grid; gap: .4rem; padding: .75rem 0 1rem; }
.product-card h3 {
  margin: 0; min-height: 2.4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card-meta .btn { padding: .3rem .6rem; font-size: .8rem; }
.art-frame { position: relative; }
.card-mark {
  position: absolute; left: .7rem; top: .7rem;
  background: var(--plum); color: #f7f2f6;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .45rem;
}
.featured-grid .product-card:nth-child(odd) { margin-top: 0; }
.band { display: grid; gap: 0; }
.step-block {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--band);
}
.step-block b {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--plum);
}
.feature-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
  background: var(--band);
  padding: 1.2rem;
}
.scene-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: .8rem; }
.scene-card:first-child { grid-row: span 1; }
.scene-card { text-decoration: none; color: inherit; }
.btn, .filters button, button.linkish {
  font: inherit;
  background: var(--ink);
  color: #f4f1f6;
  border: 0;
  padding: .5rem .85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn.ghost, .btn:not(.primary):not(.ghost) {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn.primary { background: var(--plum); color: #f7f2f6; box-shadow: none; }
.price { font-family: var(--display); font-weight: 700; }
.use, .note, .sku { color: #5a4b58; font-size: .9rem; }
.crumbs { font-size: .8rem; margin: .7rem 0; }
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }
.art-frame { margin: 0; background: var(--band); }
.concept-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mauve); margin: .5rem 0; }
.spec-list { list-style: none; padding: 0; }
.spec-list li { display: grid; grid-template-columns: 9rem 1fr auto; gap: .5rem; border-top: 1px solid var(--band); padding: .45rem 0; }
.flag { font-size: .72rem; color: var(--wait); }
.stack { display: grid; gap: .7rem; }
.contact-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.finder { background: var(--band); padding: 1rem; }
.dock { display: none; }
.site-foot {
  margin-top: 2rem;
  padding: 1.3rem 0 1.8rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
  border-top: 4px solid var(--plum);
}
.list-row { background: var(--band); padding: .9rem; margin: .55rem 0; }
.list-row input { width: 4rem; font: inherit; }
.empty { border: 1px dashed var(--mauve); padding: 1.2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.proof { min-height: 4rem; background: #fff; padding: 1rem; font-family: var(--display); font-size: 1.3rem; }
details { border-top: 1px solid var(--band); padding: .6rem 0; }
#shop-status[role="status"] { min-height: 1.2em; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .step-rail { display: none; }
  .h-steps { display: flex; gap: .7rem; overflow: auto; padding: .4rem 0; }
  .h-steps a { white-space: nowrap; color: var(--plum); font-size: .82rem; }
  .ritual, .feature-band, .scene-grid, .pdp, .site-foot, .spec-list li, .step-block { grid-template-columns: 1fr; }
  .product-grid, .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:nth-child(odd), .featured-grid .product-card:nth-child(odd) { margin-top: 0; }
  .ritual .hero-art { margin-left: 0; }
  .feature-band { margin: 0; }
  .site-head { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .nav-menu { display: block; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--pearl); border-top: 1px solid var(--band);
  }
  .dock a { text-align: center; padding: .75rem .3rem; text-decoration: none; color: var(--plum); font-size: .78rem; font-weight: 700; }
  .buy-bar { position: sticky; bottom: 3.4rem; background: var(--pearl); padding: .4rem 0; }
}
@media (max-width: 540px) {
  .product-grid, .featured-grid { grid-template-columns: 1fr; }
}


/* shared shop shell */
/* Shared shop shell: width, logo lockup, and photo crops.
   Theme files keep color, type, and surface. This file is concatenated last. */
:root {
  --shop-max: 1120px;
  --logo-size: 40px;
  --logo-foot: 28px;
  --hero-ratio: 16 / 10;
  --card-ratio: 4 / 3;
  --scene-ratio: 14 / 9;
}

.wrap {
  width: min(var(--shop-max), calc(100% - 1.7rem));
  margin-left: auto;
  margin-right: auto;
}

.logo,
.foot-brand,
.rail-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.logo-mark {
  width: var(--logo-size);
  height: var(--logo-size);
  flex: none;
  overflow: hidden;
  line-height: 0;
}
.logo-mark svg,
.rail-logo .logo-mark,
.rail-logo .logo-mark svg {
  width: var(--logo-size);
  height: var(--logo-size);
  display: block;
}
.foot-brand .logo-mark,
.foot-brand .logo-mark svg {
  width: var(--logo-foot);
  height: var(--logo-foot);
}
.logo-type {
  display: grid;
  gap: .1rem;
  min-width: 0;
  line-height: 1.08;
}
.logo-word {
  font-size: 1.08rem;
  line-height: 1.1;
  text-transform: none;
  white-space: nowrap;
}
body.theme-keep .logo-word,
body.theme-stitch .logo-word { font-size: 1.14rem; }
.logo-sub {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
}
.rail-logo strong {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.layout { grid-template-columns: 12.75rem minmax(0, 1fr); }

.site-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.site-nav {
  justify-content: flex-end;
  min-width: 0;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: none;
}
.nav-menu summary {
  width: 40px;
  height: 40px;
}

.habit-hero,
.paw-hero,
.mast,
.split-hero,
.ritual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.45rem 1.7rem;
  align-items: center;
  padding: 1.2rem 0 1.5rem;
}
.paw-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.paw-hero .hero-art { order: 2; }
.mast { align-items: start; }
.ritual { align-items: stretch; }
.mast .art-frame {
  aspect-ratio: var(--hero-ratio);
  overflow: hidden;
}
.mast .art-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.hero-art,
.ritual .hero-art {
  margin: 0;
  width: 100%;
  overflow: hidden;
  aspect-ratio: var(--hero-ratio);
  max-height: none;
  min-height: 0;
}
@media (min-width: 901px) {
  .ritual .hero-art {
    aspect-ratio: auto;
    height: 100%;
    min-height: 22rem;
  }
}
.hero-art img,
.ritual .hero-art img,
.paw-hero .hero-art img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-grid,
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.featured-grid .product-card:nth-child(odd) { margin-top: 0; }
.product-card { overflow: hidden; }
.art-frame {
  margin: 0;
  overflow: hidden;
  position: relative;
}
.product-card img,
.feature-kit img,
.pdp .gallery img,
.pdp .art-frame img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: var(--card-ratio);
  object-fit: cover;
  object-position: center;
  display: block;
}
.feature-kit { overflow: hidden; }
.scene-grid,
.guide-grid,
.ask-grid,
.lib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.scene-card img,
.guide-card img,
.meet img,
.feature-band img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: var(--scene-ratio);
  object-fit: cover;
  object-position: center;
  display: block;
}

.pdp {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 1.5rem 1.7rem;
  align-items: start;
}
.gallery { display: grid; gap: .65rem; }

.site-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem 1.4rem;
}

@media (max-width: 1040px) {
  .site-head { grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav { display: none; }
  .nav-menu { display: block; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .step-rail { display: none; }
  .habit-hero,
  .paw-hero,
  .mast,
  .split-hero,
  .ritual,
  .pdp,
  .feature-band,
  .site-foot,
  .meet {
    grid-template-columns: 1fr;
  }
  .paw-hero .hero-art { order: 2; }
  .ritual .hero-art {
    aspect-ratio: var(--hero-ratio);
    height: auto;
    min-height: 0;
  }
  .product-grid,
  .featured-grid,
  .scene-grid,
  .guide-grid,
  .ask-grid,
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-word,
  .rail-logo strong { font-size: 1.02rem; }
}

@media (max-width: 540px) {
  .product-grid,
  .featured-grid,
  .scene-grid,
  .guide-grid,
  .ask-grid,
  .lib-grid { grid-template-columns: 1fr; }
  .wrap { width: min(var(--shop-max), calc(100% - 1.2rem)); }
}
