/* ═══════════════════════════════════════════════════════════════
   THE GROWTH ARCHIVE — shop pages
   Loaded after style.css; inherits every token from it.
   ═══════════════════════════════════════════════════════════════ */

/* Sub-pages scroll normally — no cover gate to unlock. */
.page { background: var(--ivory); border-radius: var(--r-lg); overflow: clip; }

/* ── Compact header ────────────────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: clamp(0.85rem, 2vh, 1.25rem) var(--pad);
  background: rgba(248, 240, 231, 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule-soft);
}

.bar__mark { width: clamp(44px, 4.4vw, 54px); flex: none; }
.bar__mark img { width: 100%; height: auto; }

.bar__links { display: flex; gap: clamp(0.9rem, 2vw, 1.8rem); margin-inline: auto; }

.bar__links a {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.3s var(--glide);
}
.bar__links a:hover { color: var(--accent); }

.bar__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.35s var(--glide), color 0.35s var(--glide);
}
.bar__cart:hover { background: var(--ink); color: var(--ivory); }

.bar__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 0.35em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0;
}
.bar__count[hidden] { display: none; }

/* ── Page shell ────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vh, 3rem) var(--pad) var(--sec);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumb a { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--glide); }
.crumb a:hover { border-bottom-color: var(--muted); }

.pagehead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.25rem);
}

/* ── Product detail ────────────────────────────────────────── */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.pd__art {
  position: sticky;
  top: clamp(5rem, 12vh, 7rem);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 2px 5px rgba(20, 17, 15, 0.07),
              0 30px 60px -34px rgba(20, 17, 15, 0.5);
}
.pd__art img { width: 100%; height: auto; display: block; }

.pd__art--pending {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.414;
  padding: 2rem;
  border: 1px solid var(--rule);
  box-shadow: none;
}
.pd__artName {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.pd__no {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.85rem;
}

.pd__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0.004em;
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

.pd__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  color: var(--ink-soft);
  margin-bottom: clamp(1.25rem, 3vh, 1.85rem);
}

.pd__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}
.pd__amount { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.25rem); }
.pd__note { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* When a launch price is running the amount goes violet and the list
   price sits struck through beside it, so the discount is legible as a
   discount rather than as the price. */
.pd__price:has(.pd__was) .pd__amount { color: var(--accent); }
.pd__was { font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--muted); }
.pd__was s { text-decoration-thickness: 1px; }

.pd__launch {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.pd__launchDot {
  flex: none;
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(91, 50, 223, 0.7);
}

/* The rule that used to hang off .pd__price — it now has to clear the
   launch line too, so it lives on the block that follows. */
.pd__summary {
  padding-top: clamp(1.25rem, 3vh, 1.85rem);
  margin-top: clamp(1.25rem, 3vh, 1.85rem);
  border-top: 1px solid var(--rule);
}

.pd__summary { max-width: 52ch; color: var(--ink-soft); text-wrap: pretty; }

.pd__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: clamp(1.5rem, 3.5vh, 2.25rem) 0 clamp(1rem, 2.5vh, 1.5rem);
}

.btn.is-added { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: none; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }

.pd__reassure { font-size: 0.78rem; color: var(--muted); }

.pd__block { margin-top: clamp(1.85rem, 4.5vh, 2.75rem); }

.pd__blockHead {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.pd__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.pd__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--accent);
}

/* Campaign categories — numbered, tighter than .pd__list because there
   are five of them and they're labels rather than sentences. */
.pd__cats { display: grid; gap: 0.55rem; }

.pd__cats li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--ink-soft);
}

.pd__catNo {
  flex: none;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}


/* ── A look inside ─────────────────────────────────────────── */
.peek {
  border-top: 1px solid var(--rule);
  margin-top: var(--sec);
  padding-top: clamp(1.85rem, 4vh, 2.75rem);
}

.peek__head { max-width: 100%; }

.peek__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.25rem, 3vh, 1.85rem);
}

.peek__item {
  margin: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 1px 3px rgba(20, 17, 15, 0.05), 0 18px 36px -28px rgba(20, 17, 15, 0.45);
}
.peek__item img { width: 100%; height: auto; }

/* Says out loud that the blur is deliberate. Without this it reads as a
   broken image rather than as a withheld page. */
.peek__lock {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--rule-soft);
  background: var(--violet-soft);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}


/* ── More from the archive ─────────────────────────────────── */
.more { border-top: 1px solid var(--rule); margin-top: var(--sec); padding-top: clamp(1.85rem, 4vh, 2.75rem); }

.more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.25rem, 3vh, 1.85rem);
}

.mini { display: block; }
.mini__art {
  display: block;
  aspect-ratio: 1 / 1.414;
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(20, 17, 15, 0.07), 0 14px 26px -20px rgba(20, 17, 15, 0.45);
  transition: transform 0.7s var(--glide), box-shadow 0.7s var(--glide);
}
.mini__art img { width: 100%; height: 100%; object-fit: cover; }
.mini:hover .mini__art { transform: translateY(-4px); box-shadow: 0 1px 3px rgba(20,17,15,0.07), 0 22px 34px -20px rgba(20,17,15,0.5); }

.mini__art--pending { display: grid; place-items: center; padding: 0.75rem; border: 1px solid var(--rule); box-shadow: none; }
.mini__pendingName {
  font-family: var(--serif); font-size: 0.6rem; line-height: 1.3;
  letter-spacing: 0.05em; text-transform: uppercase; text-align: center; color: var(--muted);
}

.mini__title {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mini__price { display: block; margin-top: 0.3rem; font-size: 0.76rem; color: var(--muted); }

/* ── Cart & checkout ───────────────────────────────────────── */
.shop {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lines { border-top: 1px solid var(--rule); }

.line {
  display: grid;
  grid-template-columns: clamp(3.5rem, 6vw, 4.75rem) minmax(0, 1fr) auto;
  gap: clamp(0.9rem, 2.2vw, 1.75rem);
  align-items: start;
  padding: clamp(1.1rem, 2.6vh, 1.6rem) 0;
  border-bottom: 1px solid var(--rule);
}

.line__art { border-radius: 3px; overflow: hidden; aspect-ratio: 1 / 1.414; background: var(--card); border: 1px solid var(--rule-soft); }
.line__art img { width: 100%; height: 100%; object-fit: cover; }
.line__art--pending { display: grid; place-items: center; padding: 0.35rem; }
.line__artName { font-family: var(--serif); font-size: 0.46rem; line-height: 1.25; text-transform: uppercase; text-align: center; color: var(--muted); }

.line__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 0.3rem;
}
.line__desc { display: block; font-size: 0.84rem; color: var(--muted); max-width: 44ch; }

.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.line__price { font-family: var(--serif); font-size: clamp(1rem, 1.8vw, 1.2rem); white-space: nowrap; }

.line__remove {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--glide), border-color 0.3s var(--glide);
}
.line__remove:hover { color: var(--accent); border-bottom-color: currentColor; }

/* Summary panel */
.sum {
  position: sticky;
  top: clamp(5rem, 12vh, 7rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--card);
}

.sum__head {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.sum__row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }

.sum__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.sum__cta { margin-top: 1.25rem; }
.sum__cta .btn { width: 100%; justify-content: center; }
.sum__fine { margin-top: 0.9rem; font-size: 0.72rem; line-height: 1.5; color: var(--muted); }

/* Empty state */
.empty { padding: clamp(2.5rem, 7vh, 5rem) 0; border-top: 1px solid var(--rule); }
.empty p { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 34ch; }

/* ── Checkout form ────────────────────────────────────────── */
/* The .field / .prefixed / .choice primitives moved to style.css — the
   Scorecard gate on the home page needs them and shop.css isn't loaded
   there. Everything below is checkout-specific. */

.form { display: grid; gap: clamp(0.9rem, 2vh, 1.25rem); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.9rem, 2vw, 1.25rem); }

.field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--ivory);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s var(--glide);
}
.field select:focus, .field textarea:focus { border-color: var(--ink); }

.fieldset__head {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.9rem;
  margin: clamp(1.25rem, 3vh, 1.85rem) 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.fieldset__head:first-child { margin-top: 0; }

/* The payment handoff — deliberately not a card form. */
.handoff {
  margin-top: clamp(1.25rem, 3vh, 1.85rem);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  background: var(--ivory);
}
.handoff h3 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.handoff p { font-size: 0.84rem; color: var(--muted); }
.handoff code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

.notice {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  background: rgba(156, 61, 38, 0.08);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.notice[hidden] { display: none; }

/* ── Slim footer ───────────────────────────────────────────── */
.slimfoot {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vh, 2.5rem) var(--pad);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.slimfoot a:hover { color: var(--accent); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; }
  .pd__art { position: static; max-width: 22rem; }
  .shop { grid-template-columns: 1fr; }
  .sum { position: static; }
}

@media (max-width: 620px) {
  .bar__links { display: none; }
  .bar__cart { margin-inline-start: auto; }
  .line { grid-template-columns: clamp(3rem, 16vw, 4rem) minmax(0, 1fr); }
  .line__right { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .pd__actions .btn { width: 100%; justify-content: center; }
}
