/* Plain CSS on purpose: Nuvemshop compiles *.scss.tpl with an older parser that may reject scroll-driven animations. */

:root {
  /* Official palette (Letícia, 09/11/2026): cream #F2EADA, wine #63313D, rose #EBC4CE. The rest derives from it. */
  --plum: #24161a;
  --plum-soft: #34222a;
  --wine: #63313d;
  --wine-deep: #4d2530;
  --cream: #f2eada;
  --paper: #f9f5ee;
  --rose: #ebc4ce;
  --taupe: #d3a9b5;
  --on-dark: #f9f5ee;
  --on-dark-soft: #d9cbc8;
  --on-light: #24161a;
  --on-light-soft: #5e4a50;
  --line-dark: rgb(249 245 238 / .18);
  --line-light: rgb(36 22 26 / .16);

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Jost", "Century Gothic", system-ui, sans-serif;

  --step-display: clamp(3rem, 1.9rem + 5vw, 6rem);
  --step-title: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);
  --step-name: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
  --step-body: 1.0625rem;
  --step-small: .9375rem;
  --step-label: .8125rem;

  --gutter: clamp(1rem, .5rem + 2.5vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --header-h: 4rem;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--plum);
  color: var(--on-dark);
  font: 400 var(--step-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; border-radius: 0; }
s { opacity: .65; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--wine); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 40; padding: .75rem 1rem;
  background: var(--paper); color: var(--on-light); translate: 0 -200%;
}
.skip-link:focus { translate: 0 0; }
.wrap { width: min(100%, 88rem); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.5rem; height: 1.5rem; fill: currentColor; flex: none; }

/* Type */
.display, .title, .buy__name, .empty__title, .brand { font-family: var(--font-display); font-weight: 400; }
.display { font-size: var(--step-display); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.title { font-size: var(--step-title); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.title--page { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.lede { max-width: 34rem; color: var(--on-dark-soft); text-wrap: pretty; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 3.25rem; padding: .75rem 1.75rem; border: 1px solid transparent;
  font: 500 var(--step-label)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), scale .15s var(--ease);
}
.btn:active { scale: .96; }
.btn:disabled { cursor: not-allowed; background: transparent; border-color: currentColor; opacity: .6; }
.btn .icon { width: 1.25rem; height: 1.25rem; }
.btn--solid { background: var(--rose); color: var(--plum); }
.btn--solid:hover { background: var(--paper); }
.btn--wine { background: var(--wine); color: var(--paper); }
.btn--wine:hover { background: var(--wine-deep); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--plum); }
.btn--wide { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; background: none; cursor: pointer; position: relative;
}
.link {
  display: inline-flex; align-items: center; gap: .5rem; padding-block: .5rem; white-space: nowrap;
  font-size: var(--step-small); text-decoration: underline; text-underline-offset: .3em;
  text-decoration-thickness: 1px; transition: text-underline-offset .4s var(--ease);
}
.link:hover { text-underline-offset: .5em; }
.link .icon { width: 1.125rem; height: 1.125rem; transition: translate .25s var(--ease); }
.link:hover .icon { translate: .25rem 0; }

.field { display: grid; gap: .375rem; }
.field__label { font-size: var(--step-small); color: var(--on-light-soft); }
.field__input {
  width: 100%; min-height: 3.25rem; padding: .75rem 1rem; font-size: 1rem;
  background: transparent; border: 1px solid var(--line-light); color: var(--on-light);
  transition: border-color .2s var(--ease);
}
.field__input:hover { border-color: var(--on-light-soft); }
.field__input::placeholder { color: var(--on-light-soft); }
.field__help { font-size: var(--step-small); color: var(--on-light-soft); }
.select { position: relative; }
.select select { appearance: none; padding-right: 3rem; cursor: pointer; }
.select .icon { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; width: 1.125rem; height: 1.125rem; pointer-events: none; }

.qty { display: inline-grid; grid-template-columns: 2.75rem 2.5rem 2.75rem; align-items: center; min-height: 3.25rem; border: 1px solid var(--line-light); }
.qty .icon { width: 1.125rem; height: 1.125rem; }
.qty__input {
  width: 100%; min-width: 0; padding: 0; border: 0; background: none; text-align: center; font-size: 1rem;
  font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield;
}
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.qty--sm { min-height: 2.75rem; }

/* Header */
.announce {
  padding: .3125rem var(--gutter); background: var(--wine); color: var(--paper); text-align: center;
  font-size: .6875rem; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;
}
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--paper); color: var(--on-light);
  border-bottom: 1px solid var(--line-light);
}
.site-header__row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(100%, 88rem); height: var(--header-h); margin-inline: auto; padding-inline: calc(var(--gutter) - .5rem);
}
.site-header__tools { display: flex; align-items: center; justify-content: flex-end; }
.site-nav { display: none; }
.site-nav__link { position: relative; padding-block: .5rem; font-size: var(--step-small); white-space: nowrap; }
.site-nav__link::after {
  content: ""; position: absolute; inset: auto 0 .25rem; height: 1px; background: currentColor;
  scale: 0 1; transform-origin: left; transition: scale .3s var(--ease);
}
.site-nav__link:hover::after, .site-nav__link[aria-current]::after { scale: 1 1; }
.brand { grid-column: 2; display: inline-flex; line-height: 0; color: var(--wine); }
.brand svg { display: block; height: 2.125rem; width: auto; }
.brand--static { display: inline-flex; grid-column: auto; color: inherit; }
.brand--lg svg { height: 3.25rem; }
.search { display: none; align-items: center; }
.search__input {
  width: 8rem; min-height: 2.75rem; padding: 0 .25rem; border: 0; border-bottom: 1px solid var(--line-light);
  background: none; font-size: 1rem; color: var(--on-light);
}
.search__input::placeholder { color: var(--on-light-soft); }
.bag__count {
  position: absolute; top: .25rem; right: .125rem; min-width: 1.125rem; padding-inline: .25rem;
  background: var(--wine); color: var(--paper); font-size: .75rem; line-height: 1.125rem; text-align: center;
  font-variant-numeric: tabular-nums;
}

.menu {
  width: 100%; max-width: 26rem; height: 100dvh; max-height: none; margin: 0; padding: .75rem var(--gutter) 2rem;
  border: 0; background: var(--wine); color: var(--paper);
}
.menu::backdrop { background: rgb(36 22 26 / .6); }
.menu[open] { display: flex; flex-direction: column; gap: 2rem; animation: menu-in .35s var(--ease); }
@keyframes menu-in { from { translate: -1.5rem 0; opacity: 0; } }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__nav { display: grid; }
.menu__link { padding-block: .625rem; font: 400 2.25rem/1.15 var(--font-display); }
.menu__search { display: grid; gap: .375rem; margin-top: auto; }
.menu__search .field__label { color: var(--rose); }
.menu__search .field__input { border-color: var(--taupe); color: var(--paper); }

/* Hero */
.hero {
  position: relative; display: grid; align-items: end; overflow: hidden;
  min-height: 72svh; background: var(--plum); isolation: isolate;
}
.hero__media { display: block; position: absolute; inset: 0; z-index: -1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(28 23 24 / .88) 0%, rgb(28 23 24 / .55) 30%, rgb(28 23 24 / 0) 58%);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__copy { display: grid; justify-items: start; gap: 1rem; padding-block: 2rem 2.5rem; }
.hero .lede { color: var(--paper); }

/* Highlights: campaign cards right under the hero, side by side instead of a rotating banner. */
.highlights { padding-block: clamp(1rem, .5rem + 2vw, 2rem) 0; background: var(--plum); }
.highlights__rail {
  --rail-pad: max(var(--gutter), calc((100vw - 88rem) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: 80vw; gap: .875rem;
  padding-inline: var(--rail-pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
}
.highlights__rail::-webkit-scrollbar { display: none; }
.highlight {
  position: relative; display: grid; align-items: end; aspect-ratio: 4 / 4.6; overflow: hidden; isolation: isolate;
  scroll-snap-align: start; background: var(--plum-soft); color: var(--paper);
}
.highlight::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(36 22 26 / .9) 0%, rgb(36 22 26 / .55) 36%, rgb(36 22 26 / 0) 64%);
}
.highlight__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease); }
.highlight__copy { display: grid; justify-items: start; gap: .375rem; padding: 1.5rem; }
.highlight__eyebrow { font-size: var(--step-label); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.highlight__title { font: 400 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1.1 var(--font-display); }
.highlight__cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: var(--step-small); letter-spacing: .04em; }
.highlight__cta svg { width: 1.125rem; height: 1.125rem; transition: translate .5s var(--ease); }
@media (hover: hover) {
  .highlight:hover .highlight__img { scale: 1.05; }
  .highlight:hover .highlight__cta svg { translate: .375rem 0; }
}
.highlight:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
/* The cards sit at the fold, so they arrive with the page (staggered) instead of waiting for a scroll. */
@media (prefers-reduced-motion: no-preference) {
  .highlight { animation: highlight-in .9s var(--ease) both; animation-delay: calc(250ms + var(--i, 0) * 110ms); }
  @keyframes highlight-in { from { opacity: 0; translate: 0 2rem; } }
}

/* Moments */
.moments { padding-block: var(--section); }
.highlights + .moments { padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.moments .title { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.moments__rail {
  --rail-pad: max(var(--gutter), calc((100vw - 88rem) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 16rem); gap: .875rem;
  padding-inline: var(--rail-pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
}
.moments__rail::-webkit-scrollbar { display: none; }
.moment { display: grid; gap: .875rem; scroll-snap-align: start; }
.moment .frame { display: block; }
.moment .frame img { transition: scale .8s var(--ease); }
.moment:hover .frame img { scale: 1.04; }
.moment__name { font: 400 1.5rem/1.15 var(--font-display); }

/* News */
.news { padding-block: var(--section); background: var(--paper); color: var(--on-light); }
.news__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.rail {
  --rail-pad: max(var(--gutter), calc((100vw - 88rem) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 21rem); gap: .875rem;
  padding-inline: var(--rail-pad);
  padding-bottom: .5rem; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-padding-inline: var(--rail-pad); scrollbar-width: thin; scrollbar-color: var(--taupe) transparent;
}
.rail > * { scroll-snap-align: start; }

/* Product card */
.card { display: grid; align-content: start; gap: .25rem; color: var(--on-light); }
.card__link { display: grid; gap: .875rem; }
.frame { position: relative; overflow: hidden; background: var(--cream); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--card { aspect-ratio: 4 / 5; }
.frame--card img { transition: scale 1.2s var(--ease); }
.card__alt { position: absolute; inset: 0; opacity: 0; scale: 1.04; transition: opacity .8s var(--ease), scale 1.2s var(--ease); }
@media (hover: hover) {
  .card:hover .frame--card img { scale: 1.04; }
  .card:hover .card__alt { opacity: 1; scale: 1; }
}
.card__name { font: 400 1.25rem/1.25 var(--font-display); }
.card__price { font-size: var(--step-small); font-variant-numeric: tabular-nums; color: var(--on-light-soft); min-height: 1.5em; }
.card--soldout .frame { opacity: .6; }

/* Essence */
.essence { display: grid; background: var(--wine); color: var(--paper); }
.essence__copy { display: grid; justify-items: start; align-content: center; gap: 1.25rem; padding: var(--section) var(--gutter); }
.essence__copy p { max-width: 34rem; color: var(--rose); text-wrap: pretty; }
.essence__copy .btn { margin-top: .75rem; }
.essence__copy .btn--line:hover { background: var(--paper); border-color: var(--paper); color: var(--wine); }
.essence__media { min-height: 24rem; aspect-ratio: 4 / 4.4; overflow: hidden; }
.essence__media img { width: 100%; height: 100%; object-fit: cover; }

/* Social */
.social { padding-block: var(--section); background: var(--rose); color: var(--on-light); }
.social__head { display: grid; justify-items: start; gap: 1.25rem; margin-bottom: 2.25rem; }
.social__head .title { color: var(--wine); }
.social__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.social__grid .frame { display: block; aspect-ratio: 1; }
.social__grid img { transition: scale .8s var(--ease); }
.social__grid .frame:hover img { scale: 1.04; }

/* Footer */
.site-footer { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 2rem; background: var(--wine); color: var(--paper); }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
.site-footer__brand { grid-column: 1 / -1; display: grid; gap: 1rem; justify-items: start; }
.site-footer__brand p { max-width: 26rem; color: var(--rose); text-wrap: pretty; }
.site-footer__title { margin-bottom: .75rem; font: 500 var(--step-label)/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.site-footer li a { display: inline-block; padding-block: .3125rem; font-size: var(--step-small); }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: .25em; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid rgb(247 243 232 / .2); font-size: var(--step-small); color: var(--rose);
}

/* Listing pages */
.template-category main, .template-search main, .template-product main, .template-cart main, .template-page main, .template-404 main {
  background: var(--paper); color: var(--on-light);
}
.page { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--section); }
.page__head { display: grid; gap: .75rem; margin-bottom: 2rem; }
.page__head .lede, .page--text .prose { color: var(--on-light-soft); }
.page--text { max-width: 46rem; }
.page--text .prose { margin-top: 2rem; }
.pills { display: flex; gap: .5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-bottom: 2.5rem; overflow-x: auto; scrollbar-width: none; }
.pill {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 1.125rem; border: 1px solid var(--line-light);
  font-size: var(--step-small); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pill:hover { background: var(--cream); }
.pill[aria-current] { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem .875rem; }
.pager { display: flex; justify-content: center; gap: .25rem; margin-top: 3.5rem; }
.pager__link { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; font-variant-numeric: tabular-nums; }
.pager__link[aria-current] { background: var(--wine); color: var(--paper); }
.empty { display: grid; justify-items: start; gap: .75rem; padding-block: 2.5rem; color: var(--on-light-soft); }
.empty__title { font-size: var(--step-title); line-height: 1.1; color: var(--on-light); }
.empty .btn { margin-top: 1rem; }
.empty .btn--line:hover, .buy .btn--line:hover { background: var(--wine); border-color: var(--wine); color: var(--paper); }

/* Product */
.product { display: grid; gap: 1.75rem; padding-block: 0 var(--section); }
.gallery { margin-inline: calc(var(--gutter) * -1); min-width: 0; }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { scroll-snap-align: start; }
.frame--product { aspect-ratio: 4 / 5; }
.gallery__thumbs { display: flex; gap: .5rem; padding: .5rem var(--gutter) 0; overflow-x: auto; scrollbar-width: none; }
.gallery__thumb { flex: none; width: 3.5rem; aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; cursor: pointer; opacity: .55; transition: opacity .2s var(--ease); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover, .gallery__thumb[aria-current] { opacity: 1; }
.gallery__thumb[aria-current] { outline: 1px solid var(--wine); outline-offset: 2px; }

.loupe {
  position: absolute; left: 0; top: 0; width: 13rem; height: 13rem; border-radius: 50%; pointer-events: none;
  background-repeat: no-repeat; background-color: var(--cream);
  box-shadow: 0 0 0 1px rgb(247 243 232 / .9), 0 18px 48px rgb(28 23 24 / .35);
  opacity: 0; scale: .8; transition: opacity .18s var(--ease), scale .18s var(--ease);
}
.loupe.is-on { opacity: 1; scale: 1; }

.buy { display: grid; align-content: start; gap: 1.25rem; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; font-size: var(--step-small); color: var(--on-light-soft); }
.crumbs a + a::before { content: "/"; margin-inline: .5rem; opacity: .6; }
.crumbs a:hover { color: var(--on-light); }
.buy__name { font-size: var(--step-name); line-height: 1.12; text-wrap: balance; }
.buy__price { display: flex; gap: .75rem; align-items: baseline; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.buy__price s { font-size: 1rem; }
.buy__form { display: grid; gap: 1rem; }
.buy__row { display: grid; grid-template-columns: auto 1fr; gap: .625rem; }
.buy__row .btn { padding-inline: 1rem; }
.shipping { display: grid; gap: .375rem; padding-top: 1.25rem; border-top: 1px solid var(--line-light); }
.shipping__row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.shipping .field__help:empty { display: none; }
.shipping__options { display: grid; gap: .375rem; margin-top: .25rem; }
.shipping__option { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: baseline; color: var(--on-light); }
.shipping__option small { grid-column: 1 / -1; color: var(--on-light-soft); }
.shipping__option strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.field__help--alert { color: var(--wine); }
.accordion { border-top: 1px solid var(--line-light); }
.accordion details { border-bottom: 1px solid var(--line-light); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; cursor: pointer;
  font: 400 1.1875rem/1.3 var(--font-display); list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { width: 1.125rem; height: 1.125rem; transition: rotate .25s var(--ease); }
.accordion details[open] summary .icon { rotate: 45deg; }
.prose { padding-bottom: 1.25rem; color: var(--on-light-soft); text-wrap: pretty; }
.prose p + p { margin-top: .75rem; }
.prose h2 { margin-top: 2.25rem; margin-bottom: .5rem; font: 400 1.5rem/1.2 var(--font-display); color: var(--on-light); font-optical-sizing: none; font-variation-settings: "opsz" 18; }
.prose ul { display: grid; gap: .375rem; margin: 1rem 0 0; padding-left: 1.125rem; }
.prose li::marker { color: var(--wine); }
.prose mark { padding: 0 .2em; border-radius: 2px; background: rgb(235 196 206 / .55); color: var(--on-light); }
.draft-note { padding: .75rem 1rem; border-left: 2px solid var(--wine); background: var(--cream); color: var(--on-light); font-size: var(--step-small); }
.page--text .prose { max-width: 42rem; }
.related { padding-block: 0 var(--section); background: var(--paper); color: var(--on-light); }
.related .title { margin-bottom: 2rem; }

/* Cart */
.cart__layout { display: grid; gap: 2.5rem; }
.cart__items { border-top: 1px solid var(--line-light); }
.line { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line-light); }
.frame--line { display: block; aspect-ratio: 4 / 5; }
.line__info { display: grid; justify-items: start; align-content: start; gap: .375rem; min-width: 0; }
.line__name { font: 400 1.25rem/1.25 var(--font-display); }
.line__variant { font-size: var(--step-small); color: var(--on-light-soft); }
.line__total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary { display: grid; gap: 1rem; align-content: start; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.summary__row strong { font-weight: 500; }
.summary__back { justify-self: center; }

/* Bodoni Moda at automatic optical size drops the hairlines: "e" reads as "c".
   Kept after the components because the `font` shorthand resets font-variation-settings. */
.display, .title, .buy__name, .empty__title, .brand, .highlight__title {
  font-optical-sizing: none; font-variation-settings: "opsz" 18;
}
.menu__link, .moment__name, .card__name, .accordion summary, .line__name {
  font-optical-sizing: none; font-variation-settings: "opsz" 11;
}

/* Thin bar at the very top while the next page is on its way (set by brulee.js after 150 ms). */
.is-navigating body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 100; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose) 30%, var(--wine) 50%, var(--rose) 70%, transparent);
  background-size: 50% 100%; background-repeat: no-repeat; animation: pending-bar 1.1s var(--ease) infinite;
}
@keyframes pending-bar { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.is-navigating { cursor: progress; }

/* BB pattern from the brand (asked by Bruna, 10/11/2026): tone on tone, drawn as a mask so CSS picks the color. */
.site-footer, .essence__copy { position: relative; isolation: isolate; }
.site-footer::before, .essence__copy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--paper); opacity: .06;
  /* Centered with the first row clear of the edge, so no half-cut BB along the top. */
  -webkit-mask: url("../images/pattern-bb.svg") 50% .75rem / 4.5rem space repeat;
  mask: url("../images/pattern-bb.svg") 50% .75rem / 4.5rem space repeat;
}
/* Announcement bar: one row of small BBs on both sides, fading out before the text so it stays easy to read. */
.announce { position: relative; isolation: isolate; }
.announce::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-color: var(--paper); opacity: .16;
  -webkit-mask: url("../images/pattern-bb.svg") 50% 50% / 1.25rem space no-repeat, linear-gradient(90deg, #000 0%, transparent 32%, transparent 68%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: url("../images/pattern-bb.svg") 50% 50% / 1.25rem space no-repeat, linear-gradient(90deg, #000 0%, transparent 32%, transparent 68%, #000 100%);
  mask-composite: intersect;
}

/* Mobile menu: the pattern rises from the bottom corner and fades out before the links. */
.menu { position: relative; isolation: isolate; }
.menu::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-color: var(--paper); opacity: .07;
  -webkit-mask: url("../images/pattern-bb.svg") 50% 100% / 4rem space repeat, linear-gradient(to top, #000 0%, rgb(0 0 0 / .4) 35%, transparent 65%);
  -webkit-mask-composite: source-in;
  mask: url("../images/pattern-bb.svg") 50% 100% / 4rem space repeat, linear-gradient(to top, #000 0%, rgb(0 0 0 / .4) 35%, transparent 65%);
  mask-composite: intersect;
}

/* Empty states (empty bag, no search results, 404) have no photo, so one large faint BB keeps the brand there. */
.empty { position: relative; isolation: isolate; }
.empty::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-block: 50% auto; inset-inline: auto 0; width: min(20rem, 55vw); aspect-ratio: 1; translate: 0 -50%;
  background-color: var(--rose); opacity: .55;
  -webkit-mask: url("../images/pattern-bb.svg") center / contain no-repeat;
  mask: url("../images/pattern-bb.svg") center / contain no-repeat;
}

/* In the essence block the pattern fades out toward the photo, so the text side carries it. */
.essence__copy::before {
  opacity: .09;
  -webkit-mask: url("../images/pattern-bb.svg") 50% 0 / 4.5rem space repeat, linear-gradient(120deg, #000 0%, rgb(0 0 0 / .5) 45%, transparent 90%);
  -webkit-mask-composite: source-in;
  mask: url("../images/pattern-bb.svg") 50% 0 / 4.5rem space repeat, linear-gradient(120deg, #000 0%, rgb(0 0 0 / .5) 45%, transparent 90%);
  mask-composite: intersect;
}

/* Preview banner added by dev/app.mjs; harmless in the real theme, where it never renders. */
.preview-note { padding: .75rem var(--gutter); background: var(--cream); color: var(--wine); font-size: var(--step-label); letter-spacing: .04em; text-align: center; text-wrap: balance; }

/* Reveal: hidden state exists only once JS confirms it can undo it. */
.js .reveal { opacity: 0; translate: 0 1.25rem; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

@media (min-width: 48rem) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 1.25rem; }
  .rail { grid-auto-columns: 22rem; gap: 1.25rem; }
  .social__grid { grid-template-columns: repeat(4, 1fr); }
  .social__head { grid-template-columns: 1fr auto; align-items: end; }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
  .line { grid-template-columns: 7rem 1fr auto; }

  .hero { align-items: center; min-height: min(68svh, 44rem); }
  .highlights__rail { grid-auto-columns: 44vw; gap: 1.25rem; }
  .highlight__copy { padding: 2rem; }
  .hero__media::after { background: linear-gradient(to right, rgb(28 23 24 / .72) 0%, rgb(28 23 24 / .35) 34%, rgb(28 23 24 / 0) 58%); }
  .hero__img { object-position: 70% 30%; }
  .hero__copy { padding-block: 3rem; gap: 1.25rem; }
  .hero .display { max-width: 11ch; }
  .hero .lede { max-width: 26rem; }

  .essence { grid-template-columns: 1fr 1fr; }
  .essence__media { aspect-ratio: auto; min-height: 42rem; }
  .essence__copy { padding-left: max(var(--gutter), calc((100vw - 88rem) / 2 + var(--gutter))); padding-right: clamp(2rem, 6vw, 6rem); }
}

@media (min-width: 64rem) {
  :root { --header-h: 4.75rem; }
  .site-header__menu { display: none; }
  .site-nav { display: flex; gap: 1.5rem; padding-left: .5rem; }
  .search { display: flex; }

  .highlights__rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; width: min(100%, 88rem); margin-inline: auto; padding-inline: var(--gutter); }
  .highlight { aspect-ratio: 4 / 5; }
  .moments__rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; overflow: visible; width: min(100%, 88rem); margin-inline: auto; padding-inline: var(--gutter); }

  .grid { grid-template-columns: repeat(4, 1fr); }

  .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 5vw, 6rem); padding-top: 2.5rem; align-items: start; }
  .gallery { margin-inline: 0; }
  .gallery__track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; overflow: visible; }
  .gallery__slide:first-child { grid-column: 1 / -1; }
  .gallery__thumbs { display: none; }
  .buy { position: sticky; top: calc(var(--header-h) + 1.5rem); }

  .cart__layout { grid-template-columns: 1fr 22rem; gap: 4rem; align-items: start; }
  .summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* Slow push toward the jewel as the hero leaves: the brand line, without holding the scroll. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__img { animation: hero-push linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; transform-origin: 62% 42%; }
    @keyframes hero-push { to { transform: scale(1.12); } }
    /* Cards settle into place as they enter: a slow zoom-out that ties them to the hero's push. */
    .highlight__img { animation: highlight-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes highlight-settle { from { transform: scale(1.14); } to { transform: scale(1); } }
    /* The essence pattern drifts up slowly while the block crosses the screen, like printed fabric moving. */
    .essence__copy { view-timeline-name: --essence; }
    .essence__copy::before { animation: pattern-drift linear both; animation-timeline: --essence; animation-range: cover 0% cover 100%; }
    @keyframes pattern-drift { from { -webkit-mask-position: 50% 1.5rem, 0 0; mask-position: 50% 1.5rem, 0 0; } to { -webkit-mask-position: 50% -3rem, 0 0; mask-position: 50% -3rem, 0 0; } }
  }
}

/* Delicate motion, one rhythm for the whole site: slow ease-out, small distances, nothing that loops. */
@media (prefers-reduced-motion: no-preference) {
  /* Page changes cross-fade instead of cutting, and the product photo travels from the card to the product page. */
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
  ::view-transition-old(root) { animation: .35s cubic-bezier(.4, 0, 1, 1) both vt-fade-out; }
  ::view-transition-new(root) { animation: .55s cubic-bezier(.2, 0, 0, 1) .08s both vt-fade-in; }
  @keyframes vt-fade-out { to { opacity: 0; } }
  @keyframes vt-fade-in { from { opacity: 0; translate: 0 .75rem; } }
  /* The sticky header stays put while the page underneath changes. */
  .site-header { view-transition-name: site-header; }

  /* Photos unveil upward like lifted fabric, settling from a small zoom. */
  .js .unveil { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .unveil img { scale: 1.08; transition: scale 1.6s var(--ease); }
  .js .unveil.is-in { clip-path: inset(0 0 0 0); }
  .js .unveil.is-in img { scale: 1; }
  .js .unveil.is-in .card__alt { scale: 1.04; transition: opacity .8s var(--ease), scale 1.2s var(--ease); }
  @media (hover: hover) { .js .card:hover .unveil.is-in img { scale: 1.04; } .js .card:hover .unveil.is-in .card__alt { scale: 1; } }

  /* Menu links follow the panel in, one after another. */
  .menu[open] .menu__link { animation: rise-soft .7s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 55ms); }

  /* Hero copy comes out of a soft blur, line after line. */
  .hero__rise { animation: rise-soft 1.1s var(--ease) both; }
  .hero .lede.hero__rise { animation-delay: .18s; }
  .hero .btn.hero__rise { animation-delay: .32s; }
  @keyframes rise-soft { from { opacity: 0; translate: 0 1rem; filter: blur(8px); } }

  /* Accordions glide open instead of jumping (browsers that can animate to height: auto). */
  @supports (interpolate-size: allow-keywords) {
    .accordion { interpolate-size: allow-keywords; }
    .accordion details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
    .accordion details[open]::details-content { block-size: auto; }
  }
}

/* A page already seen this visit starts in its final state, so nothing replays. Hover and page transitions still run. */
.seen .hero__rise, .seen .highlight { animation: none; }
.js.seen .reveal { opacity: 1; translate: 0 0; }
.js.seen .unveil { clip-path: inset(0 0 0 0); }
.js.seen .unveil img { scale: 1; }
.js.seen .unveil .card__alt { scale: 1.04; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
