/* Catholic Arms — local mockup stylesheet. No external CDNs. */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel/Cinzel-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond/EBGaramond-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond/EBGaramond-Italic-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "UnifrakturMaguntia";
  src: url("../fonts/unifrakturmaguntia/UnifrakturMaguntia-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0a08;
  --charcoal: #161310;
  --stone-dark: #2a2620;
  --stone: #4a453c;
  --stone-light: #7a7266;
  --gold: #c9a227;
  --gold-bright: #e8d5a3;
  --gold-soft: #d4b56a;
  --gold-deep: #8a6b1f;
  --crimson: #6e1518;
  --crimson-deep: #3d0c0e;
  --parchment: #efe6d4;
  --parchment-dim: #cbbfa6;
  --navy: #1a2744;
  --silver: #c5cdd6;
  --rule: color-mix(in srgb, var(--gold) 55%, transparent);
  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "EB Garamond", Garamond, "Times New Roman", serif;
  --font-blackletter: "UnifrakturMaguntia", "Cinzel", serif;
  --measure: 40rem;
  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 12.25rem;
  --radius: 0;
  --focus: 2px solid var(--gold-bright);
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.65;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(11,10,8,0.82) 0%, rgba(11,10,8,0.9) 40%, rgba(11,10,8,0.94) 100%),
    url("../images/textures/grain.svg"),
    url("../images/textures/stone.svg");
  background-size: auto, 180px 180px, 380px 380px;
  background-attachment: fixed;
  min-height: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--parchment); }
:focus { outline: none; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-wrap: balance;
  margin: 0 0 0.75em;
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 0.14em; font-weight: 500; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: 0.16em; text-transform: uppercase; }
h3 { font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em, i { font-style: italic; }
small { font-size: 0.9em; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.kicker {
  font-family: var(--font-blackletter);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.35em;
}
.latin-kicker { display: block; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
}
.lede { font-size: 1.22rem; color: var(--parchment); max-width: var(--measure); }
.muted, .disclaimer { color: var(--parchment-dim); }
.disclaimer { font-size: 0.95rem; font-style: italic; }
.center { text-align: center; }
.center .lede, .center .disclaimer { margin-inline: auto; }

/* Gold ornamental rule */
.ornament {
  display: block;
  width: min(22rem, 80%);
  height: 24px;
  margin: 1.25rem auto 1.75rem;
  background: url("../images/ornaments/divider.svg") center / contain no-repeat;
}
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0.2em; }
.section-head .lede, .section-head .disclaimer { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  min-height: 2.75rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--parchment);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Header — dark stone band, large centered monogram, fades into the page below.
   The hero photo begins under the header (it does not sit behind the logo). */
.header-slot { position: relative; z-index: 40; }
.site-header {
  position: relative;
  z-index: 40;
  color: var(--parchment);
  background-color: #08090b;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(8, 9, 11, 0.12) 42%,
      rgba(0, 0, 0, 0.42) 100%
    ),
    url("../images/textures/header-damask.svg"),
    url("../images/textures/header-onyx.svg");
  background-size: auto, 220px 220px, 100% 100%;
  background-position: 0 0, 50% 0, 50% 0;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold) 42%, transparent);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1.75rem;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.72) 0%,
    rgba(8, 9, 11, 0.28) 42%,
    rgba(8, 9, 11, 0) 100%
  );
}
.has-hero .site-header::after {
  /* Soft blend into the vault and light rays only — well above Mary (~33–66%). */
  height: 5.5rem;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.82) 0%,
    rgba(8, 9, 11, 0.32) 42%,
    rgba(8, 9, 11, 0) 100%
  );
}
.site-header.is-compact {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.site-header.is-compact::after { height: 2rem; }

.header-inner {
  position: relative;
  min-height: var(--header-h);
  padding: 0.7rem 0 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gold-bright);
  min-width: 0;
}
.brand img {
  display: block;
  width: auto;
  height: clamp(7.25rem, 9.2vw, 8.25rem); /* ~116–132px; 132px at 1440, ~118px at 1280 */
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a, .cart-link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--parchment);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-bright); }
.cart-link { border: 1px solid var(--rule); padding: 0.4rem 0.7rem; }

/* Option A — links split around the monogram */
.site-header.nav-split .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.25rem;
}
.site-header.nav-split .brand {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
}
.site-header.nav-split .site-nav {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.25rem;
  pointer-events: none;
}
.site-header.nav-split .site-nav ul { pointer-events: auto; }
.site-header.nav-split .nav-left { grid-column: 1; justify-self: start; }
.site-header.nav-split .nav-right { grid-column: 3; justify-self: end; }

/* Option B — thin centered row under the monogram */
.site-header.nav-under .header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.85rem 0 0.8rem;
}
.site-header.nav-under .site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 1.5rem;
  padding: 0.45rem 0 0.15rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
.site-header.nav-under .site-nav ul { gap: 1.5rem; }
.site-header.nav-under .nav-right { gap: 1.5rem; }
.site-header.nav-under .header-inner {
  padding-bottom: 0.95rem;
}

/* Compact sticky state: keep a spacer on .header-slot so the page does not jump. */
.site-header.is-compact .header-inner {
  min-height: 0;
  padding: 0.35rem 0 0.45rem;
}
.site-header.is-compact .brand img { height: 3.5rem; }
.site-header.nav-under.is-compact .header-inner { gap: 0.15rem; }

@media (max-width: 800px) {
  :root { --header-h: 6.85rem; }
  .site-header.nav-split .header-inner,
  .site-header.nav-under .header-inner {
    display: grid;
    grid-template-columns: 2.75rem 1fr 2.75rem;
    align-items: center;
    column-gap: 0.5rem;
    min-height: var(--header-h);
    padding: 0.55rem 0;
  }
  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .brand img { height: 80px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    z-index: 3;
  }
  .site-header.nav-split .site-nav,
  .site-header.nav-under .site-nav,
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: #08090b;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.5)),
      url("../images/textures/header-damask.svg"),
      url("../images/textures/header-onyx.svg");
    background-size: auto, 220px 220px, 100% auto;
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 0 1rem;
    pointer-events: auto;
    z-index: 5;
  }
  .site-nav.is-open { display: block; }
  .site-header.nav-split .site-nav.is-open,
  .site-header.nav-under .site-nav.is-open { display: block; }
  .site-nav ul,
  .site-header.nav-split .site-nav ul,
  .site-header.nav-under .site-nav ul {
    display: block;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    pointer-events: auto;
    width: 100%;
    justify-self: stretch;
    grid-column: auto;
  }
  .site-header.nav-split .nav-left,
  .site-header.nav-split .nav-right,
  .site-header.nav-under .nav-left,
  .site-header.nav-under .nav-right {
    justify-self: stretch;
    grid-column: auto;
    width: 100%;
  }
  .site-header.nav-under .site-nav {
    border-top: 0;
    padding: 0.5rem 0 1rem;
    gap: 0;
  }
  .site-nav a, .cart-link {
    display: block;
    padding: 0.85rem var(--gutter);
    border: 0;
    text-align: left;
  }
  .has-hero .site-header::after { height: 3.5rem; }
  .site-header.is-compact .brand img { height: 3.5rem; }
  .site-header.is-compact .header-inner { padding: 0.35rem 0; min-height: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand img { transition: height var(--ease); }
  .header-inner { transition: padding var(--ease), min-height var(--ease); }
}

/* Hero — full-bleed grotto nave. No monogram here (it would cover Mary; the nav already carries it). */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(54rem, max(52rem, calc(100svh - var(--header-h))));
  display: grid;
  place-items: end center;
  text-align: center;
  padding: 0 0 1.15rem;
  overflow: hidden;
  background: #0b0a08;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg picture,
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  object-fit: cover;
  object-position: center 46%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Darken only the lower third for the type. Leave Mary, the light, and the angels clear. */
  background: linear-gradient(
    180deg,
    rgba(11, 10, 8, 0.08) 0%,
    rgba(11, 10, 8, 0.03) 48%,
    rgba(11, 10, 8, 0.08) 64%,
    rgba(11, 10, 8, 0.48) 76%,
    rgba(11, 10, 8, 0.88) 100%
  );
}
.hero-copy {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
}
.hero h1,
.hero .kicker,
.hero .tagline,
.hero .battle-line {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero .kicker { margin-bottom: 0.08em; }
.hero h1 { margin: 0.06em 0 0.06em; font-size: clamp(1.65rem, 3.1vw, 2.5rem); }
.hero .btn { padding: 0.72rem 1.3rem; min-height: 2.45rem; }
.tagline {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin: 0 0 0.18rem;
}
.battle-line {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-soft);
  margin: 0 0 0.55rem;
}
.hero .btn-row { justify-content: center; }
.hero .btn-ghost {
  background: rgba(11, 10, 8, 0.5);
}
@media (max-width: 800px) {
  /* Keep Mary and the serpent in the 33–66% band; pack the type into
     the lower third so it sits below them. Side-by-side buttons save height. */
  .hero {
    min-height: 40rem;
    padding: 0 0 1rem;
  }
  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }
  .hero h1 { font-size: 1.55rem; letter-spacing: 0.12em; margin: 0.08em 0 0.08em; }
  .hero .kicker { font-size: 1.15rem; margin-bottom: 0.08em; }
  .hero .tagline { font-size: 0.82rem; margin-bottom: 0.2rem; }
  .hero .battle-line { font-size: 1rem; margin-bottom: 0.55rem; }
  .hero .btn-row { flex-wrap: nowrap; gap: 0.45rem; }
  .hero .btn {
    padding: 0.65rem 0.45rem;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    min-height: 2.35rem;
    flex: 1 1 0;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(11, 10, 8, 0.06) 0%,
      rgba(11, 10, 8, 0.03) 58%,
      rgba(11, 10, 8, 0.45) 72%,
      rgba(11, 10, 8, 0.90) 100%
    );
  }
}

/* Collection cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.saint-card, .product-card {
  background: color-mix(in srgb, var(--charcoal) 80%, #000);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  padding: 1.4rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color var(--ease), background var(--ease);
}
a.saint-card:hover, a.product-card:hover {
  border-color: var(--gold-soft);
  background: color-mix(in srgb, var(--charcoal) 70%, var(--navy));
  color: inherit;
}
.saint-card .emblem {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 0.4rem;
}
.saint-card h3, .product-card h3 { text-align: center; margin: 0; color: var(--gold-bright); line-height: 1.3; text-wrap: balance; overflow-wrap: break-word; }
.epithet {
  font-style: italic;
  text-align: center;
  color: var(--parchment-dim);
  margin: 0;
  font-size: 1.05rem;
}
.saint-card p, .product-card p { flex: 1; font-size: 1.02rem; }
.card-meta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  margin: 0;
}
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 0.2rem 0.5rem;
  align-self: center;
}
.badge-flagship { border-color: var(--gold); background: color-mix(in srgb, var(--crimson) 45%, transparent); }
.badge-soon { border-color: var(--stone-light); color: var(--parchment-dim); }

/* Flagship split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 800px) { .split, .split.rev { grid-template-columns: 1fr; } }
.panel {
  background: color-mix(in srgb, var(--charcoal) 85%, transparent);
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--gold-soft);
}
.panel::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.art-frame {
  background: #12100e;
  border: 1px solid var(--rule);
  padding: 1.25rem 1rem;
  display: grid;
  place-items: center;
}
.art-frame img { max-height: 36rem; margin-inline: auto; }
.caption {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--parchment-dim);
  text-align: center;
  margin: 0.75rem 0 0;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
}
.why-item h3 { margin-bottom: 0.4em; }

/* Saint of the month + apparel */
.month-panel { max-width: 48rem; margin-inline: auto; text-align: center; }
.apparel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 700px) { .apparel-grid { grid-template-columns: 1fr; } }
.apparel-card img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.apparel-card figcaption { padding: 0.8rem 0.2rem 0; text-align: center; color: var(--parchment-dim); font-style: italic; font-size: 0.95rem; }

/* Newsletter */
.newsletter {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--crimson-deep) 55%, transparent), transparent 70%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
form { max-width: 32rem; margin: 1.25rem auto 0; }
.field { margin-bottom: 0.9rem; text-align: left; }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}
input[type="email"], input[type="text"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--parchment);
  background: var(--ink);
  border: 1px solid var(--stone);
  padding: 0.7rem 0.8rem;
  min-height: 2.75rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.form-note { font-size: 0.95rem; color: var(--parchment-dim); margin-top: 0.75rem; }
.form-status[hidden] { display: none; }
.form-status {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--ink) 80%, var(--gold));
  color: var(--parchment);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  color: var(--parchment-dim);
  font-size: 1rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand img { width: 4.5rem; height: auto; margin-bottom: 0.7rem; }
.footer-brand .brand-name { color: var(--gold-bright); display: block; margin-bottom: 0.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { color: var(--parchment-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.copyright { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.95rem; text-align: center; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* Breadcrumb + page hero */
.crumb {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1.25rem 0 0;
  color: var(--parchment-dim);
}
.crumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.crumb li:not(:last-child)::after { content: " / "; color: var(--stone-light); margin-left: 0.4rem; }
.crumb a { color: var(--parchment-dim); text-decoration: none; }
.crumb a:hover { color: var(--gold-bright); }
.page-intro { padding: 2rem 0 1rem; }

/* Product */
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: 3rem;
}
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; } }
.gallery-main {
  background: #12100e;
  border: 1px solid var(--rule);
  padding: 1rem;
  min-height: 22rem;
  display: grid;
  place-items: center;
}
.gallery-main img { width: auto; height: auto; max-width: 100%; max-height: 34rem; object-fit: contain; margin-inline: auto; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.thumbs button {
  background: #12100e;
  border: 1px solid var(--stone);
  padding: 0.25rem;
  cursor: pointer;
}
.thumbs button[aria-current="true"], .thumbs button:hover { border-color: var(--gold); }
.thumbs img { width: 100%; height: 4.5rem; object-fit: contain; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; margin: 0.8rem 0 1rem; }
.price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}
.buy-box .btn { width: 100%; margin-top: 0.6rem; }
.option-row { margin: 0.85rem 0; }
.option-row select { max-width: 100%; }

/* Prayer card */
.prayer-card {
  background:
    linear-gradient(180deg, #f3ead8, #e6d8bc);
  color: #2a2014;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 8px solid #3d0c0e;
  box-shadow: inset 0 0 0 1px var(--gold-deep);
  max-width: 44rem;
  margin: 0 auto;
}
.prayer-card h2, .prayer-card .eyebrow { color: var(--crimson-deep); }
.prayer-card .eyebrow { color: var(--gold-deep); }
.prayer {
  font-size: 1.22rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 1.1rem;
}
.prayer p { margin: 0 0 0.4em; }
.drop {
  font-family: var(--font-blackletter);
  font-size: 2.6rem;
  font-style: normal;
  color: var(--crimson);
  float: left;
  line-height: 0.8;
  padding-right: 0.3rem;
  padding-top: 0.15rem;
}
.prayer-latin {
  font-size: 1.05rem;
  color: #4a3a28;
  border-top: 1px solid color-mix(in srgb, var(--gold-deep) 50%, transparent);
  padding-top: 1rem;
  margin-top: 1rem;
}
.prayer-card .source { font-size: 0.95rem; color: #5a4a36; margin-top: 1rem; }

.prose { max-width: var(--measure); }
.prose.wide, .prose-center { max-width: 44rem; margin-inline: auto; }

/* Utility */
.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;
}


/* Extended mockup: collections, missions, shop pages */
.materials {
  background: color-mix(in srgb, var(--charcoal) 80%, transparent);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem 1.25rem;
  margin: 2rem 0;
}
.materials h2 { margin-bottom: 0.4em; }
.materials-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.materials-list li {
  padding: 0.9rem 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.materials-list li:first-child { border-top: 0; padding-top: 0; }
.materials-list strong { color: var(--gold-bright); font-family: var(--font-display); letter-spacing: 0.06em; font-weight: 600; }
.materials-list cite { display: block; font-style: normal; font-size: 0.92rem; color: var(--parchment-dim); margin-top: 0.35rem; }
.materials-list cite a { color: var(--gold-soft); }
.legal-note, .sample-caption {
  font-size: 0.95rem;
  color: var(--parchment-dim);
  font-style: italic;
  max-width: 44rem;
}
.legal-note {
  border-left: 2px solid var(--gold-deep);
  padding: 0.75rem 0 0.75rem 1rem;
  margin: 1.5rem 0;
  font-style: normal;
}
.sample-caption { margin: 0.5rem auto 0; text-align: center; }
.badge-sample {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
  letter-spacing: 0.14em;
}
.missions-band {
  background:
    linear-gradient(180deg, rgba(11,10,8,0.3), rgba(11,10,8,0.15)),
    var(--charcoal);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.form-grid { display: grid; gap: 1rem; max-width: 36rem; }
.form-grid label, .field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}
.form-grid input, .form-grid textarea, .form-grid select,
.checkout-fields input, .checkout-fields select {
  width: 100%;
  background: #100e0c;
  color: var(--parchment);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.8rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.form-grid textarea { min-height: 8rem; resize: vertical; }
.form-status, .form-note { margin-top: 0.8rem; color: var(--gold-soft); }
.cart-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.cart-table th, .cart-table td {
  text-align: left;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cart-table th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}
.protect-box {
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--navy) 35%, transparent);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
}
.protect-box h2, .protect-box h3 { margin-top: 0; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
.disabled-pay[disabled], .disabled-pay {
  opacity: 0.7;
  cursor: not-allowed;
}
.faq-list { max-width: 44rem; margin-inline: auto; }
.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
}
.faq-list summary {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  cursor: pointer;
}
.faq-list details p { margin: 0.6rem 0 0.2rem; }
.subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  justify-content: center;
  margin: 0.5rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.subnav-links a { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--parchment-dim); }
.subnav-links a:hover, .subnav-links a[aria-current="page"] { color: var(--gold-bright); }


/* Logo variants: gold is the default; white/ivory via ?logo=white or compare frames. */
.brand .logo-white,
.footer-brand .logo-white { display: none; }
html[data-logo="white"] .brand .logo-gold,
html[data-logo="white"] .footer-brand .logo-gold { display: none; }
html[data-logo="white"] .brand .logo-white,
html[data-logo="white"] .footer-brand .logo-white { display: block; }
.logo-force-white .logo-gold { display: none !important; }
.logo-force-white .logo-white { display: block !important; }
.logo-force-gold .logo-white { display: none !important; }
.logo-force-gold .logo-gold { display: block !important; }

.price-note {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
  font-style: italic;
  color: var(--parchment-dim);
  text-transform: none;
}
.product-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 52rem;
  margin-inline: auto;
}
@media (max-width: 700px) {
  .product-pair { grid-template-columns: 1fr; }
}
.product-card .price-row,
.saint-card .price-row,
.product-card .card-meta,
.saint-card .card-meta { flex: 0 0 auto; }

.compare-page .compare-block { margin: 0 0 3.25rem; }
.compare-frame {
  border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  overflow: hidden;
  background: var(--ink);
}
.compare-frame .site-header { position: relative; }
.compare-frame .hero {
  min-height: 28rem;
  max-height: 32rem;
  overflow: hidden;
}
.compare-frame .nav-toggle { pointer-events: none; }

/* Easter egg: hidden Sacred Heart hero, revealed only by an explicit gesture or ?egg=1. */
html.is-egg-pull {
  overscroll-behavior-y: none;
}
body.is-egg-open {
  overflow: hidden;
  overscroll-behavior-y: none;
}
.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: #0b0a08;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 420ms ease;
}
.easter-egg.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.easter-egg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 10, 8, 0.42);
}
.easter-egg-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  height: 100svh;
  background: #0b0a08;
  transform: translateY(-18%);
  opacity: 0.72;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}
.easter-egg.is-open .easter-egg-panel {
  transform: translateY(0);
  opacity: 1;
}
.easter-egg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.easter-egg-media picture,
.easter-egg-media img {
  display: block;
  width: 100%;
  height: 100%;
}
.easter-egg-media img {
  object-fit: cover;
  object-position: center 28%;
}
@media (max-width: 800px) {
  .easter-egg-media img { object-position: center 18%; }
}
.easter-egg-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 4.5rem 1.5rem 2.4rem;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--parchment);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
  background: linear-gradient(180deg, rgba(11, 10, 8, 0) 0%, rgba(11, 10, 8, 0.55) 45%, rgba(11, 10, 8, 0.88) 100%);
  pointer-events: none;
}
.easter-egg-close {
  position: absolute;
  top: max(0.6rem, env(safe-area-inset-top, 0px));
  right: max(0.6rem, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: rgba(11, 10, 8, 0.55);
  color: var(--gold-bright);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.easter-egg-close:hover,
.easter-egg-close:focus-visible {
  border-color: var(--gold-bright);
  background: rgba(11, 10, 8, 0.8);
}
@media (prefers-reduced-motion: reduce) {
  .easter-egg,
  .easter-egg-panel {
    transition: opacity 200ms ease, visibility 200ms ease;
  }
  .easter-egg-panel { transform: none; opacity: 1; }
}

/* Emblem watermark background (theme 1.1.16, subtle strength) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../images/emblem-bg/emblem-desktop-subtle.webp") 50% 50% / min(125vmin, 1150px) auto no-repeat;
}
@media (max-width: 640px) {
  body::before {
    background-image: url("../images/emblem-bg/emblem-mobile-subtle.webp");
    background-size: min(150vw, 640px) auto;
  }
}
