* {
  box-sizing: border-box;
}

:root {
  --accent: #d9c29a;
  --paper: #f1e7d1;
  --ink: #f8f1e3;
  --muted: rgba(248, 241, 227, 0.62);
  --void: #070706;
  --glass: rgba(14, 13, 11, 0.48);
  --line: rgba(241, 231, 209, 0.24);
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

body {
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 28rem),
    radial-gradient(circle at 18% 80%, rgba(52, 73, 58, 0.46), transparent 34rem),
    linear-gradient(115deg, #090806 0%, #14110d 46%, #050504 100%);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  opacity: 0.28;
}

.stage::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 48%, transparent 0%, transparent 36%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.72));
}

.loop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(0.82) contrast(1.06) brightness(0.64);
}

.loop.is-missing {
  display: none;
}

.brand {
  position: fixed;
  z-index: 10;
  top: 1.4rem;
  left: 1.35rem;
  font: 700 0.78rem/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(248, 241, 227, 0.82);
}

.shell {
  position: fixed;
  z-index: 9;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(1.2rem, 3vw, 3.5rem);
  pointer-events: none;
}

.card {
  width: min(92vw, 760px);
  margin-bottom: clamp(2rem, 6vh, 6rem);
  padding: clamp(1.2rem, 3.2vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--glass);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  pointer-events: auto;
}

.kicker {
  margin: 0 0 0.7rem;
  font: 700 0.72rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.leader-name {
  margin: 0;
  font-size: clamp(4rem, 14vw, 10.5rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.leader-line {
  width: min(35rem, 100%);
  margin: 1.15rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.45;
}

.enter {
  display: inline-flex;
  min-width: min(100%, 23rem);
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0 2rem;
  border: 1px solid rgba(241, 231, 209, 0.48);
  border-radius: 999px;
  color: var(--paper);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, rgba(255,255,255,0.08)), rgba(255, 255, 255, 0.04));
  text-decoration: none;
  font-size: 1.08rem;
  font-style: italic;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 45px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.enter:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 34%, rgba(255,255,255,0.1)), rgba(255, 255, 255, 0.06));
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.chip {
  border: 1px solid rgba(241, 231, 209, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: rgba(248, 241, 227, 0.54);
  font: 600 0.66rem/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.index-list a {
  border: 1px solid rgba(241, 231, 209, 0.18);
  border-radius: 18px;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.index-list span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.garden-layout {
  place-items: center;
}

.garden-card {
  width: min(92vw, 660px);
  text-align: center;
}

.garden-title {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.status {
  margin: 1rem auto 1.8rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 34rem;
}

.garden-cta {
  margin: 0 auto;
}

.back {
  display: inline-block;
  margin-top: 1.2rem;
  color: rgba(248, 241, 227, 0.62);
  text-decoration: none;
  font: 700 0.7rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .shell {
    align-items: flex-end;
    justify-content: stretch;
  }

  .card {
    border-radius: 28px;
  }

  .index-list {
    grid-template-columns: 1fr;
  }
}

/* Dedicated religious frontends mirror the main live companion landing:
   fullscreen loop, centered brand, bottom CTA. */
.live-companion-page {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.lc-bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  pointer-events: none;
}

.lc-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 25%, transparent 70%, rgba(0,0,0,0.45) 100%);
}

.lc-brand {
  position: fixed;
  top: 2rem;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.92);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.lc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  padding-bottom: 13vh;
  pointer-events: none;
}

.lc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(78vw, 19rem);
  padding: 12px 30px;
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 100px;
  color: #fff;
  background: transparent;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(13px, 1.2vw, 17px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.13em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.10);
  pointer-events: auto;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, letter-spacing 0.4s;
}

.lc-pill:hover {
  background: rgba(255,255,255,0.05);
  border-color: #fff;
  letter-spacing: 0.18em;
  box-shadow: 0 0 40px rgba(255,255,255,0.10), 0 0 80px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.2);
}
