/* Collectors Canyon — HOLD vault museum
   Live storefront language, museum composition.
   Floor #0e0b0c · panel #1e1a24 · terracotta CTA · gold chips */

:root {
  --ink: #100b09;
  --floor: #0e0b0c;
  --panel: #1e1a24;
  --dusk-700: #2c2433;
  --dusk-800: #211b28;
  --dusk-900: #18131d;
  --dusk-950: #0f0b13;
  --sand-50: #faf6f0;
  --sand-100: #f3ebe0;
  --sand-200: #e8d9c5;
  --sand-300: #d8bfa0;
  --sand-400: #c4a07a;
  --sand-500: #b08456;
  --terra: #c2673a;
  --terra-hot: #d2792f;
  --terracotta-500: #c96f3f;
  --terracotta-600: #b0572b;
  --gold-300: #e9c46a;
  --gold-500: #d4a017;
  --hair: rgba(232, 217, 197, 0.1);
  --radius: 0.9rem;
  --radius-panel: 1.35rem;
  --shadow-slab: 0 18px 50px -18px rgba(0, 0, 0, 0.8);
  --display: Fraunces, "Times New Roman", serif;
  --body: Inter, system-ui, sans-serif;
  --p: 0;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--floor);
  color: var(--sand-50);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--gold-300); text-decoration: none; }
a:hover { color: var(--sand-50); }

button {
  font-family: inherit;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--terra);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 80;
  border-radius: 999px;
}
.skip:focus { top: 1rem; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-400);
  font-weight: 500;
}

.lede {
  margin: 0 0 1.6rem;
  color: var(--sand-300);
  max-width: 42ch;
  font-size: 0.95rem;
}

/* header — live mark + museum pills */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.15rem;
  background: rgba(14, 11, 12, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}

.mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--sand-50);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mark:hover { color: var(--sand-50); }
.mark__tri {
  color: var(--terra-hot);
  font-size: 0.7rem;
  margin-right: 0.2rem;
  position: relative;
  top: -0.08em;
}

.pills {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.pills a {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  color: var(--sand-200);
  font-size: 0.82rem;
  font-weight: 500;
}
.pills a.is-on,
.pills a:hover {
  background: var(--panel);
  color: var(--sand-50);
}

.top__hold {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-400);
  white-space: nowrap;
}

/* hero — live centered stack, museum copy */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.25rem 4.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(194, 103, 58, 0.1), transparent 55%),
    var(--floor);
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  color: var(--sand-50);
}

.hero__sub {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  color: var(--sand-300);
  font-size: 1.02rem;
}

.cta {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px -12px rgba(194, 103, 58, 0.8);
}
.cta:hover {
  background: var(--terra-hot);
  color: #fff;
}

.horizon {
  display: block;
  width: min(420px, 86vw);
  margin: 2.1rem auto 0;
  overflow: visible;
}
.horizon circle,
.horizon path {
  fill: none;
  stroke: var(--terra);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.horizon circle { stroke-width: 1.5; }
.horizon--foot {
  width: min(360px, 80vw);
  margin: 0 auto 1.8rem;
  opacity: 0.75;
}

/* featured — live violet panel, photo right */
.feat-sec { padding: 0 0 3.5rem; }

.feat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 42%);
  gap: 2.2rem 2.6rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius-panel);
  padding: 2.2rem 3.2rem 2.6rem;
  box-shadow: var(--shadow-slab);
}

.feat__copy { min-width: 0; }

.feat__pills { margin: 0 0 0.85rem; }

.pill {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
}
.pill--terra {
  background: var(--terra);
  color: #fff;
}

.feat__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.feat__set,
.feat__cert,
.feat__pc {
  margin: 0.2rem 0 0;
  color: var(--sand-300);
  font-size: 0.92rem;
}

.feat__grade { margin: 0.75rem 0 0.35rem; }

.feat__pc { color: var(--gold-300); font-weight: 500; }

.feat__photo {
  min-width: 0;
}

.feat__arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 11, 12, 0.45);
  color: var(--sand-100);
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
}
.feat__arr:hover { background: rgba(14, 11, 12, 0.75); color: #fff; }
.feat__arr--prev { left: 0.55rem; }
.feat__arr--next { right: 0.55rem; }

.feat__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.feat__dots button {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--dusk-700);
}
.feat__dots button.is-on { background: var(--gold-500); }

/* chips */
.chip {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  background: var(--gold-500);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
}
.chip--keep {
  background: var(--terra);
  color: #fff;
}
.chip--ghost {
  background: transparent;
  color: var(--gold-300);
  border: 1px solid var(--dusk-700);
}

/* rotating slab */
.rs {
  perspective: 1200px;
  width: 100%;
}
.rs__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dusk-900);
  box-shadow: var(--shadow-slab);
  transform-style: preserve-3d;
  will-change: transform;
}
.rs__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(233, 196, 106, calc(0.2 * var(--p, 0))),
    transparent 70%
  );
  mix-blend-mode: screen;
}
.rs__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 16%;
  background: #d8d4ce;
}
.rs__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--sx, 30%) var(--sy, 18%),
    rgba(255, 255, 255, 0.36) 0%,
    rgba(233, 196, 106, 0.14) 26%,
    transparent 58%
  );
  mix-blend-mode: screen;
}
.rs-set--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.ph {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: var(--dusk-900);
  color: var(--sand-400);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

/* rooms */
.rooms {
  padding: 1rem 0 3.5rem;
}

.room__label {
  margin: 2.4rem 0 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand-400);
  font-weight: 500;
}
.rooms .room__label:first-child { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.9rem;
}
.grid .pair {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

/* tiles — live card energy */
.tile {
  background: var(--panel);
  border: 1px solid var(--dusk-700);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tile__photo {
  position: relative;
  background: #d8d4ce;
}
.tile__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 16%;
}
.tile__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(233, 196, 106, calc(0.16 * var(--p, 0))),
    transparent 70%
  );
  mix-blend-mode: screen;
}
.tile__body {
  padding: 0.75rem 0.8rem 0.9rem;
  display: grid;
  gap: 0.28rem;
}
.tile__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.015em;
}
.tile__set {
  margin: 0;
  color: var(--sand-400);
  font-size: 0.75rem;
}
.tile__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.tile__pc {
  margin: 0;
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 500;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* keep */
.keep {
  padding: 4.5rem 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 30%, rgba(212, 160, 23, 0.08), transparent 62%),
    var(--dusk-950);
}
.keep__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  gap: 2.4rem 3rem;
  align-items: center;
}
.keep__photo {
  width: 100%;
  max-width: 380px;
  justify-self: end;
}
.keep__photo .rs__card img {
  object-fit: contain;
  object-position: center;
  background: #cfc9c1;
}
@media (max-width: 760px) {
  .keep__inner { grid-template-columns: 1fr; }
  .keep__photo { justify-self: center; max-width: 320px; }
}
.keep__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0.7rem 0 0.35rem;
}
.keep__set,
.keep__line {
  margin: 0.2rem 0 0;
  color: var(--sand-300);
  font-size: 0.92rem;
}

/* also held */
.held {
  padding: 4rem 0 3rem;
}

/* shop — cooler cabinet */
.shop {
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(44, 36, 51, 0.7), transparent 60%),
    var(--dusk-950);
  border-top: 1px solid var(--dusk-700);
}
.shop__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.45rem;
}
.tiles--shop .tile {
  background: #16131c;
  border-color: #2a2433;
}
.tiles--shop .tile__name { color: #e8e2ea; }
.tiles--shop .chip--ghost {
  color: #c8bfd4;
  border-color: #3a3344;
}

/* footer */
.foot {
  padding: 2.4rem 0 3.2rem;
  border-top: 1px solid var(--hair);
  color: var(--sand-400);
  font-size: 0.82rem;
}
.foot__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.foot strong {
  display: block;
  color: var(--sand-200);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.foot code {
  font-family: var(--body);
  font-size: 0.75rem;
  color: var(--sand-200);
  word-break: break-all;
}

@media (max-width: 860px) {
  .feat {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.2rem 2rem;
  }
  .feat__arr--prev { left: 0.3rem; }
  .feat__arr--next { right: 0.3rem; }
  .keep__inner { grid-template-columns: 1fr; }
  .keep__photo { max-width: 320px; }
}

@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .pills { order: 3; width: 100%; margin-left: 0; }
  .top__hold { margin-left: auto; }
  .grid .pair { grid-column: span 1; grid-template-columns: 1fr; }
  .wordmark { font-size: clamp(2.4rem, 10vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rs__card { transform: none !important; }
  .rs__sheen { display: none; }
  .grain { opacity: 0.025; }
}


/* ========== Inventory book (inventory.html only) ==========
   Appended for the full-book page. Do not restyle museum rooms. */

.inv {
  padding: 2.6rem 0 4.5rem;
}

.inv__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.55rem;
  color: var(--sand-50);
}

.inv__sub {
  margin: 0;
  max-width: 44ch;
  color: var(--sand-300);
  font-size: 1.02rem;
}

.inv__controls { margin-top: 1.8rem; }

.inv__facets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  align-items: flex-end;
  margin: 0 0 0.95rem;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.inv__facet {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 0;
}

.inv__facet-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-400);
  font-weight: 500;
}

.inv__seg {
  display: flex;
  gap: 0.2rem;
  background: var(--dusk-900);
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--dusk-700);
}

.inv__seg button {
  border: 0;
  background: transparent;
  color: var(--sand-300);
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.inv__seg button:hover { color: var(--sand-50); }

.inv__seg button.is-on {
  background: var(--terra);
  color: #fff;
}

.inv__facet select {
  appearance: none;
  background: var(--dusk-900);
  color: var(--sand-50);
  border: 1px solid var(--dusk-700);
  border-radius: 999px;
  padding: 0.42rem 2rem 0.42rem 0.85rem;
  font-family: inherit;
  font-size: 0.82rem;
  min-width: 11rem;
  max-width: 18rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23c4a07a' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.inv__facet select:focus {
  outline: 1px solid var(--terra);
  outline-offset: 2px;
}

.inv__count {
  margin: 0 0 1.25rem;
  color: var(--sand-400);
  font-size: 0.82rem;
}

.inv__empty,
.inv__fail {
  margin: 1.4rem 0 0;
  padding: 1.2rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--dusk-700);
  border-radius: var(--radius);
  color: var(--sand-300);
  max-width: 52ch;
}

.inv__fail code {
  font-family: var(--body);
  font-size: 0.86em;
  color: var(--gold-300);
}

.inv-tile__note {
  margin: 0.15rem 0 0;
  color: var(--sand-400);
  font-size: 0.72rem;
}

.inv .tile__pc--none {
  color: var(--sand-400);
  font-weight: 400;
}

.inv .tile--shop {
  background: #16131c;
  border-color: #2a2433;
}

.inv .tile--shop .tile__name { color: #e8e2ea; }

.inv .tile--shop .chip--ghost {
  color: #c8bfd4;
  border-color: #3a3344;
}

@media (max-width: 640px) {
  .inv__facet select { max-width: 100%; }
}
