/* ============================================================
   Monday Night Live — "Where Jesus Walked" registration
   Aesthetic: reverent editorial. Warm parchment, deep ink,
   terracotta + ochre accents. Display: Fraunces. Body: Spectral.
   ============================================================ */

:root {
  --parchment: #f3e9d8;
  --parchment-deep: #ece0c9;
  --ink: #2b2118;
  --ink-soft: #5a4d3d;
  --terracotta: #b35636;
  --terracotta-deep: #99401f;
  --ochre: #c0903c;
  --olive: #5f6b43;
  --line: rgba(43, 33, 24, 0.16);
  --card: #fbf6ec;
  --shadow: 32px 40px 80px -48px rgba(43, 33, 24, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: "Spectral", Georgia, serif;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(120% 90% at 8% 0%, rgba(192, 144, 60, 0.18) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(179, 86, 54, 0.16) 0%, transparent 50%),
    repeating-linear-gradient(
      102deg,
      transparent 0 38px,
      rgba(43, 33, 24, 0.022) 38px 39px
    );
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

/* Subtle film grain over everything, fixed so it never repaints on scroll */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  min-height: 100vh;
}

/* ---------- Invitation (left) ---------- */
.invite {
  max-width: 38rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--terracotta-deep);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: 0.4rem 0.95rem 0.4rem 0.5rem;
  border: 1px solid rgba(179, 86, 54, 0.28);
  border-radius: 999px;
  background: rgba(251, 246, 236, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.wordmark__mark {
  display: inline-flex;
  color: var(--terracotta);
}
.wordmark__mark svg {
  width: 26px;
  height: 26px;
}
.wordmark__text {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.01em;
}

/* Main banner — the Zoom highlight */
.banner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 246, 236, 0.6);
  backdrop-filter: blur(2px);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 100%;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(179, 86, 54, 0.18);
  align-self: center;
}
.banner__label {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--terracotta-deep);
}
.banner__sep {
  color: var(--ochre);
}
.banner__time {
  color: var(--ink-soft);
  font-family: "Spectral", serif;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1.4rem;
}

/* Sub-banner — class title + start date */
.sub-banner {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.06s both;
}
.title::first-line {
  /* keeps balance graceful on wrap */
}
.starts {
  margin-top: 0.85rem;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: var(--terracotta-deep);
  position: relative;
  padding-left: 2.75rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}
.starts::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 2rem;
  height: 1px;
  background: var(--ochre);
}

.lede {
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both;
}
.fact dt {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ochre);
  margin-bottom: 0.3rem;
}
.fact dd {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  color: var(--ink);
}

/* ---------- Registration card (right) ---------- */
.register {
  display: flex;
  justify-content: center;
}
.card {
  width: 100%;
  max-width: 30rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
  position: relative;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}
.card::before {
  /* hairline inner frame, like a printed card */
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(192, 144, 60, 0.35);
  border-radius: 11px;
  pointer-events: none;
}

.card__kicker {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}
.card__heading {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.card__heading-mnl {
  color: #c0392b;
}
.card__sub {
  color: var(--ink-soft);
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
}

.field {
  margin-bottom: 1.15rem;
}
.field label {
  display: block;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.field input {
  width: 100%;
  font-family: "Spectral", serif;
  font-size: 1.6rem;
  color: var(--ink);
  background: rgba(243, 233, 216, 0.5);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.9rem 1.1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder {
  color: rgba(90, 77, 61, 0.5);
}
.field input:hover {
  border-color: rgba(43, 33, 24, 0.3);
}
.field input:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(179, 86, 54, 0.14);
}
.field input:user-invalid {
  border-color: var(--terracotta-deep);
}
.field__error {
  display: block;
  min-height: 1em;
  margin-top: 0.4rem;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--terracotta-deep);
}

/* Honeypot — hidden from people */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  width: 100%;
  margin-top: 0.4rem;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--parchment);
  background: var(--ink);
  border: none;
  border-radius: 9px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.25s ease;
}
.submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(192, 144, 60, 0.5), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.submit:hover {
  background: var(--terracotta-deep);
}
.submit:hover::after {
  transform: translateX(120%);
}
.submit:active {
  transform: translateY(1px) scale(0.995);
}
.submit:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}
.submit[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.card__foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Success state ---------- */
.confirm {
  text-align: center;
  padding: 0.5rem 0 0.75rem;
  animation: rise 0.5s ease both;
}
.confirm__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--olive);
  background: rgba(95, 107, 67, 0.12);
  border: 1px solid rgba(95, 107, 67, 0.35);
  margin-bottom: 1rem;
}
.confirm h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.confirm p {
  color: var(--ink-soft);
  font-size: 1.5rem;
}

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    min-height: auto;
  }
  .register {
    justify-content: stretch;
  }
  .card {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::after,
  *::before {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
