:root {
  --cream: #f2eee7;
  --cream-2: #e8e2d7;
  --ink: #0e0e0e;
  --thread: #c7b49a;
  --muted: #6b665e;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Archivo', system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.label, .eyebrow, .opt__label, .btn, .accordion summary, .gate__drop, .gate__form button, .gate__list button, .countdown small {
  font-stretch: 125%; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12px;
}

/* ---------- drop gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--cream); display: grid; place-items: center; padding: 24px; overflow-y: auto; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.gate.is-leaving { opacity: 0; visibility: hidden; }
.gate[hidden], .maybe-open .gate { display: none; }
body.locked > header, body.locked > main, body.locked > footer { display: none; }
.gate__inner { width: min(100%, 400px); text-align: center; animation: rise 1s var(--ease) both; }
.gate__logo { width: min(78%, 300px); margin: 0 auto; }
.gate__drop { margin: 30px 0 34px; color: var(--thread); letter-spacing: .4em; }
.gate__form { display: flex; border: 1.5px solid rgba(242, 238, 231, .35); border-radius: 999px; padding: 5px; transition: border-color .3s var(--ease); }
.gate__form:focus-within { border-color: var(--cream); }
.gate__form input, .gate__list input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--cream); font: inherit; font-size: 16px; padding: 12px 18px; outline: none; }
.gate__form input { letter-spacing: .12em; }
.gate__form input::placeholder, .gate__list input::placeholder { color: rgba(242, 238, 231, .45); letter-spacing: .04em; }
.gate__form button { background: var(--cream); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 24px; transition: transform .3s var(--ease); }
.gate__form button:hover { transform: scale(1.04); }
.gate__msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: #d9a89a; }
.gate__list { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(242, 238, 231, .12); }
.gate__list > p:first-child { margin: 0 0 12px; font-size: 14px; color: rgba(242, 238, 231, .6); }
.gate__list-row { display: flex; border-bottom: 1px solid rgba(242, 238, 231, .3); }
.gate__list input { padding: 10px 0; font-size: 15px; }
.gate__list button { background: none; border: 0; color: var(--thread); padding: 10px 0 10px 12px; font-size: 11px; }
.gate__list .gate__msg { color: rgba(242, 238, 231, .7); }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.countdown { display: flex; justify-content: center; gap: 22px; margin: -10px 0 34px; }
.countdown div { display: flex; flex-direction: column; align-items: center; }
.countdown span { font-size: 34px; font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-size: 9px; color: rgba(242, 238, 231, .5); margin-top: 4px; }
.countdown[hidden] { display: none; }

/* ---------- store ---------- */
.header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: center; align-items: center; padding: 14px clamp(18px, 4vw, 44px); background: rgba(242, 238, 231, .9); backdrop-filter: blur(10px); }
.header__logo img { height: 40px; width: auto; }

.product { max-width: 1160px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(18px, 4vw, 44px) 80px; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; animation: rise .9s var(--ease) both; }
.gallery { position: sticky; top: 84px; }
.gallery__main { border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--cream-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease); }
.gallery__main img.fading { opacity: 0; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumb { padding: 0; border: 1.5px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--cream-2); transition: border-color .3s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }

.buy { padding-top: 8px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); letter-spacing: .3em; }
.buy h1 { margin: 0; font-size: clamp(44px, 5.5vw, 72px); font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; line-height: .95; }
.buy__sub { margin: 14px 0 34px; font-size: 18px; color: var(--muted); }
.buy__sub strong { color: var(--ink); font-stretch: 125%; }
.opt { margin-bottom: 26px; }
.opt__label { margin-bottom: 12px; }
.pills { display: flex; gap: 10px; }
.pill { width: 64px; height: 52px; border-radius: 12px; border: 1.5px solid rgba(14, 14, 14, .2); background: transparent; font-size: 16px; font-weight: 700; font-stretch: 125%; transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn { width: 100%; padding: 18px 24px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cream); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

.accordion { margin-top: 34px; }
.accordion details { border-top: 1px solid rgba(14, 14, 14, .14); }
.accordion details:last-child { border-bottom: 1px solid rgba(14, 14, 14, .14); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 18px 0; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 18px; line-height: 1; letter-spacing: 0; transition: transform .35s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion p { margin: 0 0 18px; color: #3a3732; font-size: 15px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 18px; }
.size-table th { text-align: left; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 6px 0; font-weight: 600; }
.size-table td { padding: 8px 0; border-top: 1px solid rgba(14, 14, 14, .08); }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(18px, 4vw, 44px); border-top: 1px solid rgba(14, 14, 14, .1); font-size: 13px; color: var(--muted); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* ---------- buy + thank you ---------- */
.buy__msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.thanks { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(14, 14, 14, .6); animation: fade .4s var(--ease); }
.thanks[hidden] { display: none; }
.thanks__card { width: min(100%, 420px); background: var(--cream); border-radius: 20px; padding: 36px 30px; text-align: center; animation: rise .5s var(--ease); }
.thanks__card h2 { margin: 0 0 12px; font-size: 32px; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; }
.thanks__card p { margin: 0 0 24px; color: #3a3732; }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .header__logo img { height: 34px; }
}
