/* Joseph 60 supporting pages — the cinematic public language,
   applied without changing page behavior or legal content. */

:root {
  --bg: #07111f;
  --surface: #0d1b2c;
  --accent: #73aedd;
  --accent-dim: rgba(115, 174, 221, 0.58);
  --amber: #d6a94a;
  --ink: #f5f1e8;
  --body: #bcc7d2;
  --muted: #8291a2;
  --hair: rgba(163, 190, 215, 0.15);
  --hair-soft: rgba(163, 190, 215, 0.08);
}

body { background-color: var(--bg); }

.site-header {
  padding-block: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(5,13,24,.82), rgba(5,13,24,.38));
  backdrop-filter: blur(14px);
}

.wordmark { letter-spacing: .28em; }

.page-head {
  min-height: clamp(25rem, 58vh, 39rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: clamp(8rem, 18vh, 12rem) clamp(5rem, 10vh, 7rem);
  isolation: isolate;
  border-bottom: 1px solid var(--hair);
}

.page-head::before,
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.page-head::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,13,24,.32), rgba(5,13,24,.8)),
    radial-gradient(circle at 50% 40%, transparent 0, rgba(5,13,24,.22) 44%, rgba(5,13,24,.7) 100%);
}

.page-head .wrap { text-align: center; }

.page-head h1 {
  max-width: 11ch;
  margin-inline: auto;
  font-size: clamp(4rem, 11vw, 8.5rem);
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}

.page-head .sub,
.page-head .measure {
  margin: 1.4rem auto 0;
  color: rgba(241,245,248,.78);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.rules-page .page-head::before {
  background: url("assets/wall.webp") center 48% / cover no-repeat;
  transform: scale(1.025);
}

.join-page .page-head::before {
  background: url("assets/hero-path.webp") center 48% / cover no-repeat;
  transform: scale(1.025);
}

.join-page .page-head::after {
  background: linear-gradient(180deg, rgba(5,13,24,.3), rgba(5,13,24,.83));
}

.confirmed-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.confirmed-page .page-head { flex: 1; min-height: 82svh; }
.confirmed-page .page-head::before {
  background: url("assets/hero-path.webp") center / cover no-repeat;
  filter: saturate(.78);
}
.confirmed-page .page-head h1 { max-width: 13ch; font-size: clamp(3.6rem, 9vw, 7rem); }

section.surface,
section.seam {
  padding-block: clamp(5.25rem, 10vw, 8rem);
}

section.surface { background: rgba(13,27,44,.78); }

section > .wrap { position: relative; }

.label {
  opacity: 1;
  color: var(--accent);
  letter-spacing: .23em;
}

h2 { color: var(--ink); text-wrap: balance; }

.measure p { color: #b7c3cf; }
.measure strong { color: var(--ink); font-weight: 500; }
.measure a { color: var(--accent); text-underline-offset: .2em; }

.rules {
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(19,39,61,.9), rgba(10,25,41,.76));
  box-shadow: 0 28px 80px rgba(0,0,0,.2);
}

.rule {
  padding-inline: clamp(1.35rem, 4vw, 2.5rem);
  transition: background .25s ease, border-color .25s ease;
}
.rule:hover { background: rgba(115,174,221,.055); }
.rule .name { color: var(--ink); }

.compare { gap: 1rem; }
.compare .card {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18,37,58,.9), rgba(10,24,39,.8));
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
}
.compare .card.warm { background: linear-gradient(145deg, rgba(54,43,26,.52), rgba(16,28,42,.9)); }

.closing { text-align: center; }
.closing h2 { font-size: clamp(3rem, 7vw, 5rem); }

.invite { min-height: 34rem; display: grid; place-items: center; }
.invite-panel {
  max-width: 39rem;
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: 22px;
  border: 1px solid rgba(115,174,221,.24);
  background: linear-gradient(145deg, rgba(19,40,63,.96), rgba(10,24,40,.96));
  box-shadow: 0 35px 100px rgba(0,0,0,.32);
}
.code { color: var(--ink); }
.btn { border-radius: 999px; }
.btn.solid { color: #07111f; background: var(--ink); border-color: var(--ink); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

.legal-page .page-head { min-height: 24rem; }
.legal-page .page-head::before {
  background:
    radial-gradient(circle at 50% 25%, rgba(115,174,221,.16), transparent 42%),
    linear-gradient(140deg, #0e2034, #07111f 64%);
}
.legal-page .page-head::after { background: linear-gradient(180deg, transparent, rgba(5,13,24,.55)); }
.legal-page .page-head h1 { font-size: clamp(3.5rem, 9vw, 6.7rem); }
.legal-page section:not(.page-head) .wrap { max-width: 900px; }
.legal-page section:not(.page-head) h2 { font-size: clamp(2rem, 4.5vw, 3rem); }

.site-footer { border-top: 1px solid var(--hair); background: #050d18; }

@media (max-width: 640px) {
  .page-head { min-height: 25rem; }
  .rules-page .page-head::before { background-position: 58% center; }
  .join-page .page-head::before { background-position: 64% center; }
  .invite-actions { align-items: stretch; }
  .invite-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
