:root {
  --wax: #efe5d3;
  --rim: #d6c6a8;
  --ink: #2b2018;
  --soft: rgba(43, 32, 24, 0.56);
  --line: rgba(43, 32, 24, 0.16);
  --accent: #c66f24;
  --tall: 100vh;
}
@supports (height: 100lvh) { :root { --tall: 100lvh; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #17110c; }
body {
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.scene { position: relative; height: calc(var(--tall) * 3.2); }
.stage { position: sticky; top: 0; height: var(--tall); overflow: hidden; background: #17110c; }

/* the photo */
.shot { position: absolute; inset: 0; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.shot__shade { position: absolute; inset: 0; background: linear-gradient(rgba(23, 17, 12, 0) 45%, rgba(23, 17, 12, 0.62)); }

/* what you buy, on the photo */
.buy { position: absolute; left: clamp(16px, 5vw, 56px); right: clamp(16px, 5vw, 56px); bottom: clamp(16px, 6vh, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; align-items: end; color: #fff6e8; }
.buy p { overflow: hidden; }
.buy p span { display: block; }
.buy__name { grid-column: 1; font-size: clamp(22px, min(4.4vw, 7vh), 46px); line-height: 1.05; font-weight: 640; font-stretch: 112%; letter-spacing: -0.02em; }
.buy__meta { grid-column: 1; margin-top: 4px; font-size: clamp(11.5px, 1.3vw, 14px); color: rgba(255, 246, 232, 0.72); }
.buy__btn { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 18px; border-radius: 23px; color: #fff6e8; text-decoration: none; font-size: 14px; font-weight: 650; white-space: nowrap; background: rgba(40, 28, 18, 0.5); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255, 246, 232, 0.2), inset 0 1px 0 rgba(255, 246, 232, 0.25); transition: background-color 0.25s; }
.buy__btn b { display: grid; place-items: center; height: 30px; padding: 0 11px; border-radius: 15px; background: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.buy__btn:focus-visible { outline: 2px solid #fff6e8; outline-offset: 3px; }
@media (hover: hover) { .buy__btn:hover { background: rgba(40, 28, 18, 0.72); } }

/* the wax: both layers are cut by the same melting edge, the script writes it */
.wax { position: absolute; inset: 0; background: var(--wax); will-change: clip-path; }
.wax--rim { background: linear-gradient(var(--rim), #c9b792); }
.wax:not(.wax--rim) { background: radial-gradient(120% 80% at 30% 0%, #f7efe1, var(--wax) 60%); }
.wax:not(.wax--rim)::after { content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: multiply; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .42 0 0 0 0 .3 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

.label { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; padding: clamp(16px, 5vh, 48px) clamp(16px, 5vw, 56px) clamp(14px, 4.5vh, 44px); }
.label__brand { font-size: clamp(11px, 1.2vw, 13.5px); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.label__title { align-self: center; font-size: clamp(44px, min(13.5vw, 21vh), 190px); line-height: 0.9; font-weight: 720; font-stretch: 78%; letter-spacing: -0.035em; }
.label__title span { display: block; }
.label__title span + span { color: var(--accent); font-stretch: 118%; font-weight: 420; letter-spacing: -0.045em; }
.label__notes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(8px, 2vw, 28px); padding-top: clamp(8px, 1.6vh, 14px); border-top: 1px solid var(--line); font-size: clamp(12px, 1.35vw, 15.5px); font-weight: 600; }
.label__notes span { display: block; margin-bottom: 2px; font-size: 0.8em; font-weight: 500; color: var(--soft); }
.label__hint { display: flex; align-items: center; gap: 8px; margin-top: clamp(10px, 3vh, 28px); font-size: clamp(11.5px, 1.2vw, 13.5px); color: var(--soft); }
.label__hint svg { width: 11px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 520px) {
  .buy { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .buy__btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .buy__btn { transition: none; } }
