:root {
  color-scheme: light;
  --bg: #F6F4F1;
  --photo-bg: #E8E6E4;
  --ink: #1E1C1A;
  --ink-soft: #4A4540;
  --muted: #746D67;
  --ab-smoke: #B3ADA6;
  --line: #E7E2DC;
  --header-h: clamp(100px, 18dvh, 150px);
  --row-h: clamp(60px, calc((100dvh - var(--header-h) - 56px) / 4), 104px);
  --page-gutter: clamp(16px, 5vw, 24px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-synthesis: none;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0 0 calc(48px + env(safe-area-inset-bottom));
  overflow-x: clip;
  background: var(--bg);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.page-shell {
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  margin-inline: auto;
}

.site-header {
  position: relative;
  height: var(--header-h);
  padding-top: clamp(14px, 3dvh, 24px);
}

.wordmark {
  display: block;
  width: min(clamp(200px, 56vw, 320px), 100%);
  aspect-ratio: 792 / 61;
  background-color: var(--ink);
  -webkit-mask: url("img/aromabotanical-wordmark.png") center / contain no-repeat;
  mask: url("img/aromabotanical-wordmark.png") center / contain no-repeat;
}

.brand-center {
  position: absolute;
  top: clamp(24px, 4dvh, 32px);
  left: 50%;
  display: flex;
  width: min(clamp(200px, 56vw, 320px), calc(100% - 2 * var(--page-gutter)));
  align-items: center;
  flex-direction: column;
  gap: clamp(8px, 1.5dvh, 12px);
  transform: translateX(-50%);
}

.monogram {
  display: block;
  width: auto;
  height: clamp(36px, 7dvh, 52px);
  aspect-ratio: 470 / 319;
  background-color: var(--ab-smoke);
  -webkit-mask: url("img/ab-monogram.png") center / contain no-repeat;
  mask: url("img/ab-monogram.png") center / contain no-repeat;
}

.product-list {
  width: 100%;
  margin-top: calc(var(--row-h) / 4);
}

.product {
  --accent: transparent;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: transparent;
  scroll-margin-top: 12px;
  transition: background-color 280ms var(--ease);
}

.product:first-child {
  border-top: 1px solid var(--line);
}

.product.is-open {
  border-top: 2px solid var(--accent);
  background-color: color-mix(in srgb, var(--accent) 5%, var(--bg));
}

.product-header {
  position: relative;
  min-height: var(--row-h);
  padding-block: 8px;
  transition: padding 280ms var(--ease);
}

.product.is-open .product-header {
  padding-top: clamp(16px, 4vw, 24px);
  padding-bottom: 12px;
}

.product-toggle {
  position: relative;
  display: grid;
  width: 100%;
  min-height: calc(var(--row-h) - 16px);
  grid-template-columns: clamp(40px, 11vw, 56px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2.5vw, 14px);
  padding: 0 clamp(136px, 40vw, 176px) 0 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.product.is-open .product-toggle {
  min-height: clamp(56px, 14vw, 72px);
}

.product-thumb {
  display: block;
  width: clamp(40px, 11vw, 56px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--photo-bg);
  object-fit: cover;
}

.product-copy {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
}

.product-name {
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 6.6vw, 30px);
  font-weight: 500;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-subtitle {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-link {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  display: inline-flex;
  min-height: clamp(38px, 10.5vw, 44px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px clamp(10px, 3.5vw, 18px);
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: background-color 200ms ease, color 200ms ease;
}

.buy-link:hover,
.buy-link:active {
  background: var(--ink);
  color: #fff;
}

.buy-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.price {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0;
  white-space: nowrap;
}

.currency {
  font-size: .9em;
}

.buy-link:hover .price,
.buy-link:active .price {
  color: #fff;
}

.buy-link.is-out-of-stock {
  max-width: clamp(136px, 40vw, 190px);
  min-height: 44px;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px 8px;
  padding-inline: 12px;
  white-space: normal;
}

.buy-link.is-out-of-stock .buy-label {
  letter-spacing: .04em;
  line-height: 1.15;
  text-transform: none;
  white-space: normal;
}

.buy-link.is-out-of-stock .price {
  font-size: 11px;
}

.product-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 280ms var(--ease), opacity 280ms var(--ease);
}

.product.is-open .product-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.product-panel-clip {
  min-height: 0;
  overflow: hidden;
}

.product-content {
  padding: 8px 0 clamp(20px, 6vw, 32px);
}

.gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 68dvh;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--photo-bg);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  background: var(--photo-bg);
  object-fit: contain;
  scroll-snap-align: start;
  opacity: 0;
  transition: opacity 300ms ease;
}

.gallery-slide.is-loaded {
  opacity: 1;
}

.gallery-dots {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gallery-dot {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A9A39C;
  content: "";
}

.gallery-dot[aria-current="true"]::before {
  background: var(--ink);
}

.product-description {
  margin: clamp(12px, 3vw, 20px) 0 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(17px, 4.8vw, 21px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.product-rooms {
  margin: clamp(12px, 3vw, 20px) 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.contact-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: clamp(12px, 3vw, 20px) auto 0;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.contact-link:hover {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (min-width: 768px) {
  .page-shell {
    width: clamp(480px, 46vw, 640px);
  }

  .gallery {
    max-height: 68dvh;
  }
}

@media (orientation: landscape) and (max-width: 767px) {
  .gallery {
    max-height: 80dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}