/* =========================================================
   Cool Candle — styles
   Brand colours: pink #edcdd3 · olive #7e865a · background #fffef7
   ========================================================= */

:root {
  --pink: #edcdd3;
  --olive: #7e865a;
  --bg: #fffef7;

  /* supporting tones derived from the three brand colours */
  --pink-soft: #f8ebee;
  --olive-tint: #eef0e1;
  --olive-deep: #565d3b;
  --ink: #2b2e1f;
  --muted: #6b6f5c;
  --line: #e4e2d3;

  --font-ui: "Jost", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Noto Sans Armenian", Georgia, serif;
  --font-script: "Mrs Saint Delafield", "Segoe Script", cursive;

  --header-h: 84px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(126, 134, 90, .16); /* soft olive flash on tap instead of the default blue/grey */
}
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; }

.sprite { position: absolute; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Illustrations ---------- */
.icon { --c1: var(--olive); --c2: var(--bg); overflow: visible; }
.f1 { fill: var(--c1); }
.f2 { fill: var(--c2); }
.f3 { fill: var(--c3, var(--c1)); }
.s1 { stroke: var(--c1); fill: none; }
.s2 { stroke: var(--c2); fill: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  border: 1.5px solid transparent; border-radius: 0;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--olive); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--olive-deep); }
.btn--ghost { border-color: var(--olive); color: var(--olive-deep); background: transparent; }
/* hover effects only on devices with a real mouse — on phones they would "stick" after a tap */
@media (hover: hover) {
  .btn--primary:hover { background: var(--olive-deep); }
  .btn--light:hover { background: var(--pink); color: var(--ink); }
  .btn--ghost:hover { background: var(--olive-tint); }
}
.btn--primary:active { background: var(--olive-deep); }
.btn--ghost:active { background: var(--olive-tint); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 247, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__inner {
  max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
}
.icon-btn.header__burger { display: none; }

.logo {
  font-weight: 700; font-size: 31px; line-height: 1; letter-spacing: .015em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  /* taller tap area without changing the layout */
  display: inline-block; padding: 10px 0; margin: -10px 0;
}
.logo span { color: var(--olive); }
.logo--light { color: var(--bg); }
.logo--light span { color: var(--pink); }

.nav { display: flex; justify-content: center; gap: clamp(20px, 2.6vw, 38px); }
.nav a {
  position: relative; padding: 10px 0;
  font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--olive); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; justify-content: flex-end; min-width: 44px; }

.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; transition: background-color .2s;
}
@media (hover: hover) { .icon-btn:hover { background: var(--pink-soft); } }
.icon-btn:active { background: var(--pink-soft); }
/* burger turns into a cross while the menu is open */
.header__burger .burger-close { display: none; }
.header__burger[aria-expanded="true"] .burger-open { display: none; }
.header__burger[aria-expanded="true"] .burger-close { display: block; }
.badge {
  position: absolute; top: 3px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--olive-deep); color: var(--bg);
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.badge.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  border-top: 1px solid var(--line); background: var(--bg); padding: 8px var(--gutter) 18px;
  box-shadow: 0 18px 30px rgba(43, 46, 31, .12);
}
.mobile-nav a {
  display: block; padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: var(--olive-deep); }
.mobile-nav a:active { color: var(--olive); }

/* ---------- Hero slideshow ---------- */
.hero { position: relative; height: clamp(540px, 82vh, 820px); overflow: hidden; background: var(--pink); }

/* Cross-fade: the new slide fades in on top while the old one stays fully visible
   underneath, then the old one is hidden — no see-through flash in the middle. */
.slide {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0s linear 1.6s, visibility 0s linear 1.6s;
}
.slide.is-active {
  z-index: 1; opacity: 1; visibility: visible;
  transition: opacity 1.6s cubic-bezier(.45, 0, .25, 1);
}

/* round logo in the middle — stays put while the slides change behind it */
.hero__logo {
  position: absolute; left: 50%; top: 50%; z-index: 3; margin: 0;
  height: min(calc(var(--ring) * 1.44), 78%); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%; overflow: hidden; background: #fefefe; /* same as the logo image's own background */
  box-shadow: 0 14px 44px rgba(43, 46, 31, .18);
}
.hero__logo img { width: 90%; height: auto; }

/* both slides: a big circle behind the logo (--ring is its radius) */
.hero { --ring: min(34vw, 380px); }

/* slide 1: pink background, green circle, green drawings */
.slide--pink {
  --halo: var(--pink);
  background: radial-gradient(circle at 50% 50%, var(--olive) 0 var(--ring), var(--pink) calc(var(--ring) + 1px));
}
.slide--pink .icon { --c1: var(--olive); --c2: var(--pink); }

/* slide 2: green background, pink circle, pink drawings */
.slide--green {
  --halo: var(--olive);
  background: radial-gradient(circle at 50% 50%, var(--pink) 0 var(--ring), var(--olive) calc(var(--ring) + 1px));
}
.slide--green .icon { --c1: var(--pink); --c2: var(--olive); }

.slide__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.slide__art .icon {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: float 7s ease-in-out infinite; animation-delay: var(--d, 0s);
  /* thin outline in the background colour, so a drawing stays readable where it overlaps the same-coloured circle */
  filter: drop-shadow(4px 0 0 var(--halo)) drop-shadow(-4px 0 0 var(--halo)) drop-shadow(0 4px 0 var(--halo)) drop-shadow(0 -4px 0 var(--halo));
}
@keyframes float { 50% { translate: 0 -12px; } }

.art-1 { --x: 13%; --y: 40%; --s: clamp(150px, 21vw, 320px); --r: -8deg; }
.art-2 { --x: 25%; --y: 82%; --s: clamp(96px, 12vw, 190px); --r: 7deg; --d: -2s; }
.art-3 { --x: 85%; --y: 30%; --s: clamp(140px, 19vw, 290px); --r: 6deg; --d: -4s; }
.art-4 { --x: 76%; --y: 80%; --s: clamp(96px, 12.500vw, 200px); --r: -9deg; --d: -1s; }

.hero__dots {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; gap: 0;
}
/* 44px tap area around a small visual dot */
.hero__dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.hero__dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: .45; transition: opacity .2s, box-shadow .2s;
}
.hero[data-tone="dark"] .hero__dot { color: var(--bg); }
@media (hover: hover) { .hero__dot:hover::before { opacity: .8; } }
.hero__dot[aria-current="true"]::before { opacity: 1; box-shadow: 0 0 0 5px transparent, 0 0 0 6.500px currentColor; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section__head { text-align: center; margin-bottom: clamp(40px, 5vw, 68px); }

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--olive-deep); margin-bottom: 14px;
}
.title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 4.8vw, 64px); line-height: 1.05; letter-spacing: -.015em;
}
.title em { font-style: italic; color: var(--olive); }
.lede { max-width: 54ch; margin: 18px auto 0; color: var(--muted); text-wrap: balance; }

/* ---------- Aromas ---------- */
.aromas__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 36px);
  max-width: 1120px; margin: 0 auto;
}
.aroma-card { margin: 0; }
.aroma-card video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  background: var(--pink-soft); border: 1px solid var(--line);
}
.aroma-list { margin-top: 18px; }
.aroma-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.aroma-list li span:first-child { font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.aroma-list li span:last-child { font-size: 15px; color: var(--muted); }

/* dots under the swipeable aroma row (phones only — added by main.js) */
.swipe-dots { display: none; }

/* ---------- Pricelist ---------- */
.pricelist { padding-top: clamp(40px, 5vw, 72px); }
.pricelist__head { position: relative; }

.pricehead { position: relative; display: inline-block; line-height: .9; margin-bottom: clamp(44px, 6vw, 84px); }
.pricehead__price {
  display: block; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(96px, 14vw, 190px); letter-spacing: -.02em; color: var(--pink);
}
.pricehead__list {
  position: absolute; right: -.12em; bottom: -.52em;
  font-family: var(--font-script); font-weight: 400; line-height: 1;
  font-size: clamp(84px, 12vw, 164px); color: var(--olive); rotate: -5deg;
}

.orn { display: flex; align-items: center; gap: 0; margin: 0 0 8px; }
.orn--pink { color: var(--pink); }
.orn--olive { color: var(--olive); }
.orn--end { justify-content: flex-end; margin: clamp(40px, 5vw, 64px) 0 0; }
.orn__dot { position: relative; width: 34px; height: 34px; border-radius: 50%; background: currentColor; flex: none; }
.orn__dot::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 46px;
  margin-left: -1.500px; background: currentColor; border-radius: 2px;
}
.orn--end .orn__dot::after { top: auto; bottom: 100%; }
.orn__line { width: clamp(60px, 9vw, 130px); height: 3px; background: currentColor; border-radius: 2px; }
.orn__sprig { width: clamp(84px, 9vw, 124px); height: auto; margin: -26px 0 0 12px; flex: none; overflow: visible; }
.orn--end .orn__sprig { margin: 26px 12px 0 0; rotate: 180deg; }

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px);
}
.card__tile {
  position: relative; aspect-ratio: 1 / 1.1; display: grid; place-items: center; overflow: hidden;
}
.card__tile .icon { width: 64%; height: auto; aspect-ratio: 1; transition: transform .6s var(--ease); }
.card--small .card__tile .icon { width: 46%; }
@media (hover: hover) { .card:hover .card__tile .icon { transform: scale(1.07) rotate(-3deg); } }

.tile--a { background: var(--pink); }
.tile--a .icon { --c1: var(--olive); --c2: var(--pink); }
.tile--b { background: var(--olive); }
.tile--b .icon { --c1: var(--pink); --c2: var(--olive); }
.tile--c { background: var(--olive-tint); }
.tile--c .icon { --c1: var(--olive); --c2: var(--olive-tint); }

.card__add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; min-height: 46px;
  border: 0; background: var(--bg); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: opacity .25s, transform .25s var(--ease), background-color .2s;
}
.card__add:active { background: var(--ink); color: var(--bg); }
.card__add.is-added { background: var(--olive-deep); color: var(--bg); }
@media (hover: hover) {
  .card__add:hover { background: var(--ink); color: var(--bg); }
  .card__add.is-added { background: var(--olive-deep); }
  .card__add { opacity: 0; transform: translateY(8px); }
  .card:hover .card__add, .card__add:focus-visible, .card__add.is-added { opacity: 1; transform: none; }
}

.card__meta { padding: 14px 4px 0; text-align: center; }
.card__name { font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.card__hy { font-size: 14.500px; color: var(--muted); margin: 1px 0 6px; }
.card__price { font-size: 17px; font-weight: 600; }

.section__more { text-align: center; margin-top: clamp(36px, 4vw, 56px); }

/* ---------- Inner pages (Aromas, Pricelist) ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.crumbs a { text-decoration: none; display: inline-block; padding: 13px 6px; margin: -13px -6px; } /* bigger tap area */
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.crumbs [aria-current] { color: var(--ink); }

.pricelist--page { padding: clamp(36px, 4vw, 56px) 0 clamp(64px, 8vw, 112px); }
.catalog { padding: clamp(36px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }

.pricehead--wide .pricehead__price { font-size: clamp(76px, 12vw, 180px); }
.pricehead--wide .pricehead__list { font-size: clamp(60px, 8.500vw, 130px); right: -.35em; bottom: -.6em; }

.lede--hy { max-width: 600px; font-size: 18px; line-height: 1.65; color: var(--olive-deep); text-wrap: balance; }

.steps { background: var(--pink-soft); padding: clamp(64px, 8vw, 112px) 0; }
.steps__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.steps__list li { background: var(--bg); padding: 34px 26px 32px; text-align: center; }
.steps__num {
  display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--olive); color: var(--bg); font-family: var(--font-display); font-size: 22px;
}
.steps__list h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.steps__list p { color: var(--muted); text-wrap: pretty; }
.steps__list a { color: var(--olive-deep); font-weight: 500; text-underline-offset: 4px; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__arch {
  aspect-ratio: 4 / 5; max-width: 480px; margin: 0 auto;
  background: var(--pink); border-radius: 999px 999px 0 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 6%; border-bottom: 3px solid var(--olive);
}
/* each drawing sits 8/120 above the bottom of its box — the negative margins stand them on the shelf line */
.about__arch .icon { width: 38%; height: auto; aspect-ratio: 1; margin: 0 -5% -2.500%; --c1: var(--olive); --c2: var(--pink); flex: none; }
.about__arch .icon--lg { width: 58%; margin: 0 -8% -3.850%; }

.about__text .title { margin-bottom: 28px; }
.about__story { max-width: 58ch; color: #4a4d3b; font-size: 17px; line-height: 1.8; }
.about__story p + p { margin-top: 18px; }

/* ---------- Founder ---------- */
.founder { background: var(--bg); padding: clamp(72px, 9vw, 128px) 0; }
/* About us sits right above with the same background, so its bottom padding already gives the gap */
.about + .founder { padding-top: clamp(8px, 2vw, 24px); }
.founder__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; max-width: 1180px; }
.founder__portrait { width: clamp(240px, 30vw, 400px); }
/* multiply blends the photo's white surround into the section's background */
.founder__portrait img { width: 100%; height: auto; mix-blend-mode: multiply; }
.founder__text .title { margin-bottom: 28px; }
.founder__story { max-width: 58ch; color: #4a4d3b; font-size: 17px; line-height: 1.8; }
.founder__name { margin-top: 30px; font-size: 18px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-deep); }
.founder__role { font-size: 15px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); max-width: 1040px; margin: 0 auto; }
.contact__grid > li { display: grid; }
.order-summary__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 38px 20px 34px; background: var(--pink); color: var(--ink); text-decoration: none;
  transition: background-color .2s, transform .3s var(--ease);
}
@media (hover: hover) {
  a.contact-card:hover { background: #e8c1c9; transform: translateY(-4px); }
}
a.contact-card:active { background: #e8c1c9; }
.contact-card svg { color: var(--olive-deep); margin-bottom: 10px; }
.contact-card__label { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.contact-card__value { font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 24px); overflow-wrap: anywhere; }

.order-summary { max-width: 1040px; margin: clamp(24px, 3vw, 40px) auto 0; padding: 30px; border: 1.5px solid var(--olive); text-align: left; }
.order-summary h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin-bottom: 12px; }
.order-summary pre { margin: 0 0 22px; font-family: var(--font-ui); font-size: 17px; line-height: 1.7; white-space: pre-wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--olive-deep); color: var(--bg); padding: 56px 0 44px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 40px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 30px; }
.footer__nav a { font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 6px 0; }
.footer__nav a:active { text-decoration: underline; text-underline-offset: 6px; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 254, 247, .22); font-size: 14.500px; opacity: .9; }
.footer :focus-visible { outline-color: var(--pink); }

/* ---------- 404 page ---------- */
.notfound { padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); text-align: center; }
.notfound .icon { width: clamp(120px, 16vw, 180px); height: auto; aspect-ratio: 1; margin: 0 auto; }
.notfound__code { font-family: var(--font-script); font-size: clamp(60px, 8vw, 96px); line-height: 1; color: var(--pink); margin: 0 0 18px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--bg); box-shadow: 0 6px 18px rgba(43, 46, 31, .22);
  transition: transform .2s, background-color .2s, translate .35s var(--ease);
  margin-bottom: env(safe-area-inset-bottom, 0px); /* clear of the iPhone home bar */
}
@media (hover: hover) { .to-top:hover { background: var(--olive-deep); transform: translateY(-2px); } }
/* step aside for the "added to your order" message so they don't overlap */
body:has(.toast.is-on) .to-top { translate: 0 -76px; }

/* ---------- Order drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(43, 46, 31, .46); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s var(--ease);
  box-shadow: -12px 0 40px rgba(43, 46, 31, .16);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 18px 26px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 26px 24px; }
.drawer__empty { padding: 36px 0; color: var(--muted); text-align: center; }
.drawer__empty a { color: var(--olive-deep); font-weight: 500; text-underline-offset: 4px; }

.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__thumb { width: 68px; height: 76px; background: var(--pink); display: grid; place-items: center; }
.line__thumb .icon { width: 72%; height: auto; aspect-ratio: 1; --c1: var(--olive); --c2: var(--pink); }
.line__name { font-size: 14.500px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.line__hy { font-size: 14px; color: var(--muted); }
.line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line__price { font-weight: 600; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--olive); }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 18px; line-height: 1; }
@media (hover: hover) { .qty button:hover { background: var(--olive-tint); } }
.qty button:active { background: var(--olive-tint); }
/* finger-sized steppers on touch screens */
@media (pointer: coarse) { .qty button { width: 44px; height: 44px; font-size: 20px; } }
.qty output { min-width: 26px; text-align: center; font-weight: 600; font-size: 15px; }

.drawer__notes { display: block; margin-top: 22px; }
.drawer__notes span { display: block; font-size: 12.500px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-deep); margin-bottom: 8px; }
.drawer__notes textarea {
  width: 100%; resize: vertical; padding: 12px 14px; border: 1px solid var(--olive); border-radius: 0;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.drawer__notes textarea::placeholder { color: #8a8d7c; }

.drawer__foot { padding: 20px 26px calc(26px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.drawer__total strong { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: 0; }
.drawer__hint { font-size: 14.500px; color: var(--muted); line-height: 1.45; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  translate: -50% 0; transform: translateY(30px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* max-content stops the browser squeezing it into half the screen on phones */
  width: max-content; max-width: calc(100vw - 32px); padding: 6px 10px 6px 22px; line-height: 1.35;
  background: var(--ink); color: var(--bg); font-size: 15px;
  transition: transform .35s var(--ease), opacity .25s;
}
.toast.is-on { transform: none; opacity: 1; pointer-events: auto; }
.toast button {
  border: 0; background: none; color: var(--pink); padding: 0 8px; min-height: 44px; flex: none;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 5px;
}

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .logo { font-size: 27px; }
  .nav a { font-size: 14px; }
  .header__inner { gap: 20px; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; --gutter: 20px; }

  .header__inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .icon-btn.header__burger { display: grid; justify-self: start; margin-left: -10px; }
  .header__actions { margin-right: -10px; }
  .nav { display: none; }
  .logo { font-size: 25px; }

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

  .about__inner { grid-template-columns: 1fr; }
  .about__arch { max-width: 380px; }

  .founder__inner { grid-template-columns: 1fr; }
  .founder__portrait { justify-self: center; width: min(340px, 82vw); }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}
@media (min-width: 921px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* the slideshow fills the phone screen under the header (svh = the height with the browser bars showing) */
  .hero {
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    min-height: 440px; max-height: 880px;
  }
  .art-1 { --x: 20%; --y: 15%; --s: 116px; }
  .art-2 { --x: 20%; --y: 86%; --s: 96px; }
  .art-3 { --x: 80%; --y: 14%; --s: 112px; }
  .art-4 { --x: 80%; --y: 86%; --s: 92px; }
  .hero { --ring: 46vw; }

  .hero__dots { right: auto; left: 50%; top: auto; bottom: 4px; transform: translateX(-50%); flex-direction: row; }

  /* aroma cards become a swipeable row */
  .aromas__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .aromas__grid::-webkit-scrollbar { display: none; }
  .aroma-card { scroll-snap-align: start; }

  .swipe-dots { display: flex; justify-content: center; margin-top: 2px; }
  .swipe-dots button {
    width: 44px; height: 44px; padding: 0; border: 0; background: none;
    display: grid; place-items: center; color: var(--olive);
  }
  .swipe-dots button::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
    opacity: .35; transition: opacity .2s, transform .2s;
  }
  .swipe-dots button[aria-current="true"]::before { opacity: 1; transform: scale(1.3); }
  .aromas__grid + .swipe-dots + .section__more { margin-top: 20px; }

  .card__name { font-size: 14px; letter-spacing: .08em; }
  .card__add { left: 8px; right: 8px; bottom: 8px; min-height: 44px; font-size: 13px; letter-spacing: .08em; }

  .about__arch { max-width: 280px; }

  /* contact: compact rows — icon, label + value, arrow */
  .contact__grid { grid-template-columns: 1fr; }
  .contact-card {
    display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 0;
    align-items: center; justify-items: start; text-align: left; padding: 18px 22px 18px 20px;
  }
  .contact-card svg { grid-row: 1 / 3; margin: 0; }
  .contact-card__label { align-self: end; font-size: 12.500px; }
  .contact-card__value { align-self: start; font-size: 17px; overflow-wrap: break-word; }
  .contact-card::after {
    content: ""; grid-column: 3; grid-row: 1 / 3; width: 9px; height: 9px;
    border-top: 2px solid var(--olive-deep); border-right: 2px solid var(--olive-deep); rotate: 45deg;
  }

  /* how-to-order steps: one per row, number on the left, text on the right */
  .steps__list { grid-template-columns: 1fr; }
  .steps__list li {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px;
    text-align: left; padding: 20px 20px 22px; align-items: center;
  }
  .steps__num { grid-row: 1 / 3; align-self: start; width: 44px; height: 44px; margin: 0; font-size: 20px; }
  .steps__list h3 { font-size: 21px; margin-bottom: 2px; }
  .steps__list p { grid-column: 2; }

  .crumbs { font-size: 13px; padding-top: 16px; }
  .order-summary { padding: 22px; }

  .footer { padding: 44px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
  .footer__nav { gap: 0 26px; }
  .footer__nav a { padding: 12px 0; }

  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  .drawer__head { padding-left: 20px; }
  .drawer__body { padding-left: 20px; padding-right: 20px; }
  /* slimmer footer so more of the order list stays visible on short phones */
  .drawer__foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .drawer__foot .btn { min-height: 48px; padding: 0 16px; letter-spacing: .1em; }
  .drawer__total strong { font-size: 26px; }
  .drawer__hint { font-size: 13.500px; }
  .line { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; }
  .line__thumb { width: 60px; height: 68px; }

  .orn__dot { width: 24px; height: 24px; }
}

/* phones turned sideways: keep the whole slideshow on screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    --h: calc(100vh - var(--header-h));
    height: var(--h); min-height: 280px; max-height: none;
    --ring: calc(var(--h) * .44);
  }
  @supports (height: 100svh) { .hero { --h: calc(100svh - var(--header-h)); } }
  .hero .art-1 { --x: 13%; --y: 32%; --s: calc(var(--h) * .34); }
  .hero .art-2 { --x: 26%; --y: 76%; --s: calc(var(--h) * .26); }
  .hero .art-3 { --x: 87%; --y: 30%; --s: calc(var(--h) * .32); }
  .hero .art-4 { --x: 74%; --y: 76%; --s: calc(var(--h) * .26); }
  .hero__dots { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%); flex-direction: row; }
}

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