/* FLOW · warm, grounded, calm.  Palette: ivory, sand, olive, terracotta, charcoal. */
:root {
  --ivory: #F6F0E4;
  --sand: #E4D3B8;
  --olive: #434B39;
  --terra: #A9512F;      /* text/buttons on light (5:1 on ivory) */
  --terra-lt: #DE8D69;   /* accents on dark */
  --charcoal: #272420;
  --paper: #FBF8F1;
  --ink: #2A2622;
  --muted: #655D53;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body {
  margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.s--olive :focus-visible, .s--charcoal :focus-visible, .hdr[data-theme="olive"] :focus-visible, .hdr[data-theme="charcoal"] :focus-visible { outline-color: var(--terra-lt); }

.skip { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); margin-bottom: 1.1rem; }
.s--olive .eyebrow, .s--charcoal .eyebrow { color: var(--terra-lt); }
.h2, .hero__title { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.012em; }
.hero__title { font-size: clamp(2.9rem, 9.2vw, 6.6rem); }
.h2 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); margin-bottom: 1.4rem; }
.hero__title em, .h2 em { font-style: italic; font-weight: 400; }
.lede { font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 34rem; color: var(--muted); }
.s--olive .lede, .s--charcoal .lede { color: rgba(246,240,228,.78); }
.small { font-size: .85rem; color: var(--muted); }
.s--olive .small, .s--charcoal .small { color: rgba(246,240,228,.66); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }

/* ---------- sections ---------- */
.s { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; }
/* soft colour bleed from the previous section */
.s + .s::before { content: ''; position: absolute; inset: 0 0 auto 0; height: clamp(3rem, 8vw, 5.5rem); background: linear-gradient(var(--prev), transparent); pointer-events: none; }
.s--ivory { background: var(--ivory); }
.s--sand { background: var(--sand); --prev: var(--ivory); }
.s--olive { background: var(--olive); color: var(--ivory); --prev: var(--sand); }
.s--paper { background: var(--paper); --prev: var(--olive); }
.s--charcoal { background: var(--charcoal); color: var(--ivory); --prev: var(--paper); }
.s > .wrap { position: relative; }

/* ---------- header ---------- */
.hdr {
  --fg: var(--ink); --bg: rgba(246,240,228,.72);
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem var(--gutter); color: var(--fg); background: var(--bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.hdr[data-theme="sand"] { --bg: rgba(228,211,184,.78); }
.hdr[data-theme="olive"] { --fg: var(--ivory); --bg: rgba(67,75,57,.82); }
.hdr[data-theme="paper"] { --bg: rgba(251,248,241,.8); }
.hdr[data-theme="charcoal"] { --fg: var(--ivory); --bg: rgba(39,36,32,.85); }
.hdr__logo { font-family: var(--sans); font-weight: 500; letter-spacing: .42em; text-decoration: none; font-size: 1.05rem; }
.hdr__nav { display: none; gap: 2rem; font-size: .82rem; letter-spacing: .08em; }
.hdr__nav a, .hdr__shop { text-decoration: none; opacity: .85; }
.hdr__nav a:hover, .hdr__shop:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.hdr__right { display: flex; align-items: center; gap: 1.1rem; font-size: .85rem; }
.hdr__cart { background: none; border: 1px solid currentColor; border-radius: 999px; padding: .4rem .9rem; display: inline-flex; gap: .5rem; align-items: center; }
.hdr__count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: var(--terra); color: #fff; font-size: .72rem; font-weight: 600; }
.hdr__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
@media (min-width: 52rem) { .hdr__nav { display: flex; } .hdr__shop { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.7rem; border: 1px solid transparent; border-radius: 2px; font-weight: 500; font-size: .95rem; letter-spacing: .03em; text-decoration: none; text-align: center; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); min-height: 3rem; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: #8F4325; }
.btn--dark { background: var(--charcoal); color: var(--ivory); }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(0,0,0,.06); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--terra-lt); text-decoration: underline; text-underline-offset: 5px; font-size: .9rem; }
.drawer .link, .s--paper .link { color: var(--terra); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 1 hero ---------- */
.hero { padding-top: clamp(7rem, 16vw, 10rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.hero__row { display: grid; gap: 1.6rem; margin-top: 1.8rem; }
.hero__cta { display: grid; gap: .7rem; }
.hero__cta .btn { width: 100%; }
.hero__photo { margin-top: clamp(2.2rem, 6vw, 4rem); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% 40%; border-radius: 2px; }
.hero__tag { margin-top: 1.1rem; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 52rem) {
  .hero__cta { display: flex; flex-wrap: wrap; }
  .hero__cta .btn { width: auto; }
  .hero__row { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
  .hero__photo img { aspect-ratio: 905 / 346; object-position: center; }
}

/* ---------- 2 ritual ---------- */
.split { display: grid; gap: 2.5rem; }
.split__text { display: grid; gap: 2rem; }
.split__photo img { width: 100%; border-radius: 2px; aspect-ratio: 840 / 332; object-fit: cover; }
.steps { display: grid; gap: 1.4rem; margin: 0 0 1.4rem; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid rgba(42,38,34,.25); }
.steps__n { font-family: var(--serif); font-size: 1.25rem; color: var(--terra); }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--muted); }
.durations { display: grid; gap: 0; margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid rgba(42,38,34,.25); }
.durations li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 0; border-bottom: 1px solid rgba(42,38,34,.25); }
.durations__h { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.ritual .small { margin-top: 1.2rem; }
.split__steps .small { margin-top: 0; }
@media (min-width: 52rem) {
  .split { gap: clamp(2.5rem, 5vw, 4rem); }
  .split__text { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: end; }
  .split__photo img { aspect-ratio: 840 / 332; }
  .durations { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; }
  .durations li { flex-direction: column; gap: .2rem; }
}

/* ---------- 3 fragrance ---------- */
.frag { display: grid; gap: 2.2rem; margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.frag__item img { width: 100%; aspect-ratio: 1000 / 833; object-fit: cover; border-radius: 2px; }
.frag__item figcaption { padding-top: 1rem; display: grid; gap: .15rem; justify-items: start; }
.frag__item p { color: rgba(246,240,228,.75); margin-bottom: .5rem; }
@media (min-width: 52rem) {
  .frag { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
  .frag__item:nth-child(2) { margin-top: 3.5rem; }
  .frag__item:nth-child(3) { margin-top: 1.5rem; }
}

/* ---------- 4 shop ---------- */
.shop__grid { display: grid; gap: 2.2rem; margin-top: clamp(2rem, 5vw, 3rem); align-items: start; }
.shop__photo img { width: 100%; aspect-ratio: 1000 / 833; object-fit: cover; border-radius: 2px; transition: opacity .25s ease; }
.shop__photo img.swap { opacity: 0; }
.shop__photo figcaption { margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.panel { display: grid; gap: 1.6rem; }
.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs legend { padding: 0; margin-bottom: .8rem; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; gap: .6rem; }
.opts--frag { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt__body { display: grid; gap: .1rem; height: 100%; padding: .8rem .9rem; border: 1px solid rgba(42,38,34,.28); border-radius: 2px; background: transparent; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.opt input:hover + .opt__body { border-color: var(--ink); }
.opt input:checked + .opt__body { border-color: var(--terra); background: #F4E6DB; box-shadow: inset 0 0 0 1px var(--terra); }
.opt input:focus-visible + .opt__body { outline: 2px solid var(--terra); outline-offset: 3px; }
.opt__name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.15; }
.opt__sub { font-size: .8rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 40rem) { .opts--frag .opt__sub { display: none; } }
.opts--dur .opt__body { grid-template-columns: 3.6rem 1fr auto; align-items: center; gap: .9rem; padding: .6rem .9rem .6rem .6rem; }
.opts--dur img { width: 3.6rem; height: 3.6rem; object-fit: cover; border-radius: 2px; }
.opt__price { font-weight: 600; }
.qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.qtyrow__label { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(42,38,34,.35); border-radius: 2px; }
.stepper button { width: 2.8rem; height: 2.8rem; background: none; border: 0; font-size: 1.3rem; line-height: 1; }
.stepper button:hover { background: rgba(0,0,0,.05); }
.stepper output { min-width: 2.4rem; text-align: center; font-weight: 600; }
.price { display: grid; gap: .5rem; padding: 1rem 0; border-top: 1px solid rgba(42,38,34,.22); border-bottom: 1px solid rgba(42,38,34,.22); }
.price > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.price dt { color: var(--muted); }
.price__total { font-weight: 600; font-size: 1.1rem !important; padding-top: .5rem; margin-top: .2rem; border-top: 1px dashed rgba(42,38,34,.25); }
.price__total dt { color: var(--ink); }
.actions { display: grid; gap: .7rem; }
@media (min-width: 52rem) {
  .shop__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .shop__photo { position: sticky; top: 6rem; }
  .actions { grid-template-columns: 1fr 1fr; }
}

/* ---------- 5 care ---------- */
.care__grid { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
.care__list { display: grid; gap: 0; }
.care__list li { padding: 1rem 0; border-top: 1px solid rgba(246,240,228,.2); color: rgba(246,240,228,.88); }
.care__list li:last-child { border-bottom: 1px solid rgba(246,240,228,.2); }
.care__side h3 { font-size: 1.3rem; color: var(--terra-lt); margin-bottom: .3rem; }
.care__side p { color: rgba(246,240,228,.8); margin-bottom: 1.5rem; }
.foot { display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: baseline; justify-content: space-between; margin-top: clamp(4rem, 9vw, 7rem); padding-top: 1.6rem; border-top: 1px solid rgba(246,240,228,.2); }
.foot__logo { letter-spacing: .42em; font-weight: 500; }
@media (min-width: 52rem) { .care__grid { grid-template-columns: 1.6fr 1fr; gap: 5rem; } }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(39,36,32,.5); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.drawer {
  position: fixed; z-index: 70; inset: auto 0 0 0; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-radius: 14px 14px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  transform: translateY(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(42,38,34,.15); }
.drawer__head h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.drawer__head h2:focus { outline: none; }
.drawer__close { width: 2.75rem; height: 2.75rem; background: none; border: 0; font-size: 1.1rem; border-radius: 50%; }
.drawer__close:hover { background: rgba(0,0,0,.06); }
.drawer__body { overflow-y: auto; padding: 1.25rem; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.drawer__actions { display: grid; gap: .6rem; margin-top: 1.3rem; }
@media (min-width: 52rem) {
  .drawer { inset: 0 0 0 auto; width: 28rem; max-height: none; border-radius: 0; transform: translateX(100%); box-shadow: -20px 0 60px rgba(0,0,0,.2); }
  .drawer.is-open { transform: none; }
}
.empty { padding: 2rem 0; color: var(--muted); }
.cart { display: grid; gap: 0; }
.cart__item { display: grid; grid-template-columns: 4rem 1fr auto; gap: .2rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(42,38,34,.15); }
.cart__item img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 2px; grid-row: span 2; }
.cart__title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.cart__sub { font-size: .82rem; color: var(--muted); }
.cart__line { font-weight: 600; text-align: right; }
.cart__ctl { display: flex; align-items: center; gap: .8rem; }
.cart__ctl .stepper button { width: 2.4rem; height: 2.4rem; }
.cart .link { color: var(--muted); font-size: .8rem; }
.sub { margin: .6rem 0 1rem; font-size: 1.5rem; }
.back { margin-bottom: .4rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: .75rem .85rem; background: #fff; border: 1px solid rgba(42,38,34,.35); border-radius: 2px; min-height: 3rem; font-size: 1rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.phone { display: flex; align-items: stretch; }
.phone span { display: grid; place-items: center; padding: 0 .8rem; background: #EFE7D8; border: 1px solid rgba(42,38,34,.35); border-right: 0; border-radius: 2px 0 0 2px; font-size: .95rem; }
.phone input { border-radius: 0 2px 2px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.err { min-height: 0; color: #B3261E; font-size: .8rem; margin-top: .3rem; }
.err:empty { display: none; }
.err--form { margin: .8rem 0; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { margin: .4rem 0 1rem; }
.done__h { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1.05; margin: .3rem 0 .8rem; }
.done__h:focus { outline: none; }
.done__id { margin: 1.2rem 0 1.6rem; padding: .9rem 1rem; background: #F1E8D8; border-radius: 2px; }
.drawer .price { margin-top: 1rem; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--charcoal); color: var(--ivory); padding: .75rem 1.1rem; border-radius: 2px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 2rem); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
section[id] { scroll-margin-top: 3.5rem; }
