:root {
  --bg: #0a090d;
  --surface: #15121c;
  --surface-2: #1e1928;
  --text: #f6f1ff;
  --muted: #a69cb8;
  --line: #2c2538;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --pink: #ff4fa3;
  --pink-soft: #ff8cc6;
  --error: #ff6b81;
  --success: #6ee7b7;
  --radius: 10px;
  --display: 'Archivo Black', system-ui, sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* shop.js adds .ready once it has decided whether to show the coming-soon gate */
html:not(.ready) body { visibility: hidden; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--body);
}
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px 64px; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
img { max-width: 100%; display: block; }
::selection { background: var(--pink); color: var(--bg); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.error { color: var(--error); min-height: 1em; margin: .5rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 16px;
}
.logo {
  font-family: var(--display); font-size: 1.5rem; text-decoration: none; text-transform: lowercase; letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.site-header nav a:hover { color: var(--text); }
@media (max-width: 560px) { .site-header nav a { display: none; } }

.cart-button {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem var(--body); color: var(--bg);
  background: var(--pink); border: 0; border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
}
.cart-button:hover { background: var(--pink-soft); }
.cart-count { background: var(--bg); color: var(--pink); border-radius: 999px; min-width: 1.5em; padding: 0 6px; font-size: .85rem; text-align: center; }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); padding: 32px 16px; margin-top: auto;
  max-width: 1120px; width: 100%; margin-inline: auto;
}
.site-footer p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; max-width: 40ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.site-footer nav a { font-size: .9rem; color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }

/* Buttons */
.button {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  font: 600 1rem var(--body); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 20px;
}
.button:hover { border-color: var(--purple); }
.button--primary { background: linear-gradient(90deg, var(--purple-deep), var(--pink)); border: 0; color: #fff; }
.button--primary:hover:not(:disabled) { filter: brightness(1.1); }
.button--block { display: block; width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.icon-button { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--text); padding: 0 4px; }

/* Sticker mockup. .sticker is the size container; cqi units on the face
   and text are relative to it. */
.sticker { container-type: inline-size; width: 100%; }
.sticker-face {
  aspect-ratio: 3 / 1;
  display: grid; place-items: center;
  background: var(--s-bg); color: var(--s-fg);
  border: 1.2cqi solid var(--s-fg);
  outline: 1.4cqi solid var(--s-bg);
  border-radius: 2.5cqi;
  padding: 3cqi 5cqi;
  margin: 1.4cqi;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.9);
  text-align: center;
}
.sticker span { font-family: var(--display); font-size: var(--size, 8cqi); line-height: 1.02; text-wrap: balance; letter-spacing: .01em; }
.sticker--decal .sticker-face { background: transparent; border-color: transparent; outline: 0; box-shadow: none; }
.sticker-photo { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 1.5%/4.5%; box-shadow: 0 14px 30px -16px rgba(0,0,0,.9); }

/* Home */
.hero { padding: 48px 0 40px; max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); text-transform: uppercase; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 1.15rem; max-width: 52ch; color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.perks li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .95rem; color: var(--muted); }
.perks strong { color: var(--pink-soft); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--purple); transform: translateY(-2px); }
.card-art { padding: 20px 4px 24px; }
.card h3 { font-size: 1.1rem; margin: 0; }
.card p { margin: 0; }
.price { font-weight: 600; color: var(--pink-soft); }
.price.big { font-size: 1.5rem; margin: 0 0 .5rem; }

/* Product */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; padding-top: 32px; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.product-art { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12% 8%; }
.product-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.toggle { border: 0; padding: 0; margin: 20px 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.toggle label { flex: 1; min-width: 120px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span {
  display: flex; flex-direction: column; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px; font-weight: 600; background: var(--surface);
}
.toggle small { font-weight: 400; color: var(--muted); }
.toggle input:checked + span { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, var(--surface)); }
.toggle input:checked + span small { color: var(--pink-soft); }
.toggle input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.callout {
  background: color-mix(in srgb, var(--purple) 14%, var(--surface)); border-left: 3px solid var(--purple);
  padding: 10px 14px; border-radius: 4px; font-size: .95rem;
}
.assurances { list-style: none; padding: 0; display: flex; gap: 20px; font-size: .95rem; color: var(--muted); }
.assurances li::before { content: '✓ '; font-weight: 600; color: var(--pink); }

/* Text pages */
.narrow { max-width: 720px; padding-top: 32px; }
.prose section { margin-top: 40px; scroll-margin-top: 24px; }
.prose h2 { color: var(--pink-soft); }
.prose p, .prose li { color: #d9d1e6; }
.prose li { margin: .35rem 0; }
.prose a { color: var(--pink-soft); }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 11;
  width: min(420px, 100vw);
  display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer h2 { font-size: 1.3rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer > footer { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb .sticker-face { box-shadow: none; }
.cart-info { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.cart-info a { font-weight: 600; text-decoration: none; }
.cart-amount { font-weight: 600; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 1rem; line-height: 1; color: var(--text); }
.qty button:hover { border-color: var(--pink); }
.totals { margin: 0 0 8px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .discount { color: var(--success); font-weight: 600; }
.totals .grand { font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.nudge {
  background: color-mix(in srgb, var(--purple) 18%, var(--surface)); border: 1px solid var(--purple);
  border-radius: var(--radius); padding: 8px 12px; font-weight: 600; font-size: .95rem; margin: 0 0 12px;
}

/* Coming soon gate */
html.gated body > :not(.gate) { display: none !important; }
.gate { flex: 1; display: grid; place-items: center; padding: 48px 16px; text-align: center; }
.gate-inner { max-width: 560px; }
.gate .logo { display: inline-block; margin: 0 0 32px; }
.gate h1 { font-size: clamp(3rem, 12vw, 6rem); text-transform: uppercase; }
.gate h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate p { font-size: 1.1rem; }
.gate-contact a { color: var(--pink-soft); }
.gate-login { margin-top: 48px; color: var(--muted); font-size: .9rem; }
.gate-login summary { cursor: pointer; display: inline-block; }
.gate-login form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.gate-login input {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; min-width: 0; flex: 1 1 180px; max-width: 260px;
}
.gate-login .button { padding: 10px 18px; }
.gate-login .error { flex-basis: 100%; }

.preview-bar {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  background: linear-gradient(90deg, var(--purple-deep), var(--pink)); color: #fff;
  font-size: .85rem; font-weight: 600; padding: 6px 16px; text-align: center;
}
.preview-bar button { font: inherit; color: #fff; background: rgba(0,0,0,.25); border: 0; border-radius: 999px; padding: 2px 12px; cursor: pointer; }
