/* ==========================================================================
   Bandit Power — styles
   Palette: #D8C5D5 lilac · #E0D6CA cream · #15252E ink · #7A1315 oxblood · #A5205F magenta
   ========================================================================== */

:root {
  --lilac: #D8C5D5;
  --cream: #E0D6CA;
  --ink: #15252E;
  --oxblood: #7A1315;
  --magenta: #A5205F;

  --night: #330a1c;          /* deep burgundy page background */
  --slate: #3a3a3a;          /* spray-paint grey */
  --paper: #ebeae7;
  --paper-rim: #fbfbfa;
  --card-cream: #ece5dc;

  --font-head: "Besley", Georgia, "Times New Roman", serif;
  --font-body: "auster", "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;

  --header-h: 84px;
  --gutter: 20px;
  --radius-card: 28px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 -.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--cream);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mottled burgundy, pinned to the viewport so long pages don't stretch it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    var(--noise),
    radial-gradient(ellipse 55% 35% at 12% 18%, rgba(165, 32, 95, 0.42), transparent 70%),
    radial-gradient(ellipse 45% 40% at 88% 48%, rgba(122, 19, 21, 0.6), transparent 70%),
    radial-gradient(ellipse 60% 35% at 35% 88%, rgba(165, 32, 95, 0.3), transparent 70%),
    radial-gradient(ellipse 35% 25% at 70% 10%, rgba(10, 0, 4, 0.55), transparent 70%),
    radial-gradient(ellipse 30% 30% at 25% 60%, rgba(10, 0, 4, 0.4), transparent 70%),
    var(--night);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--oxblood); padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Textures ---------- */

.tex-slate {
  background:
    var(--noise),
    radial-gradient(ellipse 70% 45% at 18% 35%, rgba(150, 150, 150, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 65%, rgba(130, 130, 130, 0.45), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(15, 15, 15, 0.65), transparent 70%),
    var(--slate);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: var(--noise), var(--slate);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 14px;
  position: relative;
  transition: transform 0.2s ease;
}
.icon-btn:hover { transform: rotate(-6deg) scale(1.06); }

.burger { width: 40px; display: grid; gap: 7px; }
.burger span { display: block; height: 4px; border-radius: 4px; background: #f4f1ee; }

.site-header__logo { display: block; justify-self: center; transition: transform 0.25s ease; }
.site-header__logo:hover { transform: rotate(-3deg) scale(1.04); }
.site-header__logo img { height: 62px; width: auto; }

.sack-btn { justify-self: end; }
.sack-btn img { height: 46px; width: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }

/* ---------- Torn-paper note ---------- */

.note {
  position: relative;
  width: min(100%, 580px);
  min-height: min(112vw, 66svh);
  display: grid;
  align-content: center;
  padding: 22% 9% 20%;
  text-align: center;
  color: var(--ink);
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.5));
  isolation: isolate;
}

/* Two layers with different "tears": a bright fibrous rim and the grey-white sheet. */
.note::before,
.note::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.note::before {
  inset: 0;
  background: var(--paper-rim);
  filter: url(#torn-rim);
}
.note::after {
  inset: 14px 12px 16px 14px;
  background:
    var(--noise),
    linear-gradient(160deg, #f1f0ee 0%, #e4e3e0 60%, #dcdbd8 100%);
  background-blend-mode: soft-light, normal;
  filter: url(#torn-body);
}

.note__pin {
  position: absolute;
  top: 9%;
  right: 24%;
  width: clamp(44px, 11vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #f1f1f1 45%, #d3d3d3 100%);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.28),
    3px 3px 0 rgba(0, 0, 0, 0.06),
    inset 0 -3px 5px rgba(0, 0, 0, 0.08);
}

.note h1,
.note h2 {
  font-size: clamp(1.15rem, 5vw, 2.05rem);
  letter-spacing: 0.03em;
  margin-bottom: 1.1em;
}

.note__lines p {
  font-size: clamp(0.95rem, 3.9vw, 1.2rem);
  letter-spacing: 0.06em;
  line-height: 2.4;
}

@media (min-width: 700px) {
  .note { width: min(100%, 620px); padding: 120px 64px 104px; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 24px var(--gutter) 84px;
  position: relative;
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f4f1ee;
  opacity: 0.8;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.scroll-cue::after { content: "↓"; font-size: 1.2rem; animation: bob 1.8s ease-in-out infinite; }
.scroll-cue:hover { opacity: 1; }

@keyframes bob { 50% { transform: translateY(5px); } }

.hero--letter { min-height: 0; padding: 36px var(--gutter) 72px; }

/* ---------- Section titles ---------- */

.section { padding: 64px var(--gutter) 88px; }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  color: #f4f1ee;
  margin-bottom: 36px;
}

/* ---------- Loot grid ---------- */

.loot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .loot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1040px) {
  .loot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px 18px 20px;
  border: 2px solid var(--magenta);
  border-radius: var(--radius-card);
  background: rgba(15, 0, 6, 0.22);
  color: #f4f1ee;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.card:hover,
.card:focus-visible {
  border-color: #d2468a;
  background: rgba(165, 32, 95, 0.14);
  transform: translateY(-3px);
}

.card__img {
  aspect-ratio: 3 / 4;
  padding: 0 8%;
  margin-bottom: 14px;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
}
.card:hover .card__img img { transform: rotate(-4deg) scale(1.05); }

.card__name { font-size: 1.02rem; letter-spacing: 0.03em; margin-top: auto; }
.card__variant { font-size: 0.85rem; color: var(--lilac); letter-spacing: 0.05em; line-height: 1.5; margin-top: 2px; }
.card__price { font-family: var(--font-head); font-weight: 600; margin-top: 6px; }

.card--wide { grid-column: span 2; text-align: center; }
.card--wide .card__img { aspect-ratio: 16 / 9; }
.card--wide .card__img { padding: 0 5%; }

.card--soon {
  border-style: dashed;
  border-color: rgba(216, 197, 213, 0.5);
  background: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.card--soon:hover { transform: none; background: none; border-color: rgba(216, 197, 213, 0.5); }
.card--soon img { width: 52px; opacity: 0.9; transform: rotate(-8deg); }
.card--soon p { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; line-height: 1.5; color: var(--lilac); }

/* ---------- Buttons & fields ---------- */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  padding: 14px 28px;
  border: 0;
  border-radius: 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn--cream { background: var(--card-cream); color: var(--oxblood); }
.btn--cream:hover { background: #fff; }

.btn--magenta { background: var(--magenta); color: #fbf6f2; }
.btn--magenta:hover { background: var(--oxblood); }

.btn--block { width: 100%; }

.field {
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-size: 1.05rem;
}
.field::placeholder { color: rgba(21, 37, 46, 0.55); }
.field:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(165, 32, 95, 0.25); }

/* ---------- Product page ---------- */

.product-page { padding: 18px var(--gutter) 40px; max-width: 1080px; margin: 0 auto; }

.back-link {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 0 14px -8px;
  border-radius: 16px;
  transition: transform 0.2s ease;
}
.back-link:hover { transform: translateX(-4px); }
.back-link img { width: 40px; height: auto; }

.product {
  border: 2px solid var(--magenta);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 0, 6, 0.22);
}

.gallery { background: var(--card-cream); position: relative; }

.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1 / 0.82;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6%;
  padding: 8% 8% 13%;
}
.gallery__slide img {
  min-width: 0;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(21, 37, 46, 0.18));
}
.gallery__slide--pair img { max-width: 44%; }

.gallery__dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.gallery__dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid var(--oxblood);
  border-radius: 50%;
  background: transparent;
}
.gallery__dots button[aria-current="true"] { background: var(--oxblood); }

.product__info { padding: 30px 26px 34px; }
.product__name { font-size: clamp(1.25rem, 5vw, 1.7rem); color: #f4f1ee; }
.product__variant { color: var(--lilac); margin-top: 4px; letter-spacing: 0.06em; }
.product__price { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin: 14px 0 18px; color: #f4f1ee; }
.product__desc { line-height: 2; }
.product__materials { margin-top: 6px; line-height: 2; }
.product__info .btn { margin-top: 30px; }

@media (min-width: 880px) {
  .product { display: grid; grid-template-columns: 1.1fr 1fr; }
  .gallery__slide { aspect-ratio: auto; min-height: 560px; height: 100%; }
  .gallery__track { height: 100%; }
  .product__info { padding: 56px 48px; align-self: center; }
}

.missing { text-align: center; padding: 80px 0; }
.missing h1 { font-size: 1.8rem; margin-bottom: 14px; }
.missing .btn { margin-top: 28px; }

.more-loot { padding-top: 72px; }
.more-loot .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }

/* ---------- About page ---------- */

.letter { text-align: left; padding: 26% 12% 18%; min-height: auto; }
@media (min-width: 700px) {
  .letter { width: min(100%, 680px); padding: 104px 72px 72px; }
}
.letter h1 { text-align: center; margin-bottom: 1.2em; }
.letter p { line-height: 1.95; margin-bottom: 1em; }
.letter .sign-off { margin-top: 1.6em; margin-bottom: 0.2em; }
.letter .signature {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--magenta);
  letter-spacing: 0.02em;
  transform: rotate(-4deg);
  transform-origin: left;
  margin-top: 0.1em;
}

.about { max-width: 720px; margin: 0 auto; display: grid; gap: 28px; }

.about-block {
  position: relative;
  border: 2px solid var(--magenta);
  border-radius: var(--radius-card);
  padding: 34px 26px 32px;
  background: rgba(15, 0, 6, 0.22);
}
.about-block h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); color: #f4f1ee; margin-bottom: 16px; padding-right: 96px; }
.about-block p { line-height: 1.95; }
.about-block p + p { margin-top: 1em; }

.about-block__gem {
  position: absolute;
  width: auto;
  height: 92px;
  top: -44px;
  right: 20px;
  transform: rotate(12deg);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.about-block__gem--wide { height: 58px; top: -28px; transform: rotate(-8deg); }

.about-outro { text-align: center; padding-top: 18px; }
.about-outro p { line-height: 2; }
.about-outro .btn { margin-top: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px var(--gutter) 40px;
  text-align: center;
  border-top: 1px solid rgba(165, 32, 95, 0.45);
  background: rgba(10, 0, 4, 0.35);
  font-size: 0.92rem;
}
.site-footer img { width: 120px; margin: 0 auto 18px; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 18px; }
.site-footer nav a { text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; font-size: 0.85rem; }
.site-footer nav a:hover { color: var(--lilac); text-decoration: underline; text-underline-offset: 4px; }
.site-footer small { display: block; color: rgba(224, 214, 202, 0.65); font-size: 0.82rem; }

/* ---------- Drawer (menu) ---------- */

.drawer {
  margin: 0;
  padding: 0;
  border: 0;
  width: min(86vw, 400px);
  height: 100%;
  max-height: none;
  max-width: none;
  inset: 0 auto 0 0;
  color: #f4f1ee;
  background:
    var(--noise),
    radial-gradient(ellipse 80% 40% at 20% 10%, rgba(165, 32, 95, 0.35), transparent 70%),
    var(--night);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
}
.drawer[open] { display: flex; flex-direction: column; animation: slide-in 0.28s cubic-bezier(.2, .8, .2, 1); }
.drawer::backdrop { background: rgba(10, 0, 4, 0.6); backdrop-filter: blur(3px); }

@keyframes slide-in { from { transform: translateX(-100%); } }

.drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 0 22px; }
.drawer__top img.logo { height: 54px; width: auto; }
.icon-btn img.close-icon { width: 30px; height: auto; }

.drawer nav { display: grid; padding: 40px 26px; gap: 6px; }
.drawer nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.drawer nav a:hover { color: var(--lilac); transform: translateX(6px); }

.drawer__foot { margin-top: auto; padding: 24px 26px 32px; color: var(--lilac); font-size: 0.95rem; line-height: 1.8; }

/* ---------- Coming-soon modal ---------- */

.modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 72px var(--gutter) 32px;
  border: 0;
  background: transparent;
  overflow-y: auto;
}
.modal[open] { display: grid; place-items: center; animation: fade-in 0.25s ease; }
.modal::backdrop { background: rgba(20, 3, 10, 0.8); backdrop-filter: blur(4px); }

@keyframes fade-in { from { opacity: 0; } }

.modal__close { position: fixed; top: 16px; right: 16px; }

.modal .note {
  min-height: 0;
  padding: 18% 12% 15%;
  width: min(100%, 520px);
  min-width: 0;
  animation: drop-in 0.4s cubic-bezier(.34, 1.4, .64, 1);
}
@media (min-width: 700px) { .modal .note { padding: 84px 56px 64px; } }
@keyframes drop-in { from { transform: translateY(-30px) rotate(2deg); opacity: 0; } }

.modal h2 { margin-bottom: 0.9em; line-height: 1.35; }
.modal .note__pin,
.letter .note__pin { top: 20px; right: 16%; width: 46px; }
.modal .note__copy { line-height: 1.9; letter-spacing: 0.05em; margin-bottom: 26px; }
.modal form { display: grid; gap: 14px; }
.modal .form-error { color: var(--oxblood); font-size: 0.95rem; min-height: 1.4em; font-weight: 700; }
.modal .check { width: 46px; margin: 0 auto 18px; transform: rotate(6deg); }
.modal [hidden] { display: none !important; }

/* Honeypot for spam bots */
.hp { position: absolute; left: -9999px; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Small screens ---------- */

@media (max-width: 380px) {
  :root { --gutter: 16px; --header-h: 76px; }
  .site-header__logo img { height: 54px; }
  .card { padding: 18px 14px 16px; border-radius: 22px; }
  .loot-grid { gap: 14px; }
}
