/* Ritus Per Diem — sanctum, luxury minimal */

:root {
  --black: #0c0b09;
  --black-deep: #080706;
  --ivory: #f3eee4;
  --ivory-dim: #b9b1a4;
  --stone: #7a7266;
  --taupe: #5c554c;
  --gold: #b89c62;
  --gold-line: rgba(184, 156, 98, 0.38);
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 28rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--black-deep);
  height: 100%;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.18rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--black);
  background-image:
    radial-gradient(1200px 700px at 50% 12%, rgba(184, 156, 98, 0.055), transparent 58%),
    radial-gradient(900px 600px at 50% 100%, rgba(20, 16, 10, 0.7), transparent 55%),
    linear-gradient(180deg, #100e0b 0%, #0c0b09 28%, #0a0908 100%);
  text-align: center;
}

/* Warm grain + vignette — depth, not wallpaper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.085;
  background-image: url("assets/grain.png");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 81;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.38) 100%);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover, a:focus-visible { color: var(--ivory); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ivory);
  color: var(--black);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Card scroll — one stop per panel */
.card,
.hero,
.creed-block,
.rite-card,
.look,
.congregation {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.hero,
.creed-block,
.rite-card,
.congregation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.look {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 clamp(1.5rem, 6vw, 3rem);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}

.congregation.panel {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 clamp(1.5rem, 6vw, 3rem);
  max-width: none;
  width: 100%;
}


.books {
  max-width: none;
  padding: 0;
  margin: 0;
}

.site-footer {
  scroll-snap-align: end;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}


.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 3.5rem);
}

.nav-ig {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.nav-spacer { flex: 1; }


/* Panel chrome — from second card on */
.panel {
  position: relative;
  width: 100%;
}

.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.site-banner.is-visible {
  opacity: 1;
  visibility: visible;
}

.card-rail {
  /* legacy per-card rail unused — banner is fixed */
  display: none;
}

.card-rail-left,
.card-rail-right {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.card-rail-right {
  text-align: right;
}

.card-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
}

.card-foot a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--stone);
}

.card-foot a:hover,
.card-foot a:focus-visible {
  color: var(--gold);
}

.panel-body {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 4.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.look .panel-body {
  max-width: 36rem;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 4.25rem 0 3.85rem;
  box-sizing: border-box;
  justify-content: center;
}

.look .panel-body figure {
  margin: 0 0 1rem;
  width: 100%;
  max-height: calc(100dvh - 10.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cards 2–3: sit just above optical center */
.creed-block .panel-body,
.rite-card .panel-body {
  transform: translateY(-6vh);
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}


.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Equal inset so the mark sits true vertical center */
  padding: 0 1.5rem;
}

.mark-hero {
  margin: 0;
  display: flex;
  justify-content: center;
}
.mark-hero img {
  width: auto;
  height: min(72vh, 38rem);
  display: block;
}


.section {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(8rem, 18vh, 12rem) clamp(1.5rem, 6vw, 3rem);
  text-align: center;
}

.creed-block.section,
.rite-card.section,
.congregation.section {
  padding-top: 0;
  padding-bottom: 0;
  max-width: 42rem;
}


.eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 auto 2rem;
  text-align: center;
  padding-left: 0.4em;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.eyebrow-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin: -1.35rem auto 2.75rem;
  text-align: center;
  padding-left: 0.32em;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.section h2 {
  margin: 0 0 2.75rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.liturgy {
  margin: 0 auto 1.25rem;
  max-width: var(--measure);
  font-style: italic;
  font-size: 1.2em;
  color: var(--ivory);
}


.creed-block .eyebrow {
  margin-bottom: 2rem;
}

.creed {
  margin: 0 auto;
  max-width: 28rem;
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.creed + .creed-block .eyebrow {
  margin-bottom: 2rem;
}

.creed { margin-top: 0.85rem; }
.creed-last {
  margin-top: 2.25rem;
  font-style: italic;
  color: var(--ivory-dim);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.quiet {
  margin: 2.25rem auto 0;
  max-width: 26rem;
  color: var(--ivory-dim);
  font-size: 1.02em;
}




.rite-card {
  max-width: 36rem;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}

.rite-card .eyebrow {
  margin-bottom: 1.25rem;
}

.rite-card .eyebrow-sub {
  margin: 0;
  color: var(--ivory-dim);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  white-space: nowrap;
  max-width: none;
  padding-left: 0.26em;
}

.books {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.look {
  text-align: center;
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.look figure {
  margin: 0 auto 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.look img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 10.5rem);
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* Taller allegories (Pride, Greed) — keep image + foot in one frame */
#pride img,
#greed img {
  max-height: calc(100dvh - 10.75rem);
}

.verse-ref {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 auto;
  text-align: center;
  /* letter-spacing adds after the last glyph — pad left so the block sits optically true */
  padding-left: 0.32em;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.look h3 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.look p:last-child {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--ivory-dim);
}


.ritual-invite {
  margin: 0 0 2.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.02em;
  color: var(--ivory);
  line-height: 1.4;
}

.congregation-form {
  max-width: 26rem;
  margin: 0 auto;
}

.field-row {
  display: flex;
  border-bottom: 1px solid var(--gold-line);
}

.congregation-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 1rem 0;
}

.congregation-form input::placeholder { color: var(--taupe); }

.congregation-form button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0 0 0 1.25rem;
  cursor: pointer;
}

.congregation-form button:hover { color: var(--ivory); }

.form-status {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin: 1.1rem 0 0;
  min-height: 1.2em;
}
.form-status.is-ok { color: var(--gold); }
.form-status.is-err { color: #c4a090; }

.ig-line {
  margin: 3.5rem 0 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-footer {
  padding: 0 1.5rem clamp(5rem, 12vh, 8rem);
  text-align: center;
}

.site-footer p {
  margin: 0 auto;
  max-width: 22rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
  line-height: 1.7;
}

.site-footer .footer-line {
  margin: 0 auto;
  max-width: 26rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
  color: var(--ivory-dim);
  line-height: 1.6;
}
.site-footer .credit {
  margin-top: 2.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Final ritual card — weight upper third, invite just below center */
.congregation .weight-line {
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  padding: 0 clamp(1.5rem, 6vw, 3rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-align: center;
  pointer-events: none;
  line-height: 1.35;
}

.congregation .congregation-mid {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(36rem, calc(100% - 3rem));
  max-width: 36rem;
  margin: 0;
  padding: 0;
  height: auto;
  justify-content: flex-start;
}

.congregation .ritual-invite {
  margin: 0 0 1.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.card-foot--final {
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
}

.card-foot--final .foot-links {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.card-foot--final .foot-credit {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: none;
  color: var(--stone);
  text-align: center;
}


/* === multipage hub chrome === */

html:has(body.page-hub),
html:has(body.page-inner) {
  scroll-snap-type: none;
  overflow-y: auto;
}

body.page-hub,
body.page-inner {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Shared header stack metrics — chrome + optional Sovereignty branch bar */
:root {
  --chrome-pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --chrome-height: 3.85rem;
  --sov-subnav-height: 2.35rem;
}

.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  box-sizing: border-box;
  height: var(--chrome-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  padding: 0 var(--chrome-pad-x);
  pointer-events: none;
  background: #000;
}

.site-chrome a {
  pointer-events: auto;
}

.chrome-mark {
  display: flex;
  align-items: center;
  line-height: 0;
}

.chrome-mark img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
  opacity: 0.92;
}

.chrome-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
}

.chrome-links--left {
  justify-content: flex-start;
  justify-self: start;
}

.chrome-links--right {
  justify-content: flex-end;
  justify-self: end;
}

.chrome-mark {
  justify-self: center;
}

.chrome-links a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.chrome-links a:hover,
.chrome-links a:focus-visible,
.chrome-links a[aria-current="page"] {
  color: var(--gold);
}

/* Branch bar sits flush under primary chrome — one continuous header */
.sov-subnav {
  position: fixed;
  top: var(--chrome-height);
  left: 0;
  right: 0;
  z-index: 55;
  box-sizing: border-box;
  height: var(--sov-subnav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(2.7rem, 9vw, 5.5rem);
  padding: 0 var(--chrome-pad-x);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: #000;
  border-top: 1px solid rgba(184, 156, 98, 0.16);
  border-bottom: 1px solid rgba(184, 156, 98, 0.22);
  pointer-events: none;
}

/* Mirror primary chrome: wing · center · wing so Sinners shares the mark axis */
.sov-subnav-side {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.sov-subnav-side--left {
  justify-content: flex-end;
  justify-self: stretch;
}

.sov-subnav-side--right {
  justify-content: flex-start;
  justify-self: stretch;
}

.sov-subnav-center {
  justify-self: center;
  text-align: center;
}


body.page-sovereignty:has(.sov-subnav) .site-chrome {
  /* hairline already on subnav top — avoid double weight */
  box-shadow: none;
}

.sov-subnav a,
.sov-subnav .sov-sep {
  pointer-events: auto;
}

.sov-subnav-side a,
.sov-subnav-center {
  pointer-events: auto;
}

.sov-subnav a {
  color: var(--stone);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.12rem;
  line-height: 1;
}

.sov-subnav a:hover,
.sov-subnav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold-line);
}

.sov-subnav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold-line);
}

.sov-sep {
  color: var(--taupe);
  opacity: 0.55;
  font-size: 0.5rem;
  line-height: 1;
}

/* Clear fixed chrome + branch subheader on Sovereignty line pages */
body.page-sovereignty:has(.sov-subnav) .inner-main {
  padding-top: calc(var(--chrome-height) + var(--sov-subnav-height) + 1.25rem);
}

@media (max-width: 560px) {
  :root {
    --chrome-height: 3.55rem;
    --sov-subnav-height: 2.15rem;
  }

  .chrome-links {
    gap: 0.55rem 0.75rem;
  }

  .chrome-links a,
  .sov-subnav {
    letter-spacing: 0.14em;
  }

  .chrome-links a {
    font-size: 0.52rem;
  }

  .sov-subnav {
    font-size: 0.5rem;
    gap: 0.4rem 0.65rem;
  }
}

.hub-main,
.inner-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hub-hero {
  flex: 1 1 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.5rem 4rem;
  gap: clamp(2.5rem, 6vh, 4rem);
}

.mark-hero--hub img {
  height: min(42vh, 22rem);
}

.hub-entries {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
}

/* Landing: all four entries on one line */
.hub-entries--main {
  flex-wrap: nowrap;
  width: 100%;
  max-width: 40rem;
  gap: clamp(0.65rem, 2.8vw, 2.25rem);
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.hub-entries--main .hub-entry {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: clamp(0.52rem, 2.1vw, 0.72rem);
  letter-spacing: clamp(0.12em, 0.8vw, 0.32em);
}

.hub-entry {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.hub-entry:hover,
.hub-entry:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Always-visible gold underline so doors read as links */
.hub-entry--door {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
}

.hub-entry--door:hover,
.hub-entry--door:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.hub-enter-cue {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 0.85rem;
  text-align: center;
}

.hub-sep {
  color: var(--gold-line);
  font-size: 0.7rem;
  line-height: 1;
  user-select: none;
}

.hub-entries--sov {
  margin: 0.15rem 0 2.5rem;
  gap: clamp(0.65rem, 2.5vw, 1.35rem);
}

.sovereignty-panel .line-title {
  margin-bottom: 1rem;
}

.sovereignty-panel .sov-copy {
  margin-bottom: 0;
}

.inner-main {
  /* Clear fixed .site-chrome on every inner page (chrome-height shrinks ≤560px) */
  padding: calc(var(--chrome-height) + 1.5rem) clamp(1.5rem, 6vw, 3rem) 3rem;
  align-items: center;
  justify-content: center;
}

.inner-panel {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line-title {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ivory);
}
/* Line titles on Saints / Sinners / Reconciled */
body.page-sovereignty:has(.sov-subnav) .line-title {
  color: var(--gold);
}


.quiet-line {
  margin: 0 auto 2.5rem;
  max-width: 26rem;
  color: var(--ivory-dim);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.image-slot {
  margin: 0 auto;
  width: 100%;
  max-width: 22rem;
}

.image-slot-frame {
  aspect-ratio: 3 / 4;
  width: 100%;
  border: 1px solid var(--gold-line);
  background:
    linear-gradient(180deg, rgba(184, 156, 98, 0.04), transparent 55%),
    rgba(8, 7, 6, 0.55);
}

.image-slot figcaption {
  margin-top: 1rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  padding-left: 0.22em;
}

.site-foot {
  margin-top: auto;
  padding: 2.75rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(184, 156, 98, 0.18);
}

.site-foot .foot-links {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-foot .foot-links a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--stone);
}

.site-foot .foot-links a:hover,
.site-foot .foot-links a:focus-visible {
  color: var(--gold);
}

.site-foot .foot-credit {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--stone);
}

/* Dies Irae archive keeps card snap; chrome sits above */
body.page-dies-irae .site-chrome {
  background: #000;
}

@media (max-width: 560px) {
  .chrome-links {
    gap: 0.65rem 0.9rem;
  }
  .chrome-links a {
    font-size: 0.55rem;
    letter-spacing: 0.16em;
  }
  .mark-hero--hub img {
    height: min(36vh, 16rem);
  }
}

/* === Sovereignty collage (masonry-like, not editorial) === */

.inner-panel--collage {
  max-width: min(56rem, 100%);
}

.category-slot {
  min-height: 1.5rem;
  margin: 0 0 1.75rem;
  width: 100%;
  max-width: 26rem;
}

.page-sovereignty .quiet-line {
  margin-bottom: 0.35rem;
}

.collage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 0.45rem;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

.collage-item {
  position: relative;
  margin: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(184, 156, 98, 0.04), transparent 55%),
    rgba(8, 7, 6, 0.55);
  border: 1px solid rgba(184, 156, 98, 0.22);
  cursor: zoom-in;
}

.collage-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.collage-item--empty {
  /* reserved frame until assets land */
  min-height: 6rem;
  cursor: default;
}

/* Size variation = column span only — never crop the frame */
.collage-item--lg {
  grid-column: span 4;
}

.collage-item--tall {
  grid-column: span 2;
}

.collage-item--wide {
  grid-column: span 3;
}

.collage > .collage-item:not(.collage-item--lg):not(.collage-item--tall):not(.collage-item--wide) {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .collage-item--lg {
    grid-column: span 3;
  }

  .collage-item--tall {
    grid-column: span 2;
  }

  .collage-item--wide {
    grid-column: span 2;
  }

  .collage > .collage-item:not(.collage-item--lg):not(.collage-item--tall):not(.collage-item--wide) {
    grid-column: span 2;
  }
}

@media (max-width: 420px) {
  .collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collage-item--lg,
  .collage-item--tall,
  .collage-item--wide,
  .collage > .collage-item:not(.collage-item--lg):not(.collage-item--tall):not(.collage-item--wide) {
    grid-column: span 1;
  }

  .collage-item--lg {
    grid-column: span 2;
  }
}

/* Lightbox — full still over the subpage */
.collage-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 5, 4, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.collage-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.collage-lightbox__img {
  max-width: min(96vw, 56rem);
  max-height: min(88vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(184, 156, 98, 0.28);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.55);
}

.collage-lightbox__close,
.collage-lightbox__prev,
.collage-lightbox__next {
  appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  z-index: 1;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.collage-lightbox__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  font-size: 1.65rem;
}

.collage-lightbox__prev,
.collage-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.85rem;
  opacity: 0.45;
}

.collage-lightbox__prev {
  left: max(0.35rem, env(safe-area-inset-left));
}

.collage-lightbox__next {
  right: max(0.35rem, env(safe-area-inset-right));
}

.collage-lightbox__close:hover,
.collage-lightbox__prev:hover,
.collage-lightbox__next:hover,
.collage-lightbox__close:focus-visible,
.collage-lightbox__prev:focus-visible,
.collage-lightbox__next:focus-visible {
  color: var(--ivory);
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

/* Relics archive uses Dies Irae card snap + chrome */
body.page-relics .site-chrome {
  background: #000;
}

/* Clear fixed chrome — intro was sitting too tight under the nav */
body.page-relics .relics-intro.rite-card {
  padding-top: calc(var(--chrome-height) + 2.75rem);
  padding-bottom: 2.5rem;
  box-sizing: border-box;
}

body.page-relics .look {
  padding-top: calc(var(--chrome-height) + 1rem);
}


/* Shared ritual strip — bottom of every page */
.ritual-strip {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 6vw, 3rem) 1.5rem;
  text-align: center;
}

.ritual-strip .ritual-invite {
  margin: 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.ritual-link {
  color: inherit;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ritual-link:hover,
.ritual-link:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold-line);
}

.congregation-mid .ritual-invite {
  margin: 0;
}

.page-hub .ritual-strip,
.page-inner .ritual-strip {
  padding-top: 2.5rem;
}


/* Landing bare — mark + links only */
.page-hub--bare .site-chrome,
.page-hub--bare .site-foot,
.page-hub--bare .ritual-strip {
  display: none;
}

.page-hub--bare .hub-hero {
  padding: 0 1.5rem;
  min-height: 100vh;
  min-height: 100dvh;
}


.page-hub--bare {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-hub--bare .hub-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.hub-est {
  margin: 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  text-align: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}


/* Doctrine prose */
.doctrine-panel {
  max-width: 34rem;
  width: 100%;
}

.doctrine-body {
  text-align: center;
}

.doctrine-body > p {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1rem, 0.92rem + 0.28vw, 1.12rem);
  line-height: 1.8;
  color: var(--ivory-dim);
}

.doctrine-body > p.doctrine-close {
  margin: 0.65rem 0 0;
  font-style: italic;
  font-weight: 400;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ivory-dim);
}

.doctrine-body > p.doctrine-close:first-of-type {
  margin-top: 2.5rem;
}

.doctrine-close-last {
  margin-top: 1.75rem !important;
  color: var(--ivory-dim);
}


/* Relics intro */
.relics-intro-body {
  max-width: 34rem;
  width: 100%;
}

.relics-copy {
  text-align: center;
}

.relics-copy .rite-line {
  margin-top: 5.75rem; /* ~3 lines lower than prior */
  margin-bottom: 0;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  line-height: 1.55;
}

.rite-line-link {
  color: inherit;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 0.15rem;
  transition: color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.rite-line-link:hover,
.rite-line-link:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.scroll-cue {
  margin: 1.75rem 0 0;
  text-align: center;
}

.scroll-cue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding: 0.35rem 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.scroll-cue-link:hover,
.scroll-cue-link:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.scroll-cue-arrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0;
  animation: scroll-cue-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.28rem); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-arrow { animation: none; }
}

#look-halo {
  scroll-margin-top: 4.5rem;
}


/* Sovereignty hub */
.sovereignty-panel {
  max-width: 36rem;
  width: 100%;
}

.sov-copy {
  text-align: center;
  margin-bottom: 2.75rem;
}

.sov-copy .sov-branch {
  font-family: var(--sans);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 0.05em;
  cursor: pointer;
}

.sov-copy a.sov-branch:hover,
.sov-copy a.sov-branch:focus-visible {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.hub-entries--sov {
  margin-top: 0.5rem;
}


/* Status page */
.status-panel {
  max-width: 34rem;
  width: 100%;
}

.status-copy {
  margin-bottom: 2.5rem;
}

.status-form {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  text-align: center;
}

.status-form .field-row {
  margin-bottom: 2rem;
}

.status-form .interest-set {
  text-align: center;
}

.interest-set {
  border: 0;
  margin: 0 0 1.75rem;
  padding: 0;
}

.interest-legend {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 1.15rem;
  padding: 0;
  width: 100%;
  text-align: center;
}

.interest-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 0.95rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ivory-dim);
  cursor: pointer;
  text-align: center;
}

/* House mark checkbox — small gold squares only */
.interest-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 0 0 0.65rem;
  box-sizing: border-box;
  width: 0.65rem;
  height: 0.65rem;
  min-width: 0.65rem;
  min-height: 0.65rem;
  max-width: 0.65rem;
  max-height: 0.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gold);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  align-self: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.interest-option input[type="checkbox"]:hover {
  border-color: var(--ivory);
}

.interest-option input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.interest-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0.18rem;
  height: 0.32rem;
  border: solid #0c0b09;
  border-width: 0 1.25px 1.25px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

.interest-option input[type="checkbox"]:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.interest-option--all {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-line);
  color: var(--ivory-dim);
}



.foot-legal,
.hub-legal {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0.85rem 0 0;
  opacity: 0.9;
}

.hub-legal {
  text-align: center;
  margin: 0.5rem auto 1.5rem;
  max-width: 28rem;
  opacity: 0.85;
}

.site-foot .foot-legal {
  margin-top: 0.85rem;
}




.hub-credit {
  margin: 0.35rem 0 1.25rem;
  text-align: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.9;
}


/* Creator credit links to /just-akash/ */
.foot-credit a,
.hub-credit a,
.hub-est a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot-credit a:hover,
.foot-credit a:focus-visible,
.hub-credit a:hover,
.hub-credit a:focus-visible,
.hub-est a:hover,
.hub-est a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold-line);
}
.just-akash-panel .line-title {
  letter-spacing: 0.18em;
}
.just-akash-body {
  max-width: 34rem;
}


/* Status form quiet privacy line */
.privacy-note {
  margin: 1.25rem 0 0;
  max-width: 22rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.55;
  color: var(--stone);
  text-align: center;
}
