/* caketown — A2 "Sprinkles + Frosting". White does 80%; color comes in small bright spots. */

:root {
  --icing: #FFFFFF;
  --licorice: #1B1B1F;
  --ink-soft: #55555C;
  --line: #EDEDF0;
  --frosting: #FFB3CC;
  --bubblegum: #FF3D7F;
  --bubblegum-ink: #D1105A;
  --blush: #FFF0F5;
  --blush-ink: #A30D47;
  --lemon: #FFC53D;
  --lemon-tint: #FFF7E0;
  --blue-raz: #2F6BFF;
  --mint: #2EC4A0;
  --mint-tint: #E8FAF5;
  --mint-ink: #0E6B55;
  --cloud: #F6F6F8;

  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 64ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --border: 1.5px solid var(--line);
  --r-card: 28px;
  --r-img: 22px;

  /* motion (§13.1) */
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  --ease-out: cubic-bezier(.2, 1, .3, 1);
  --hard-shadow: 8px 10px 0 var(--licorice);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--icing);
  color: var(--licorice);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
img { max-width: 100%; }

a { color: var(--bubblegum-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--licorice); }
:focus-visible { outline: 3px solid var(--blue-raz); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(72rem, 100% - var(--gutter) * 2); margin-inline: auto; }
/* the reference layout: header, footer and homepage sections run nearly edge to edge */
.wrap--wide { width: min(90rem, 100% - var(--gutter) * 2); }
.narrow { width: min(42rem, 100% - var(--gutter) * 2); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--licorice); color: var(--icing); padding: .75rem 1rem; border-radius: 0 0 16px 0;
}
.skip:focus { left: 0; }
.section { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }
.section--tight { padding-top: clamp(1.75rem, 5vw, 3.5rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 700; }
.lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: 48ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem;
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.1;
  border-radius: 999px; border: 2px solid var(--licorice);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn--primary { background: var(--licorice); color: var(--icing); }
.btn--primary:hover { background: #3A3A40; border-color: #3A3A40; color: var(--icing); }
.btn--secondary { background: var(--icing); color: var(--licorice); }
.btn--secondary:hover { background: var(--licorice); color: var(--icing); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--block { display: flex; width: 100%; }
.btn--small { min-height: 44px; padding: .5rem 1.2rem; font-size: 1rem; }
.linkish {
  background: none; border: 0; padding: .25rem 0; font: inherit; font-weight: 700;
  color: var(--bubblegum-ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; cursor: pointer; min-height: 44px;
}
.linkish:hover { color: var(--licorice); }

/* ---------- chips + badges ---------- */
.chip, .badge {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: .875rem;
  line-height: 1; padding: .45rem .8rem; border-radius: 999px; white-space: nowrap;
}
.chip--mint { background: var(--mint-tint); color: var(--mint-ink); }
.badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge--new { background: var(--lemon); color: var(--licorice); }
.badge--best { background: var(--bubblegum); color: var(--licorice); }
.badge--limited { background: var(--licorice); color: var(--icing); }
.badge--soldout { background: #E4E4E8; color: var(--licorice); }

/* ---------- sprinkles + drips ---------- */
.drip { display: block; width: 100%; position: relative; pointer-events: none; }
.drip__band { background: currentColor; }
.drip__drop { position: absolute; display: block; overflow: visible; transform-box: fill-box; transform-origin: top; }
.drip__drop path { fill: currentColor; }
.drip--narrow { display: none; }
@media (max-width: 47.99rem) { .drip--wide { display: none; } .drip--narrow { display: block; } }
.sprinkles { display: inline-block; position: relative; width: 120px; height: 56px; }
.sprinkles i {
  position: absolute; width: 26px; height: 9px; border-radius: 4.5px; background: var(--c);
  transform: rotate(var(--r));
  left: calc(var(--i) * 22px); top: calc(((var(--i) * 37) % 4) * 11px + 4px);
}
.sprinkles--big { transform: scale(1.4); transform-origin: left center; margin-bottom: 1rem; }

/* ---------- preview + announcement ---------- */
.preview-bar { background: var(--licorice); color: var(--icing); text-align: center; padding: .4rem 1rem; font-size: .875rem; }
.announce { display: flex; align-items: center; background: var(--licorice); color: var(--icing); min-height: 44px; font-size: .9375rem; font-weight: 500; }
.announce__link { flex: 1 1 0; min-width: 0; align-self: stretch; min-height: 44px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--icing); text-decoration: none; padding-left: 44px; }
/* the global a:hover turns links licorice, which vanishes on this bar */
a.announce__link:hover, a.announce__link:hover .announce__static { color: var(--frosting); }
.announce__static { text-decoration: underline; text-decoration-color: var(--frosting); text-underline-offset: 3px; padding: .5rem 0; }
.ticker { display: none; }
.announce__close {
  flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: var(--licorice); color: var(--icing); cursor: pointer;
}
.announce__close:hover { color: var(--frosting); }
/* the ticker only exists when motion is welcome; otherwise the static line shows */
@media (prefers-reduced-motion: no-preference) {
  .announce--ticker .announce__static { display: none; }
  .announce--ticker .announce__link { justify-content: flex-start; padding-left: 0; }
  .announce--ticker .ticker { display: block; width: 100%; }
  .ticker__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
  .ticker__copy { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
  .ticker__item { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; }
  .ticker__item i { display: block; width: 16px; height: 6px; border-radius: 999px; rotate: -28deg; background: var(--c); }
  a.announce__link:hover .ticker__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- header (reference design) ---------- */
.site-header { position: relative; z-index: 5; background: var(--icing); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 0; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

/* logo: "caketown" over tracked DM Sans "GOODS", sprinkles on the wordmark */
.logo { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding-top: 6px;
  color: var(--licorice); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; }
.logo__stack { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo__word { letter-spacing: -0.01em; }
.logo__goods { padding-left: .42em; font-family: var(--body); font-weight: 700; font-size: 10px; line-height: 1; letter-spacing: .42em; color: var(--bubblegum-ink); }
.logo__spr i { position: absolute; width: 13px; height: 5px; border-radius: 999px; background: var(--c); rotate: var(--r); }
a.logo:hover .logo__word { color: var(--bubblegum-ink); }

.cart-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px;
  background: var(--lemon); color: var(--licorice); border: 2px solid var(--licorice); border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
}
.menu-btn {
  display: none; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--licorice); background: var(--icing); color: var(--licorice);
  font-family: var(--display); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.cart-pill, .menu-btn { transition: transform .18s var(--spring); }
.cart-pill:active, .menu-btn:active { transform: translateY(2px) scale(.97); }

.nav-band { background: var(--frosting); padding-bottom: 10px; }
.nav-band__links { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 0; }
.nav-band__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--licorice); text-decoration: none; font-weight: 500; transition: background-color .15s ease;
}
.nav-band__links a[aria-current="page"] { background: var(--icing); }
.nav-band__drip { margin-top: -1px; }
@media (max-width: 47.99rem) {
  .menu-btn { display: inline-flex; }
  .nav-band__links { display: none; }
  .logo--header { font-size: 30px; }
  .site-header__actions { gap: 8px; }
  .cart-pill { padding: 0 14px; gap: 6px; }
  .menu-btn { padding: 0 14px; }
}
@media (max-width: 23.99rem) { .logo--header { font-size: 26px; } }
@media (max-width: 22.49rem) { .logo--header { font-size: 24px; } .cart-pill svg { display: none; } } /* 320px phones */
@media (hover: hover) {
  .cart-pill:hover, .menu-btn:hover { transform: translateY(-3px); }
  .nav-band__links a:hover { background: var(--icing); }
}
@media (prefers-reduced-motion: no-preference) {
  .logo--header .logo__spr i { animation: drop .6s var(--spring) both; animation-delay: var(--d, 0s); }
}
@keyframes drop { 0% { opacity: 0; transform: translateY(-22px) scale(.4); } 70% { opacity: 1; transform: translateY(3px) scale(1.1); } 100% { opacity: 1; transform: none; } }

/* drawer */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(22rem, 86vw);
  border: 0; padding: 1.25rem; background: var(--icing); color: var(--licorice);
  border-radius: 28px 0 0 28px;
}
.drawer::backdrop { background: rgba(27, 27, 31, .45); }
.drawer[open] { animation: slide-in .22s cubic-bezier(.2,.7,.3,1); }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.logo--drawer { font-size: 30px; }
.drawer__close {
  width: 48px; height: 48px; border-radius: 999px; border: var(--border); background: var(--icing);
  font-size: 1.75rem; line-height: 1; cursor: pointer; color: var(--licorice);
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--licorice);
  text-decoration: none; padding: .75rem 0; border-bottom: var(--border);
}
.drawer nav a[aria-current="page"] { color: var(--bubblegum-ink); }
.drawer__sprinkles { margin-top: 2rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(1rem, 3vw, 2rem); }
.hero__card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--blush); border: 2px solid var(--licorice); border-radius: 36px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem;
  --hero-px: clamp(1.25rem, 4.5vw, 4rem); /* side gutters; the sprinkles live in them */
  padding: clamp(5rem, 9vw, 7rem) var(--hero-px) clamp(2rem, 4.5vw, 4rem);
}
.hero__drip { position: absolute; left: 0; top: 0; }
@media (min-width: 56rem) { .hero__card { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; } }
.hero__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero__copy .chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; font-family: var(--body); font-weight: 700; font-size: .9375rem; }
.hero__title { margin: 1rem 0 .85rem; font-size: clamp(2.4rem, 7.2vw, 5.25rem); line-height: 1.03; letter-spacing: -0.01em; }
.hero__word { display: inline-block; }
/* lemon swipe under "Questionable": behind the word, inside its own stacking context */
.hero__hl { position: relative; z-index: 0; }
.hero__hl::before {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .1em; height: .36em;
  background: var(--lemon); border-radius: 999px; z-index: -1; transform-origin: left center;
}
.hero__sub { font-size: clamp(1.0625rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 30em; margin: 0; }
.hero__ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.6rem 0 0; }
.hero__ctas .btn { min-height: 54px; font-size: 1.125rem; }
.hero__cta { box-shadow: 0 4px 0 var(--bubblegum); transition: transform .18s var(--spring), box-shadow .18s ease, background-color .15s; }
.hero__cta2 { transition: transform .18s var(--spring), background-color .15s, color .15s; }
.hero__arrow { flex: none; transition: transform .2s var(--spring); }
.hero__ctas .btn:active { transform: translateY(2px) scale(.97); }

/* shirt tile on a lemon disc, with a spinning price badge */
.hero__tee { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  width: min(100%, 430px); justify-self: center; text-decoration: none; color: var(--licorice); }
.hero__stage { position: relative; display: block; width: 100%; }
.hero__glow { position: absolute; inset: -5%; border-radius: 50%; background: var(--lemon); }
.hero__tile { position: relative; display: block; overflow: hidden; background: var(--icing);
  border: 2px solid var(--licorice); border-radius: 32px; box-shadow: var(--hard-shadow); }
.hero__tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hero__badge { position: absolute; top: -22px; right: -8px; width: 118px; height: 118px; display: grid; place-items: center; }
.hero__badge-spin { position: absolute; inset: 0; }
.hero__badge-spin i { position: absolute; inset: 12px; background: var(--bubblegum); border-radius: 18px; }
.hero__badge-spin i:nth-child(2) { rotate: 30deg; }
.hero__badge-spin i:nth-child(3) { rotate: 60deg; }
.hero__badge-price { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--icing); rotate: -10deg; font-family: var(--display); font-weight: 700; font-size: 1.875rem; line-height: 1; }
.hero__tee-label { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem 1rem;
  background: var(--icing); border: 2px solid var(--licorice); border-radius: 999px;
  font-weight: 500; font-size: .9375rem; text-align: center; }

/* decorative sprinkles: behind the content, never over text */
.hero__sprinkles { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero__spr { position: absolute; width: 26px; height: 9px; border-radius: 999px; background: var(--c); rotate: var(--r); }
@media (max-width: 47.99rem) {
  .hero__spr:not(.hero__spr--keep) { display: none; }
  .hero__glow { inset: -3%; } /* -5% runs past the card edge at 390px */
  .hero__badge { width: 96px; height: 96px; top: -18px; right: -4px; }
  .hero__badge-spin i { inset: 10px; border-radius: 15px; }
  .hero__badge-price { width: 64px; height: 64px; font-size: 1.5rem; }
}

@media (hover: hover) {
  .hero__cta:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--bubblegum); }
  .hero__cta:hover .hero__arrow { transform: translateX(5px); }
  .hero__cta2:hover { transform: translateY(-3px); }
  .hero__tee:hover .hero__tee-label { background: var(--licorice); color: var(--icing); }
}

/* every hero animation is opt-in: with reduced motion, the final state is the only state */
@media (prefers-reduced-motion: no-preference) {
  .hero__word { animation: pop .7s var(--spring) both; animation-delay: var(--d, 0s); }
  .hero__hl::before { animation: swipe .5s .95s var(--ease-out) both; }
  .hero__in { animation: fade-up .6s var(--ease-out) both; animation-delay: var(--d, 0s); }
  .hero__tile { animation: float 6s ease-in-out infinite; }
  .hero__glow { animation: pulse 6s ease-in-out infinite; }
  .hero__badge-spin { animation: spin 18s linear infinite; }
  .hero__spr { animation: bob 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .drip__drop { animation: ooze .9s var(--spring) both, breathe 5s ease-in-out infinite; animation-delay: var(--ooze, 0s), var(--breathe, 0s); }
}
@keyframes pop     { 0% { opacity: 0; transform: translateY(.5em) rotate(-6deg) scale(.85); }
                     60% { opacity: 1; transform: translateY(-.06em) rotate(1.5deg) scale(1.04); }
                     100% { opacity: 1; transform: none; } }
@keyframes swipe   { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes fade-up { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: none; } }
@keyframes float   { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes pulse   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes bob     { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(24deg); } }
@keyframes ooze    { 0% { transform: scaleY(.12); } 60% { transform: scaleY(1.1); } 100% { transform: scaleY(1); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.14); } }

/* ---------- holiday banner + notes ---------- */
.holiday {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; margin: 0;
  background: var(--lemon-tint); border: 2px dashed var(--licorice); border-radius: 24px;
}
.wrap > .holiday { margin-top: 1.5rem; }
.holiday p { margin: 0; padding-top: 6px; max-width: none; }
.holiday strong { color: var(--blush-ink); }
.holiday__icon { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lemon); color: var(--licorice); }
@media (prefers-reduced-motion: no-preference) {
  .holiday__icon { animation: wiggle 2.4s ease-in-out infinite; }
}
@keyframes wiggle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* ---------- marquee band (homepage) ---------- */
.marquee { overflow: clip; padding: 14px 0; margin-top: clamp(1.75rem, 5vw, 3.5rem); }
.marquee__band { margin: 0 -2%; rotate: -1.5deg; background: var(--licorice); padding: clamp(10px, 1.6vw, 18px) 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4.6vw, 3.25rem); line-height: 1.1; }
.marquee__copy { display: flex; align-items: center; gap: 32px; padding-right: 32px; }
.marquee__item { display: inline-flex; align-items: center; gap: 32px; white-space: nowrap; }
.marquee__item i { display: block; width: 34px; height: 12px; border-radius: 999px; rotate: -28deg; background: var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 30s linear infinite; }
}

/* ---------- arrow link ---------- */
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.arrow-link__icon { transition: transform .2s var(--spring); }
@media (hover: hover) { .arrow-link:hover .arrow-link__icon { transform: translateX(5px); } }

.note { background: var(--cloud); border-radius: 18px; padding: .9rem 1.1rem; margin: 0 0 1rem; }
.note p { margin: 0; font-size: .9375rem; }

/* ---------- cards ---------- */
.cards {
  display: grid; gap: clamp(1rem, 3vw, 1.75rem); list-style: none; padding: 0; margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
}
.cards--small { grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); }
.card__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--licorice);
  border: var(--border); border-radius: var(--r-card); padding: .75rem .75rem 1rem;
  transition: border-color .15s;
}
.card__link:hover, .card__link:focus-visible { border-color: var(--frosting); }
.card__media { position: relative; aspect-ratio: 1; border-radius: var(--r-img); overflow: hidden; background: var(--cloud); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.card__img--alt { opacity: 0; }
.card--swap .card__link:hover .card__img--alt,
.card--swap .card__link:focus-visible .card__img--alt { opacity: 1; }
.card__media .badges { position: absolute; left: .6rem; top: .6rem; }
.card__media svg { width: 100%; height: 100%; }
.card__title { font-family: var(--display); font-weight: 600; font-size: 1.1875rem; margin: .85rem .25rem .2rem; line-height: 1.2; letter-spacing: -0.01em; }
.card__hook { color: var(--ink-soft); font-size: .9375rem; margin: 0 .25rem .75rem; line-height: 1.45; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: auto .25rem 0; }
.card__price { font-weight: 700; font-size: 1.0625rem; }
.card__cta { font-family: var(--display); font-weight: 600; font-size: .9375rem; border: 2px solid var(--licorice); border-radius: 999px; padding: .3rem .8rem; }
.card__link:hover .card__cta { background: var(--licorice); color: var(--icing); }
.card--soldout .card__media { opacity: .55; }

/* ---------- homepage feature cards (reference design; shop/product cards unchanged) ---------- */
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; }
.cards--feature { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.cards--feature .card { display: flex; }
.cards--feature .card:only-child { max-width: 36rem; } /* one shirt shouldn't stretch across the row */
.cards--feature .card__link {
  flex: 1 1 auto; min-width: 0; gap: 12px; padding: 16px;
  background: var(--blush); border: 2px solid var(--licorice); border-radius: 28px;
  transition: transform .28s var(--spring), box-shadow .28s ease;
}
.cards--feature .card:nth-child(even) .card__link { background: var(--mint-tint); }
.cards--feature .card__link:hover, .cards--feature .card__link:focus-visible { border-color: var(--licorice); }
.cards--feature .card__media { aspect-ratio: 5 / 4; background: var(--icing); border-radius: 20px; }
.cards--feature .card__img { transition: transform .45s var(--ease-out), opacity .25s ease; }
.cards--feature .card__media .badges { left: 14px; top: 14px; }
.cards--feature .badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border: 2px solid var(--licorice); font-size: .9375rem; }
.cards--feature .card__title { margin: 6px 4px 0; font-size: 1.375rem; line-height: 1.2; }
.cards--feature .card__hook { margin: 0 4px; font-size: 1rem; }
.cards--feature .card__foot { margin: auto 4px 4px; padding-top: 8px; gap: 12px; }
.cards--feature .card__price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.cards--feature .card__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--icing); font-size: 1rem; transition: background-color .18s ease, color .18s ease; }
.cards--feature .card__link:active { transform: scale(.985); }
/* the shared hover/focus rules from .card__link stay, but here the pill fills only on hover-capable devices */
.cards--feature .card__link:hover .card__cta { background: var(--icing); color: var(--licorice); }
@media (hover: hover) {
  .cards--feature .card__link:hover { transform: translate(-4px, -6px) rotate(-.6deg); box-shadow: var(--hard-shadow); }
  .cards--feature .card__link:hover .card__img { transform: scale(1.05); }
  .cards--feature .card__link:hover .card__cta { background: var(--licorice); color: var(--icing); }
}

/* ---------- trust tiles (homepage) ---------- */
.trust {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}
.trust__tile { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 2px solid var(--licorice); border-radius: 24px; }
.trust__icon { flex: 0 0 48px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); color: var(--licorice); }
.trust__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust__text strong { font-family: var(--display); font-weight: 600; font-size: 1.1875rem; }
.trust__text span { color: var(--ink-soft); font-size: .9375rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .trust__tile:hover .trust__icon { animation: wiggle .45s ease-in-out 2; }
}
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.tile { display: block; border: var(--border); border-radius: 22px; padding: 1.5rem; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--licorice); text-decoration: none; text-transform: capitalize; }

/* scroll-in: only where the browser can drive it from scroll, and only with motion welcome */
@media (prefers-reduced-motion: no-preference) {
  .cards--feature .card__media .badge--new { animation: wiggle 2.4s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  }
}
@keyframes rise { 0% { opacity: 0; transform: translateY(40px) scale(.96); } 100% { opacity: 1; transform: none; } }

/* ---------- shop ---------- */
.shop__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.shop__count { margin: 0; color: var(--ink-soft); font-weight: 500; }
.sort { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; }
.sort select {
  font: inherit; min-height: 44px; padding: .4rem 2.2rem .4rem 1rem; border-radius: 999px;
  border: var(--border); background: var(--icing) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B1B1F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center;
  appearance: none; color: var(--licorice);
}
.empty { text-align: left; padding-bottom: 2rem; }

/* ---------- product ---------- */
.product { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
@media (min-width: 56rem) { .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } .product__media { position: sticky; top: 1rem; } }
.product__info .badges { margin-bottom: .75rem; }
.product__info h1 { margin: 0 0 .4rem; font-size: clamp(2rem, 5vw, 3rem); }
.product__hook { font-size: 1.125rem; color: var(--ink-soft); margin-bottom: .75rem; }
.product__price { font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; }
.product__story { margin-bottom: 1.25rem; }

.gallery { margin: 0; min-width: 0; }
.gallery__stage { position: relative; border-radius: var(--r-img); overflow: hidden; background: var(--cloud); border: var(--border); }
.gallery__track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--licorice); outline-offset: -3px; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery__slide img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid var(--licorice); border-radius: 999px; background: var(--icing); color: var(--licorice); cursor: pointer; padding: 0; }
.gallery__nav--prev { left: .75rem; }
.gallery__nav--next { right: .75rem; }
.gallery__nav:disabled { opacity: 0; pointer-events: none; }
.gallery__count { position: absolute; right: .75rem; bottom: .75rem; margin: 0; padding: .2rem .65rem; border-radius: 999px;
  background: var(--licorice); color: var(--icing); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Touch screens swipe; the arrows are for mice and keyboards. */
@media (hover: none) { .gallery__nav { display: none; } }
.thumbs { display: flex; gap: .5rem; list-style: none; margin: .75rem 0 0; padding: 2px 2px .5rem; overflow-x: auto;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.thumbs li { flex: none; scroll-snap-align: start; }
.thumb { padding: 0; border: 2px solid var(--line); background: var(--cloud); cursor: pointer; line-height: 0; border-radius: 16px; overflow: hidden; }
.thumb img { width: 4.25rem; height: 4.25rem; object-fit: cover; display: block; }
.thumb.is-on { border-color: var(--licorice); }
@media (hover: hover) { .thumb:hover { border-color: var(--licorice); } .gallery__nav:hover { background: var(--lemon-tint); } }
@media (prefers-reduced-motion: no-preference) { .gallery__track, .thumbs { scroll-behavior: smooth; } }
.shelf-art svg { width: 100%; border-radius: var(--r-img); }

/* buy box */
.buy { margin: 0 0 1rem; }
.pills { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.pills legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.pills__chosen { font-weight: 400; color: var(--ink-soft); }
.pills__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px;
  padding: .4rem 1rem; border: 2px solid var(--line); border-radius: 999px; font-weight: 500;
  background: var(--icing); transition: border-color .15s, background-color .15s;
}
.pill input:hover + span { border-color: var(--licorice); }
.pill input:checked + span { background: var(--licorice); border-color: var(--licorice); color: var(--icing); }
.pill input:focus-visible + span { outline: 3px solid var(--blue-raz); outline-offset: 2px; }
.pill.is-off span { color: #8A8A92; background: var(--cloud); text-decoration: line-through; border-style: dashed; }
.pill input:disabled { cursor: not-allowed; }
.size-guide-link { display: flex; gap: .25rem 1rem; flex-wrap: wrap; align-items: baseline; margin: -.25rem 0 1rem; }
.size-guide-link a { font-weight: 700; }
.buy__unavail { color: var(--ink-soft); font-size: .875rem; }
.buy__msg { color: var(--bubblegum-ink); font-weight: 700; margin: 0 0 .5rem; min-height: 0; }
.buy__msg:empty { display: none; }
.delivery { color: var(--ink-soft); font-size: .9375rem; margin: .75rem 0 0; text-align: center; max-width: none; }
.buy__placeholder { background: var(--blush); border-radius: 22px; padding: 1.25rem; }
.buy__placeholder p { margin: 0 0 .5rem; font-weight: 700; }
.buy__soldout { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }

.final-sale { background: var(--blush); border-radius: 22px; padding: 1rem 1.15rem; margin: 0 0 1rem; }
.final-sale p { margin: 0; font-size: .9375rem; }
.final-sale p + p { margin-top: .4rem; }
.final-sale__label { color: var(--blush-ink); font-weight: 700; font-size: 1rem !important; }
.final-sale a { color: var(--blush-ink); }

.fabric { margin: 0; }
.popover {
  border: var(--border); border-radius: 24px; padding: 1.25rem 1.4rem; max-width: min(28rem, 92vw);
  color: var(--licorice); background: var(--icing); box-shadow: 0 12px 40px rgba(27,27,31,.14);
}
.popover::backdrop { background: rgba(27,27,31,.2); }
.popover h2 { font-size: 1.375rem; }
.spec { margin: 0 0 1rem; }
.spec div { display: grid; grid-template-columns: 5rem 1fr; gap: .75rem; padding: .55rem 0; border-bottom: var(--border); }
.spec dt { color: var(--ink-soft); font-size: .9375rem; }
.spec dd { margin: 0; font-size: .9375rem; }

/* sticky add to cart (mobile) */
.sticky-buy {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: var(--icing); border: var(--border); border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem;
  box-shadow: 0 8px 30px rgba(27,27,31,.16);
}
.sticky-buy[hidden] { display: none; }
.sticky-buy__name { font-weight: 700; font-size: .9375rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy__name span { color: var(--ink-soft); font-weight: 500; margin-left: .35rem; }
@media (min-width: 56rem) { .sticky-buy { display: none !important; } }

/* ---------- size chart ---------- */
.chart-card { max-width: 46rem; border: var(--border); border-radius: var(--r-card); padding: clamp(1.1rem, 3vw, 1.75rem); margin: 1.25rem 0 0; }
.chart-card h2, .chart-card h3 { margin-top: 0; }
.chart { width: 100%; border-collapse: collapse; margin: 0; font-variant-numeric: tabular-nums; }
.chart caption { text-align: left; padding: 0 0 .6rem; color: var(--ink-soft); font-size: .9375rem; }
.chart th, .chart td { padding: .6rem .75rem; text-align: left; border-bottom: var(--border); }
.chart thead th { font-family: var(--display); font-weight: 600; font-size: .9375rem; border-bottom: 2px solid var(--licorice); }
.chart tbody th { font-weight: 700; }
.chart tbody tr:last-child th, .chart tbody tr:last-child td { border-bottom: none; }
.measure-how { background: var(--cloud); border-radius: 18px; padding: 1rem 1.15rem; margin: 1rem 0; }
.measure-how p:last-child { margin-bottom: 0; }
.tolerance { color: var(--ink-soft); font-size: .9375rem; margin-top: 1rem; }
.table-scroll { overflow-x: auto; margin: 1rem 0; border-radius: 12px; }

/* ---------- dialog ---------- */
.modal {
  border: 0; border-radius: 28px; padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  width: min(44rem, 94vw); max-height: 90dvh; color: var(--licorice); background: var(--icing);
}
.modal::backdrop { background: rgba(27,27,31,.45); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal__head h2 { margin: 0; }
.modal__close {
  width: 48px; height: 48px; flex: none; border-radius: 999px; border: var(--border); background: var(--icing);
  font-size: 1.75rem; line-height: 1; cursor: pointer; color: var(--licorice);
}
.modal .chart-card { border: 0; padding: 0; }

/* ---------- prose pages ---------- */
.prose { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.prose h2 { margin-top: 2.25rem; padding-top: 1.25rem; border-top: var(--border); }
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }
.prose ul { max-width: var(--measure); padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- footer (reference design, site-wide) ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 88px); background: var(--licorice); color: var(--icing); }
.site-footer__drip { color: var(--frosting); }
.site-footer__inner { padding: 16px 0 40px; display: flex; flex-direction: column; gap: 32px; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer__about { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__about p { margin: 0; max-width: 34em; }
.logo--footer { font-size: 44px; padding-top: 12px; color: var(--icing); }
.logo--footer .logo__stack { gap: 6px; }
.logo--footer .logo__goods { font-size: 12px; color: var(--frosting); }
.logo--footer .logo__spr i { width: 16px; height: 6px; }
.site-footer__mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--frosting); font-weight: 500; overflow-wrap: anywhere; }
.site-footer nav { flex: 1 1 240px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-content: start; }
.site-footer nav a { display: flex; align-items: center; min-height: 44px; color: var(--icing); text-decoration: none; font-weight: 500; }
.site-footer__fine { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1.5px solid #3A3A42; color: #C9C9D1; font-size: .875rem; }
.site-footer__fine p { margin: 0; max-width: 64ch; }
.site-footer__fine strong { color: var(--icing); }
.site-footer__fine a { color: var(--frosting); }
.site-footer a:hover { color: var(--frosting); }
.site-footer :focus-visible { outline-color: var(--frosting); }
@media (hover: hover) { .site-footer nav a:hover { color: var(--frosting); } }
.site-footer .signup label { color: var(--icing); }
.signup { margin-top: 2rem; max-width: 30rem; }
.signup label { font-family: var(--display); font-weight: 600; font-size: 1.125rem; display: block; margin-bottom: .5rem; }
.signup__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.signup input { flex: 1 1 14rem; min-height: 48px; padding: .5rem 1.1rem; border: var(--border); border-radius: 999px; font: inherit; }
