/* ============================================================
   HOUSE OF GORE — Big Cartel theme
   Design system ported from ~/house-of-gore/ (React/Tailwind)
   Vanilla CSS, no build step. Colours + type are also exposed
   as theme options so the owner can tweak without code.
   ============================================================ */

/* ---- Tokens (overridable by theme options via inline vars) ---- */
:root {
  --ink:        #160709;
  --ink-alt:    #1F0A0D;
  --ink-card:   #260F13;
  --ink-border: #43242A;
  --bone:       #EDE4D3;
  --ivory:      #F7F1E4;
  --body:       #D9CFBD;
  --muted:      #8A7D72;
  --dim:        #4A4240;
  --gold:       #B8935A;
  --gold-hi:    #D6AF75;
  --blood:      #7A0E14;
  --blood-hi:   #A5151D;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ornate:  "Cinzel", "Cormorant Garamond", serif;
  --font-body:    "DM Sans", system-ui, sans-serif;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.76, 0, 0.24, 1);

  --pad-x: 1.5rem;
}
@media (min-width: 768px)  { :root { --pad-x: 4rem; } }
@media (min-width: 1024px) { :root { --pad-x: 6rem; } }

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-border) var(--ink);
}
body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(122,14,20,0.30), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 105%, rgba(122,14,20,0.22), transparent 65%);
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background-color: rgba(165,21,29,0.40); color: var(--ivory); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* ---- Ambient: animated grain + vignette (always on) ---- */
body::after {
  content: '';
  position: fixed; inset: -150%;
  width: 400%; height: 400%;
  pointer-events: none; z-index: 9999;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='300' height='300' filter='url(%23g)'/></svg>");
  background-repeat: repeat;
  animation: grain 6s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0%,0%); }
  10% { transform: translate(-4%,-8%); }  20% { transform: translate(-10%,3%); }
  30% { transform: translate(4%,-18%); }  40% { transform: translate(-3%,18%); }
  50% { transform: translate(-12%,7%); }  60% { transform: translate(10%,0%); }
  70% { transform: translate(0%,10%); }   80% { transform: translate(2%,22%); }
  90% { transform: translate(-7%,7%); }
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(40,6,10,0.62) 100%);
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  html { scroll-behavior: auto; }
  .nav__logo::after { animation: none; opacity: 0; }
  .flourish.is-in span::after { animation: none; }
}

/* ---- Layout helpers ---- */
.wrap     { width: 100%; padding-inline: var(--pad-x); }
.maxw-7   { max-width: 80rem; margin-inline: auto; }
.maxw-6   { max-width: 72rem; margin-inline: auto; }
.maxw-4   { max-width: 56rem; margin-inline: auto; }
.section  { position: relative; overflow: hidden; padding-block: 7rem; border-top: 1px solid var(--ink-border); }
@media (min-width: 768px) { .section { padding-block: 10rem; } }
.section--tight { padding-block: 5rem; }
@media (min-width: 768px) { .section--tight { padding-block: 7rem; } }

/* Decorative radial glow blocks (place inside a positioned parent) */
.glow { position: absolute; pointer-events: none; filter: blur(50px); }
.glow--gold  { background: radial-gradient(ellipse at center, rgba(184,147,90,0.10) 0%, transparent 70%); }
.glow--blood { background: radial-gradient(ellipse at center, rgba(122,14,20,0.14) 0%, transparent 70%); }

/* Type helpers */
.display { font-family: var(--font-display); }
.ornate  { font-family: var(--font-ornate); letter-spacing: 0.08em; }
.em-gold { color: var(--gold); font-style: italic; }

/* Eyebrow (label) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--font-ornate);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--gold); }
.eyebrow--center::after { content: ''; width: 2rem; height: 1px; background: var(--gold); }

.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); }

.flourish { display: flex; align-items: center; justify-content: center; gap: 1.25rem; color: var(--dim); }
.flourish span { position: relative; overflow: hidden; width: 4rem; height: 1px; background: currentColor; }
.flourish svg  { fill: var(--gold); }
/* "Gore" signature (bleeding hairline): a crimson glint travels the divider lines once on reveal (whispered) */
.flourish span::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-110%);
  background: linear-gradient(90deg, transparent 30%, rgba(165,21,29,0.7) 50%, transparent 70%);
}
.flourish.is-in span::after { animation: gore-seep 2.4s var(--ease-out-quart) 0.35s 1 both; }
@keyframes gore-seep { from { transform: translateX(-110%); } to { transform: translateX(110%); } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 1.25rem;
  padding: 1.1rem 2.25rem;
  font-family: var(--font-ornate);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out-quart), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn .arrow { display: inline-block; transition: transform 0.3s var(--ease-out-quart); }
.btn:hover .arrow { transform: translateX(0.5rem); }
.btn--gold  { background: var(--gold); color: var(--ink); }
.btn--gold:hover  { background: var(--gold-hi); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--gold); }
.btn--ghost .arrow { color: var(--gold); }
.btn--ghost:hover { background: rgba(184,147,90,0.08); }
.btn--line  { background: transparent; color: var(--body); border-color: var(--ink-border); }
.btn--line:hover { border-color: var(--gold); color: var(--ivory); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.5s, backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background-color: rgba(10,8,7,0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--ink-border);
}
.nav__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.25rem;
}
@media (min-width: 768px) { .nav__bar { padding-block: 1.5rem; } }
.nav__logo {
  position: relative;
  font-family: var(--font-ornate);
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone);
}
.nav__logo .of { color: var(--gold); }
/* "Gore" signature (ambient blood thread): a fine crimson thread bleeds from the wordmark, drips, resets (whispered) */
.nav__logo::after {
  content: ''; position: absolute; top: 100%; left: 0.35em;
  width: 1px; height: 0; transform-origin: top;
  background: linear-gradient(180deg, rgba(165,21,29,0) 0%, rgba(165,21,29,0.55) 100%);
  pointer-events: none;
  animation: gore-thread 11s var(--ease-in-out) infinite;
}
@keyframes gore-thread {
  0%, 8%   { height: 0; opacity: 0; }
  18%      { opacity: 0.6; }
  46%      { height: 13px; opacity: 0.6; }
  60%      { height: 17px; opacity: 0; }
  100%     { height: 0; opacity: 0; }
}

.nav__links { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__link {
  position: relative;
  font-family: var(--font-ornate);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--body); transition: color 0.2s;
}
.nav__link:hover { color: var(--gold); }

/* Mega-menu (groups flat categories visually) */
.nav__item { position: relative; }
.nav__item > .nav__link { display: inline-flex; align-items: center; gap: 0.4rem; }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 36rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 2rem;
  padding: 2rem 2.25rem;
  background-color: rgba(10,8,7,0.96); backdrop-filter: blur(16px);
  border: 1px solid var(--ink-border);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
.nav__item:hover .mega,
.nav__item:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega__group-title {
  font-family: var(--font-ornate);
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.85rem;
}
.mega__list { display: flex; flex-direction: column; gap: 0.6rem; }
.mega__link {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--bone);
  transition: color 0.2s; width: max-content;
}
.mega__link:hover { color: var(--gold); }

/* Burger */
.nav__burger { display: inline-flex; flex-direction: column; gap: 6px; padding: 0.5rem; background: none; border: 0; }
@media (min-width: 900px) { .nav__burger { display: none; } }
.nav__burger span { display: block; width: 24px; height: 1px; background: var(--bone); transition: transform 0.3s, opacity 0.2s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 1.25rem;
  padding: 1.5rem var(--pad-x) 2rem;
  background-color: rgba(10,8,7,0.97); backdrop-filter: blur(16px);
  border-top: 1px solid var(--ink-border);
}
.nav.is-open .nav__mobile { display: flex; }
.nav__mobile a {
  font-family: var(--font-ornate);
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--body);
}
.nav__mobile .mega__group-title { margin-top: 0.5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; overflow: hidden;
  padding: 9rem var(--pad-x) 6rem;
}
.hero__glow-gold  { top: 15%; left: 50%; transform: translateX(-50%); width: 80vw; height: 80vh; filter: blur(40px); }
.hero__glow-blood { bottom: -10%; left: 20%; width: 60vw; height: 50vh; filter: blur(60px); }
.hero__inner { position: relative; max-width: 72rem; display: flex; flex-direction: column; align-items: center; }
.hero__title { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-family: var(--font-ornate); line-height: 0.95; }
@media (min-width: 768px) { .hero__title { gap: 1rem; } }
.hero__title .word { display: block; font-weight: 600; color: var(--ivory); font-size: clamp(4rem, 13vw, 11rem); letter-spacing: 0.05em; }
.hero__title .word--sm { font-family: var(--font-display); font-style: italic; color: var(--gold); font-weight: 400; font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: 0.4em; }
.hero__tagline {
  max-width: 42rem; margin-top: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  color: var(--body); font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.3;
}
.hero__tagline .sub { color: var(--muted); font-style: normal; }
.hero__cta { margin-top: 4rem; }

.scrollcue { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--dim); }
.scrollcue span { font-family: var(--font-ornate); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; animation: pulse 2.5s ease-in-out infinite; }
.scrollcue i { width: 1px; height: 2.5rem; background: var(--dim); transform-origin: top; animation: scangrow 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes scangrow { 0%,100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }

/* ============================================================
   SECTION HEADERS / MANIFESTO
   ============================================================ */
.sec-head { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sec-title { font-family: var(--font-display); color: var(--ivory); font-weight: 500; line-height: 0.95; font-size: clamp(2.5rem, 6vw, 5rem); }

.manifesto p { font-family: var(--font-display); color: var(--ivory); font-weight: 300; line-height: 1.15; font-size: clamp(1.6rem, 4vw, 3.2rem); }
.manifesto p.em { color: var(--gold); font-style: italic; font-weight: 400; }
.manifesto p.manifesto__close { color: var(--blood-hi); font-style: italic; font-weight: 400; }
.manifesto__note { margin-top: 5rem; max-width: 36rem; }
.manifesto__note p { font-size: 1.05rem; color: var(--body); font-weight: 300; line-height: 1.7; font-family: var(--font-body); }

/* ============================================================
   PRODUCT GRID + CARD
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (min-width: 768px) { .filters { justify-content: flex-end; } }
.filter {
  padding: 0.5rem 1rem;
  font-family: var(--font-ornate); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--body); background: transparent; border: 1px solid var(--ink-border);
  transition: all 0.3s;
}
.filter:hover { border-color: var(--gold); color: var(--ivory); }
.filter.is-active { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.grid { display: grid; grid-template-columns: 1fr; gap: 2rem 2rem; }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 3.5rem 2rem; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 5rem 2rem; } }

.card { position: relative; display: block; text-align: left; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-card); border: 1px solid var(--ink-border); border-radius: 2px; transition: box-shadow 1.1s var(--ease-out-quart), border-bottom-color 1.1s var(--ease-out-quart); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05) brightness(0.92); transition: transform 1.4s var(--ease-out-quart); }
.card:hover .card__media img { transform: scale(1.06); }
/* "Gore" signature (seeping blood): crimson wells up from the bottom edge on hover (whispered) */
.card:hover .card__media { box-shadow: inset 0 -34px 30px -26px rgba(122,14,20,0.50); border-bottom-color: rgba(165,21,29,0.55); }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,8,7,0.85) 100%); opacity: 0.55; pointer-events: none; }
.card__badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  font-family: var(--font-ornate); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.25rem 0.5rem; color: var(--gold); border: 1px solid var(--gold);
  background: rgba(10,8,7,0.6); backdrop-filter: blur(6px);
}
.card__badge--sold { color: var(--bone); border-color: var(--dim); }
.card__hover {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; padding-bottom: 1.5rem; z-index: 2;
  opacity: 0; transition: opacity 0.5s;
}
.card:hover .card__hover { opacity: 1; }
.card__hover span {
  font-family: var(--font-ornate); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 0.5rem 1.25rem; color: var(--ivory); border: 1px solid var(--gold);
  background: rgba(10,8,7,0.65); backdrop-filter: blur(6px);
}
.card__cap { margin-top: 1.25rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card__name { font-family: var(--font-display); color: var(--ivory); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.1; transition: color 0.3s; }
.card:hover .card__name { color: var(--gold); }
.card__price { flex-shrink: 0; font-family: var(--font-ornate); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

.empty { margin-top: 5rem; text-align: center; font-family: var(--font-ornate); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .product { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; align-items: start; } }
.product__gallery { display: flex; flex-direction: column; gap: 1rem; }
.product__main { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-card); border: 1px solid var(--ink-border); border-radius: 2px; }
.product__main img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.product__thumb { aspect-ratio: 1; overflow: hidden; background: var(--ink-card); border: 1px solid var(--ink-border); cursor: pointer; transition: border-color 0.2s; }
.product__thumb.is-active, .product__thumb:hover { border-color: var(--gold); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) { .product__info { position: sticky; top: 7rem; } }
.product__name { font-family: var(--font-display); color: var(--ivory); font-weight: 500; line-height: 0.95; font-size: clamp(2.5rem, 5vw, 4rem); margin-top: 1.25rem; }
.product__price { margin-top: 1rem; font-family: var(--font-ornate); font-size: 1.15rem; letter-spacing: 0.15em; color: var(--gold); }
.product__price .was { color: var(--dim); text-decoration: line-through; margin-right: 0.75rem; }
.product__desc { color: var(--body); font-weight: 300; line-height: 1.7; font-size: 1.05rem; }
.product__desc p { margin-bottom: 1rem; }

.field { margin-bottom: 1.5rem; }
.field__label { display: block; font-family: var(--font-ornate); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.select, .input, .textarea {
  width: 100%; padding: 1rem 1.25rem;
  background: var(--ink-card); border: 1px solid var(--ink-border); color: var(--bone);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 300;
  outline: none; transition: border-color 0.15s;
}
.select:focus, .input:focus, .textarea:focus { border-color: var(--gold); }
.textarea { resize: vertical; min-height: 8rem; }
.select { appearance: none; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23B8935A' fill='none' stroke-width='1.2'/></svg>"); background-repeat: no-repeat; background-position: right 1.25rem center; }

.product__cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.product__cta .btn { justify-content: center; }
.product__note { margin-top: 2.5rem; font-size: 0.8rem; font-weight: 300; line-height: 1.7; color: var(--dim); }
.soldout-tag { font-family: var(--font-ornate); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blood-hi); }

/* ============================================================
   CART
   ============================================================ */
.cart__row { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--ink-border); }
.cart__thumb { width: 5rem; aspect-ratio: 1; object-fit: cover; background: var(--ink-card); border: 1px solid var(--ink-border); }
.cart__name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ivory); }
.cart__meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.cart__price { font-family: var(--font-ornate); letter-spacing: 0.1em; color: var(--bone); }
.cart__totals { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.cart__total { font-family: var(--font-display); font-size: 2rem; color: var(--ivory); }
.cart__total .label { font-family: var(--font-ornate); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-right: 1rem; }

/* ============================================================
   CONTACT / FORMS GRID
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.contact__line { margin-bottom: 1.25rem; }
.contact__line .k { font-family: var(--font-ornate); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.contact__line .v { color: var(--bone); }
.contact__line a.v:hover { color: var(--gold); }

/* Calendly embed wrapper (Book page) */
.calendly-inline-widget { min-width: 320px; height: 720px; border: 1px solid var(--ink-border); }
.book__intro { max-width: 40rem; margin-bottom: 3rem; }

/* Rich text (About / pages) */
.richtext { color: var(--body); font-weight: 300; line-height: 1.8; font-size: 1.05rem; max-width: 44rem; }
.richtext h2 { font-family: var(--font-display); color: var(--ivory); font-size: clamp(1.8rem,4vw,2.8rem); margin: 2.5rem 0 1rem; }
.richtext h3 { font-family: var(--font-display); color: var(--ivory); font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.richtext p { margin-bottom: 1.25rem; }
.richtext a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.richtext img { margin: 2rem 0; border: 1px solid var(--ink-border); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; overflow: hidden; padding-block: 3.5rem; border-top: 1px solid var(--ink-border); }
@media (min-width: 768px) { .footer { padding-block: 5rem; } }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.footer__logo { font-family: var(--font-ornate); font-size: 0.95rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bone); }
.footer__logo .of { color: var(--gold); }
.footer__tag { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 1.05rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; }
.footer__links a { font-family: var(--font-ornate); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--body); transition: color 0.2s; }
.footer__links a:hover { color: var(--gold); }
.footer__legal { margin-top: 1rem; font-family: var(--font-ornate); font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--dim); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: var(--ink); transition: opacity 0.8s var(--ease-out-quart), visibility 0.8s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { font-family: var(--font-ornate); font-size: 1rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--bone); opacity: 0; animation: ploadin 1.2s var(--ease-out-quart) forwards; }
.preloader__mark .of { color: var(--gold); }
@keyframes ploadin { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }

/* ============================================================
   SCROLL REVEAL (JS adds .is-in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease-out-quart), transform 0.85s var(--ease-out-quart), filter 0.85s var(--ease-out-quart); }
.reveal.blur { filter: blur(8px); }
.reveal.is-in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; } }

/* ============================================================
   GOTHIC PASS — reliquary arches, ornaments, drop-caps, blood
   ============================================================ */

/* Cathedral arch utility (apply to any framed image) */
.arch { border-radius: 48% 48% 5px 5px / 16% 16% 3px 3px; }

/* Reliquary frame: thin gold inset that lights up on hover */
.card__media::before {
  content: ''; position: absolute; inset: 10px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(184,147,90,0.55);
  border-radius: 1px;
  opacity: 0; transition: opacity 0.5s var(--ease-out-quart);
}
.card:hover .card__media::before { opacity: 0.7; }

/* Hero title: faint candlelit glow */
.hero__title .word { text-shadow: 0 0 50px rgba(184,147,90,0.14); }

/* Drop-cap (manifesto note, about, rich text) */
.dropcap p:first-of-type::first-letter,
.richtext.dropcap p:first-of-type::first-letter {
  font-family: var(--font-ornate); font-weight: 600;
  font-size: 3.4em; line-height: 0.66; float: left;
  color: var(--gold); margin: 0.06em 0.14em 0 0;
}

/* Blood accents */
.card__badge--sale { color: var(--ivory); border-color: var(--blood-hi); background: rgba(122,14,20,0.55); }
.eyebrow--blood { color: var(--blood-hi); }
.eyebrow--blood::before,
.eyebrow--blood.eyebrow--center::after { background: var(--blood-hi); }

/* Engraved divider: hairline with a centred diamond (use between blocks) */
.divider { display: flex; align-items: center; justify-content: center; gap: 1.25rem; color: var(--dim); margin-block: 3.5rem; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; max-width: 9rem; background: linear-gradient(90deg, transparent, var(--ink-border) 40%, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.divider svg { fill: var(--gold); flex-shrink: 0; }

/* Arched section crown: a small arch ornament above section titles (optional) */
.crown { display: block; width: 2.25rem; height: 1.1rem; margin-bottom: 1.25rem; border: 1px solid var(--gold); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: 0.6; }

/* ---- Contact form (Big Cartel contact_input outputs plain input/textarea) ---- */
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 1rem 1.25rem;
  background: var(--ink-card); border: 1px solid var(--ink-border); color: var(--bone);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 300;
  outline: none; transition: border-color 0.15s;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.errors { color: var(--blood-hi); }

/* ---- Pagination (Big Cartel default_pagination) ---- */
.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; margin-top: 4rem; }
.pagination a, .pagination span {
  font-family: var(--font-ornate); font-size: 0.72rem; letter-spacing: 0.15em;
  padding: 0.55rem 0.9rem; color: var(--body); border: 1px solid var(--ink-border);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--ivory); }
.pagination .current, .pagination .active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.pagination .disabled { opacity: 0.35; }
