/* The Faith Collection — /faith/ takeover page.
   A sibling of shop.css (same class contract, own palette): where the shop
   is the night apothecary, this page is candlelit stone — warm near-black,
   bone and old gold, Cinzel letterforms to match the SAVED print lettering.
   Scoped to /faith/ only. */

:root {
  --stone: #141110;
  --stone-deep: #0e0b0a;
  --panel: #1c1715;
  --line: #3a312b;
  --bone: #ece4d2;
  --bone-dim: #bdb29c;
  --ash: #a89a84;
  --gold: #c9a96a;
  --gold-glow: #ddbe7f;
  --serif-display: "Cinzel", "Times New Roman", serif;
  --serif-body: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html.smooth { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--stone);
  color: var(--bone);
  font-family: var(--serif-body);
  font-size: 1.2rem;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--stone-deep);
  padding: 0.5rem 1rem; z-index: 50; font-family: var(--mono);
}
.skip-link:focus { left: 0; }

/* ---- top bar ---- */
.shop-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem clamp(1rem, 4vw, 2.4rem);
}
.shop-topbar .brand {
  font-family: var(--serif-display); font-size: 0.95rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ash); text-decoration: none;
}
.shop-topbar .brand:hover, .shop-topbar .brand:focus-visible { color: var(--bone); }
.shop-topbar nav { display: flex; gap: 1.6rem; }
.shop-topbar nav a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ash); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.shop-topbar nav a:hover, .shop-topbar nav a:focus-visible {
  color: var(--bone); border-color: var(--ash);
}

/* ---- hero ---- */
.shop-hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: var(--stone-deep);
  padding: 5rem 1.5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 26%;
  z-index: 0;
  transform: scale(1.06);
  animation: heroDrift 38s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(0, -2.2%, 0); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(82% 58% at 50% 42%, rgba(10, 8, 7, 0.66), transparent 74%),
    linear-gradient(180deg, rgba(10, 8, 7, 0.78) 0%, rgba(10, 8, 7, 0.22) 32%, rgba(10, 8, 7, 0.3) 64%, rgba(10, 8, 7, 0.92) 100%);
}
.shop-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(8, 6, 5, 0.9);
}
.hero-inner { position: relative; max-width: 46rem; z-index: 3; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ash);
  opacity: 0; animation: rise 1.1s ease 0.2s forwards;
}
.shop-hero h1 {
  font-family: var(--serif-display); font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: 1.08;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0.4em 0 0.3em; text-wrap: balance; color: var(--bone);
  text-shadow: 0 2px 30px rgba(8, 6, 5, 0.85), 0 0 60px rgba(201, 169, 106, 0.25);
}
.hero-eyebrow, .hero-sub { text-shadow: 0 1px 14px rgba(8, 6, 5, 0.9); }
.shop-hero h1 .w { display: inline-block; opacity: 0; animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.shop-hero h1 .w:nth-child(1) { animation-delay: 0.45s; }
.shop-hero h1 .w:nth-child(2) { animation-delay: 0.62s; }
.shop-hero h1 .w:nth-child(3) { animation-delay: 0.79s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-sub {
  font-size: 1.35rem; font-style: italic; color: var(--bone-dim);
  max-width: 34rem; margin: 0 auto;
  opacity: 0; animation: rise 1.2s ease 1.05s forwards;
}
.hero-cta {
  display: inline-block; margin-top: 2.4rem;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border: 1px solid rgba(201, 169, 106, 0.45);
  padding: 0.85rem 1.7rem; border-radius: 2px;
  background: rgba(201, 169, 106, 0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; animation: rise 1.2s ease 1.3s forwards;
}
.hero-cta:hover, .hero-cta:focus-visible {
  background: rgba(201, 169, 106, 0.14);
  box-shadow: 0 0 26px rgba(201, 169, 106, 0.25);
}
.hero-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- sections ---- */
.shop-main { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem 3rem; }
.shop-main section { padding: 4.5rem 0 1rem; }
.sec-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.sec-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ash);
}
.sec-head h2 {
  font-family: var(--serif-display); font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: 0.06em;
  margin: 0.3em 0 0.35em; text-wrap: balance; color: var(--bone);
}
.sec-head p { color: var(--bone-dim); font-style: italic; margin: 0; }

/* ---- cards ---- */
.group-head {
  font-family: var(--serif-display); font-weight: 500;
  font-size: 1.4rem; letter-spacing: 0.06em; color: var(--bone);
  margin: 3.2rem 0 1.2rem; text-align: center;
}
.group-head:first-of-type { margin-top: 0; }
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
.shelf-blankets { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 56rem; margin: 0 auto; }
.card {
  background: linear-gradient(180deg, var(--panel) 0%, #151110 100%);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  scroll-margin-top: 24px;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 169, 106, 0.4);
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.7), 0 0 30px -12px rgba(201, 169, 106, 0.3);
}
.plate {
  aspect-ratio: 1 / 1.05;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    radial-gradient(80% 60% at 50% 38%, rgba(201, 169, 106, 0.06) 0%, transparent 70%),
    #110d0c;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate-contain img { object-fit: contain; }
.plate-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.55rem 0.8rem; background: rgba(14, 11, 10, 0.86);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-glow); text-align: center;
}
.plate-caption[hidden] { display: none; }
.card h3, .card h4 {
  font-family: var(--serif-display); font-weight: 500;
  font-size: 1.22rem; letter-spacing: 0.04em; margin: 0; line-height: 1.3; color: var(--bone);
}
.card .desc { font-size: 1.05rem; color: var(--bone-dim); margin: 0; flex: 1; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.price {
  font-family: var(--mono); font-weight: 500; font-size: 1.05rem;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.price small { font-size: 0.68rem; color: var(--bone-dim); font-weight: 300; }
.price-soon { color: var(--ash); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.btn {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone-deep); background: var(--gold);
  border: none; border-radius: 2px;
  padding: 0.7rem 1.15rem; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--gold-glow); box-shadow: 0 0 22px rgba(201, 169, 106, 0.4); }
.btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ash); border: 1px solid var(--line); }
.btn.ghost:hover, .btn.ghost:focus-visible { color: var(--bone); border-color: var(--ash); box-shadow: none; }
.buy-row .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.ship-note {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--bone-dim);
}
.stock {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  color: #6e6354; text-transform: uppercase;
}
.card-note {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--gold); opacity: 0.85;
}

/* ---- card galleries ---- */
.thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: -0.3rem; }
.thumb {
  flex: 1 1 3.2rem; min-width: 3.2rem; max-width: 6rem; padding: 0; cursor: pointer;
  background: #110d0c; border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden; aspect-ratio: 1 / 1.05; min-height: 44px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.75;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover, .thumb:focus-visible { opacity: 1; border-color: var(--ash); }
.thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.thumb.active { opacity: 1; border-color: var(--gold); }

/* ---- blanket material options ---- */
.option-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.option-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--bone-dim);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.55rem 0.8rem;
}
.option-list li .price { font-size: 0.95rem; }

/* ---- size guide ---- */
.size-guide summary {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ash); cursor: pointer;
  list-style: none;
}
.size-guide summary::-webkit-details-marker { display: none; }
.size-guide summary::before { content: "+ "; color: var(--gold); }
.size-guide[open] summary::before { content: "− "; }
.size-guide summary:hover, .size-guide summary:focus-visible { color: var(--bone); }
.size-table-wrap { overflow-x: auto; margin-top: 0.7rem; }
.size-guide table {
  border-collapse: collapse; width: 100%; min-width: 430px;
  font-family: var(--mono); font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
.size-guide th, .size-guide td {
  border: 1px solid var(--line); padding: 0.35rem 0.5rem; text-align: center;
  color: var(--bone-dim); font-weight: 400;
}
.size-guide th { color: var(--ash); text-transform: uppercase; letter-spacing: 0.08em; }
.size-guide .sg-note { font-size: 0.85rem; font-style: italic; color: #8a7d69; margin: 0.6rem 0 0; }

/* ---- creed band ---- */
.creed {
  margin: 4.5rem auto 0; max-width: 44rem; text-align: center;
  padding: 2.4rem 1.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.creed p {
  font-family: var(--serif-display); font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem); letter-spacing: 0.08em;
  color: var(--bone); margin: 0; text-transform: uppercase;
}
.creed p em { color: var(--gold); font-style: normal; }

/* ---- shipment note ---- */
.shipnote {
  margin: 2.6rem auto 0; max-width: 44rem;
  border: 1px dashed var(--line); border-radius: 3px;
  padding: 1.1rem 1.4rem;
  font-size: 1.02rem; color: var(--bone-dim);
  display: flex; gap: 0.9rem; align-items: baseline;
}
.shipnote .tick { color: var(--gold); font-family: var(--mono); }

/* ---- notify / signup ---- */
.notify-block {
  margin: 4.5rem auto 0; max-width: 34rem; text-align: center;
  border: 1px solid var(--line); border-radius: 3px;
  background: linear-gradient(180deg, var(--panel) 0%, #151110 100%);
  padding: 2.2rem 1.8rem 2rem;
}
.notify-block h2 {
  font-family: var(--serif-display); font-weight: 500;
  font-size: 1.5rem; letter-spacing: 0.06em; margin: 0 0 0.4em; color: var(--bone);
}
.notify-block > p { color: var(--bone-dim); font-style: italic; margin: 0 0 1.4rem; }
.signup-form { display: flex; flex-direction: column; gap: 0.8rem; }
.signup-form input {
  background: #110d0c; border: 1px solid var(--line); border-radius: 2px;
  color: var(--bone); font-family: var(--serif-body); font-size: 1rem;
  padding: 0.75rem 0.9rem;
}
.signup-form input::placeholder { color: #6e6354; }
.signup-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.cf-turnstile { min-height: 65px; }
.signup-form button[type="submit"], .signup-form .btn-primary {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone-deep); background: var(--gold);
  border: none; border-radius: 2px; padding: 0.85rem 1.15rem; cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.signup-form button[type="submit"]:hover,
.signup-form button[type="submit"]:focus-visible {
  background: var(--gold-glow); box-shadow: 0 0 22px rgba(201, 169, 106, 0.4);
}
.form-error { color: #d98f8f; font-size: 0.95rem; }

/* ---- footer ---- */
.shop-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem; padding: 2.6rem 1.5rem 3.2rem; text-align: center;
}
.foot-mark {
  font-family: var(--serif-display); font-size: 1rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ash);
}
.shop-footer p { max-width: 38rem; margin: 0.8rem auto 0; font-size: 0.98rem; font-style: italic; color: #8a7d69; }
.shop-footer .legal { font-style: normal; font-size: 0.85rem; }
.foot-links {
  margin-top: 1.4rem; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.foot-links a { color: var(--ash); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--bone); border-color: var(--ash); }

@media (max-width: 640px) {
  .shop-topbar nav { gap: 1rem; }
  .hero-bg { object-position: 50% 22%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-eyebrow, .shop-hero h1 .w, .hero-sub, .hero-cta { opacity: 1; }
  .hero-bg { transform: scale(1.06); }
}

/* Buy widgets (launch 11-01): selects + Buy button beside the price. */
.buy-widget { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.v-select {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--bone); background: var(--panel);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.55rem 0.6rem; min-height: 44px; max-width: 13rem;
}
.v-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn-buy:disabled { opacity: 0.6; cursor: wait; }
/* Back from Stripe: order-received note at the top of main. */
.paid-note {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--stone-deep); background: var(--gold);
  border-radius: 2px; padding: 0.8rem 1.1rem; margin: 1.2rem auto; max-width: 44rem;
}
@media (max-width: 640px) { .buy-row { flex-direction: column; align-items: stretch; } .buy-widget { justify-content: stretch; } .buy-widget .btn-buy { flex: 1; } }
