@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: Manrope, system-ui, sans-serif;
  color: #f4ede1;
  background: #000;
  --gold: #efc978;
  --line: #dba95366;
  --muted: #c3b9a9;
  --edge: clamp(24px, 4.4vw, 64px);
}

* { box-sizing: border-box; }
body { margin: 0; }
button { color: inherit; font: inherit; }

.journey {
  min-height: calc(100svh + var(--wheel-travel, 3000px));
}

.scene {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 480px;
  isolation: isolate;
  overflow: clip;
  background: #000;
  padding-inline: var(--edge);
}

.night, .meteor-track {
  position: absolute;
  pointer-events: none;
}

.night {
  inset: 0;
  container-type: size;
  overflow: hidden;
  background: #000;
}

.night-art {
  position: absolute;
  top: 50%;
  left: 0;
  width: max(100cqw, calc(100cqh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  transform: translateY(-50%);
  background: url("assets/night.webp") left top / 100% 100% no-repeat;
}

.night-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(.22, 1, .36, 1);
}

.night-video.is-playing { opacity: 1; }

.meteor-track {
  top: 13%;
  left: 35%;
  width: 7%;
  transform: rotate(-29deg);
}

.meteor-track:nth-of-type(2) { top: 20%; left: 37%; --meteor-delay: 4s; }
.meteor-track:nth-of-type(3) { top: 33%; left: 35%; --meteor-delay: 7.5s; }

.meteor-track span {
  display: block;
  width: 100%;
  height: 2px;
  opacity: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, #fff4d6, #e9b963bb 23%, transparent);
  filter: drop-shadow(-3px 0 5px #ffc176bf);
  animation: meteor 11s var(--meteor-delay, 1.2s) infinite;
}

@keyframes meteor {
  0% { opacity: 0; transform: translateX(0); }
  3% { opacity: .95; }
  12%, 100% { opacity: 0; transform: translateX(-250%); }
}

.masthead, .scene-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 64px;
  gap: 16px;
}

.masthead {
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: #f6e6bf;
  text-shadow: 0 1px 16px #c58a3847;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: .16em;
  white-space: nowrap;
}

.wordmark span {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
}

.masthead h1, .formats h3 {
  margin: 0;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.showcase { display: grid; min-height: 0; align-items: center; }

.stage {
  position: absolute;
  inset: 0;
  isolation: isolate;
  pointer-events: none;
}

.wheel-ring {
  --focus-angle: 0;
  --diameter: max(155svh, 76vw);
  position: absolute;
  left: calc(55.5% - var(--diameter) / 2);
  top: 50%;
  width: var(--diameter);
  aspect-ratio: 1;
  border: 1px solid #e6b45ab5;
  border-radius: 50%;
  box-shadow: 0 0 16px #d88b3038, inset 0 0 10px #e4b15522;
  transform: translate(-50%, -50%);
}

.wheel-ring::before, .wheel-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #e9b65a5e;
  border-radius: inherit;
}

.wheel-ring::after {
  inset: -6px;
  border-style: dotted;
  border-color: #e9b65a8a;
}

.bottles { position: absolute; inset: 0; }

.bottle {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: clamp(40px, 7vw, 104px);
  height: clamp(42px, 11svh, 106px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.bottle img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(var(--bottle-light, 1));
  transition: filter 250ms;
}

.bottle[aria-current="true"] img {
  filter: brightness(var(--bottle-light, 1)) drop-shadow(0 0 24px #edaa4840) drop-shadow(0 16px 20px #0009);
}

.bottle:hover img { filter: brightness(1.25); }

.bottle:focus-visible, .arrows button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.info {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(33%, 460px);
  min-width: 240px;
}

.product {
  display: grid;
  align-items: end;
}

.product-copy { grid-area: 1 / 1; }
.product-copy[aria-hidden="true"] { visibility: hidden; }

.product h2 {
  margin: 8px 0 12px;
  color: #f6ebd9;
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 1.04;
  font-weight: 390;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.product h2.long-name { font-size: clamp(1.875rem, 2.8vw, 3rem); }

.product-type {
  margin: 0;
  color: var(--gold);
  font-size: .75rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.description {
  max-width: 365px;
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.bottle-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 16px 0 20px;
}

.bottle-price span {
  color: var(--muted);
  font-size: .75rem;
}

.bottle-price strong {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.formats {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.decants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 355px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.decant {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.decant + .decant { border-left: 1px solid #d7b88624; }

.vial {
  display: grid;
  align-items: end;
  justify-items: center;
  width: 100%;
  height: clamp(82px, 17svh, 165px);
  margin-bottom: 4px;
}

.vial-body {
  position: relative;
  width: max-content;
  height: 100%;
  min-height: 0;
}

.vial img { display: block; width: auto; height: 100%; }
.decant:first-child .vial-body { height: 61%; }
.decant:nth-child(2) .vial-body { height: 81%; }

.vial-label {
  position: absolute;
  top: 59%;
  left: 50%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  width: 94%;
  min-height: 25%;
  padding: 2px 1px;
  transform: translate(-50%, -3%);
  background: var(--label-paper, #e7d5ab);
  color: var(--label-ink, #291b10);
  border-block: 1px solid #e8b95e;
  box-shadow: 0 1px 4px #0006;
  text-align: center;
  overflow: hidden;
}

.vial-mark {
  font: 700 clamp(3.4px, .48vw, 6px)/1.05 Manrope, sans-serif;
  overflow-wrap: anywhere;
}

.vial-name {
  font: 600 clamp(3.2px, .37vw, 5px)/1.02 Manrope, sans-serif;
  overflow-wrap: anywhere;
}

.decant[data-finish="gold"] { --label-paper: #dab46c; }
.decant[data-finish="rose"] { --label-paper: #bc827d; }
.decant[data-finish="ruby"] { --label-paper: #671418; --label-ink: #f6da9f; }
.decant[data-finish="onyx"] { --label-paper: #171411; --label-ink: #e9c57b; }
.decant[data-finish="petrol"] { --label-paper: #15434a; --label-ink: #f1cf86; }

.decant-volume {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.decant-price {
  color: #ffe1a6;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.scene-footer {
  border-top: 1px solid var(--line);
}

.scroll-hint, .price-caption {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-hint span { color: var(--gold); font-size: 1.125rem; }

.arrows { display: flex; gap: 8px; align-items: center; }

.arrows button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #191107;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.125rem;
  transition: background-color 250ms, transform 250ms;
}

.arrows button:not(:disabled):hover { background: #d7b88624; }
.arrows button:not(:disabled):active { transform: scale(.96); }
.arrows button:disabled { opacity: .38; cursor: default; }

.arrows output {
  min-width: 52px;
  text-align: center;
  color: var(--gold);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 760px) {
  :root { --edge: clamp(12px, 5vw, 24px); }

  .masthead, .scene-footer { min-height: 52px; gap: 8px; }
  .wordmark { font-size: .9375rem; letter-spacing: .11em; }
  .wordmark span, .masthead h1 { font-size: .6875rem; }

  .showcase { align-items: end; }

  .night {
    mask-image: linear-gradient(black 46%, transparent 83%);
  }

  .night-art {
    top: 0;
    width: calc(100% * 1672 / 760);
    transform: none;
  }

  .wheel-ring {
    --focus-angle: 90;
    --diameter: max(140vw, 69svh);
    left: 50%;
    top: calc(50% - var(--diameter) / 2);
  }

  .wheel-ring::before { inset: 6px; }
  .wheel-ring::after { inset: -4px; }

  .bottle { width: clamp(28px, 11vw, 54px); height: clamp(33px, 7.8svh, 62px); }

  .info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
    align-items: end;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 184px;
    padding-bottom: 20px;
  }

  .product h2, .product h2.long-name {
    margin: 4px 0 8px;
    font-size: clamp(1.35rem, 5.2vw, 2.125rem);
    line-height: 1.04;
    text-wrap: wrap;
  }

  .product-type { font-size: .625rem; letter-spacing: .06em; }
  .description { font-size: .75rem; line-height: 1.45; }
  .bottle-price { margin: 8px 0 0; gap: 2px 8px; }
  .bottle-price span { font-size: .625rem; }
  .bottle-price strong { font-size: .875rem; }
  .formats { padding-top: 8px; }
  .formats h3 { font-size: .625rem; letter-spacing: .1em; }
  .decants { margin-top: 8px; gap: 3px; }
  .vial { height: clamp(57px, 10svh, 94px); margin-bottom: 0; }
  .decant-volume { font-size: .6875rem; }
  .decant-price { font-size: .6875rem; }
  .scroll-hint { font-size: .6875rem; gap: 4px; }
  .price-caption { max-width: 80px; text-align: center; font-size: .625rem; }
  .arrows { gap: 2px; }
  .arrows button { width: 36px; height: 36px; }
  .arrows output { min-width: 38px; font-size: .625rem; }
}

@media (max-width: 760px) and (max-height: 670px) {
  .wheel-ring { top: calc(37% - var(--diameter) / 2); }
  .bottle { height: clamp(32px, 6.8svh, 49px); }
  .info { min-height: 0; padding-bottom: 12px; }
}

@media (max-height: 560px) and (min-width: 761px) {
  .masthead, .scene-footer { min-height: 48px; }
  .bottle-price { margin-block: 8px; }
  .vial { height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .bottle img, .arrows button { transition: none; }
  .night-video, .meteor-track { display: none; }
}
