@font-face {
  font-family: "Fraunces";
  src: url("./fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("./fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #f7f5f0;
  --card: #ffffff;
  --surface: #efeae3;
  --ink: #151515;
  --muted: #625f5a;
  --subtle: #8a847c;
  --border: #e8e3db;
  --copper: #9b4e16;
  --copper-soft: #f3e6d8;
  --copper-dark: #7a3c10;
  --dusk: #121a2b;
  --success: #2f6f57;
  --success-soft: #e3ede8;
  --danger: #b44545;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-card: 0 10px 28px -18px rgba(21, 21, 21, 0.22);
  --shadow-hero: 0 22px 48px -24px rgba(18, 26, 43, 0.45);
  --shadow-glass: 0 12px 36px -16px rgba(21, 21, 21, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --measure: 68ch;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--base);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-140%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  width: min(1120px, 100%);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 16px;
  border-radius: var(--radius-xl);
  background: rgba(247, 245, 240, 0.62);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}

.btn-copper {
  background: var(--copper);
  color: var(--card);
}

.btn-copper:hover {
  background: var(--copper-dark);
}

.btn-ink {
  background: var(--ink);
  color: var(--card);
}

.btn-ink:hover {
  background: var(--dusk);
}

.btn-soft {
  background: var(--surface);
  color: var(--ink);
}

.btn-soft:hover {
  background: var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  min-height: 44px;
  padding: 0 18px;
}

.threshold {
  padding: 12px 0 8px;
}

.threshold-stage {
  position: relative;
  min-height: calc(100svh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 28px;
  border-radius: var(--radius-xl);
  color: var(--card);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-hero);
  background: var(--dusk);
}

.threshold-sky {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
}

.threshold-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.04) 0%, rgba(18, 26, 43, 0.1) 52%, rgba(18, 26, 43, 0.28) 100%);
}

.threshold-mark {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.threshold-rings,
.threshold-rings::before,
.threshold-rings::after {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.threshold-rings {
  width: 220px;
  height: 220px;
  animation: breathe 8.4s ease-in-out infinite;
}

.threshold-rings::before {
  content: "";
  width: 164px;
  height: 164px;
  border-color: rgba(255, 255, 255, 0.12);
}

.threshold-rings::after {
  content: "";
  width: 112px;
  height: 112px;
  border-color: rgba(255, 255, 255, 0.1);
}

.threshold-inner {
  width: min(720px, 100%);
  text-align: center;
  padding-bottom: 12px;
}

.lock {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(18, 26, 43, 0.35));
}

.verify-card .lock,
.brand img,
.footer-brand img {
  margin: 0 auto 18px;
}

.brand img,
.footer-brand img {
  margin: 0;
}

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.78);
}

.threshold h1 {
  font-size: clamp(56px, 9vw, 88px);
  color: var(--card);
}

.lede {
  max-width: 34em;
  margin: 14px auto 0;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(247, 245, 240, 0.9);
}

.pillars {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0 28px;
}

.pillars span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 245, 240, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.pillars span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247, 245, 240, 0.7);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.dock {
  width: min(420px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}

.dock a {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.dock a[aria-current="true"],
.dock a.is-active {
  color: var(--copper);
  background: var(--copper-soft);
}

.dock svg {
  display: block;
}

.hebrew-whisper {
  padding: 56px 0 8px;
  text-align: center;
}

.hebrew-whisper strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hebrew-whisper span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.chapter {
  padding: 72px 0 24px;
  scroll-margin-top: 92px;
}

.chapter-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: var(--card);
  box-shadow: var(--shadow-hero);
  text-align: center;
}

.chapter-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
}

.chapter-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 80%, rgba(155, 78, 22, 0.36), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(197, 212, 224, 0.22), transparent 30%);
}

.chapter-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.12), rgba(18, 26, 43, 0.4));
  z-index: 1;
}

.chapter-hero > * {
  position: relative;
  z-index: 2;
}

.chapter-hero h2 {
  font-size: clamp(36px, 5vw, 52px);
  max-width: 14ch;
}

.chapter-hero p {
  max-width: 34em;
  margin-top: 12px;
  color: rgba(247, 245, 240, 0.92);
  font-size: 17px;
}

.chapter-body {
  max-width: 720px;
  margin: 28px auto 0;
}

.chapter-body > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.practice-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.practice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: start;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.practice-when {
  grid-column: 1 / -1;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.practice h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.practice p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.congregation {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.congregation-mark {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--copper-soft);
  color: var(--copper);
}

.congregation h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
}

.congregation p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 40px;
}

.quote {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius-xl);
  background: var(--dusk) url("./media/welcome-aurora.jpg") center / cover no-repeat;
  color: var(--card);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}

.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 43, 0.32);
}

.quote > * {
  position: relative;
}

blockquote {
  margin: 0;
}

.quote p {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.quote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: rgba(247, 245, 240, 0.78);
}

.about-copy h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 16px;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.contact {
  padding: 48px 0 96px;
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.contact-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  margin-top: 22px;
  color: var(--copper);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}

.contact-email:hover {
  color: var(--copper-dark);
}

.contact-meta {
  margin-top: 14px;
  font-size: 14px;
}

.site-footer {
  background: var(--dusk);
  color: rgba(247, 245, 240, 0.78);
  padding: 36px 0 28px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--card);
  text-decoration: none;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand span {
  font-family: var(--display);
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: rgba(247, 245, 240, 0.74);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--card);
}

.footer-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 245, 240, 0.12);
  text-align: center;
  font-size: 13px;
  color: rgba(247, 245, 240, 0.55);
}

.legal {
  padding: 88px 0 100px;
}

.legal .wrap {
  width: min(760px, calc(100% - 40px));
}

.legal .kicker {
  color: var(--copper);
  letter-spacing: 0.14em;
}

.legal h1 {
  font-size: clamp(40px, 6vw, 60px);
  margin: 8px 0 10px;
}

.updated {
  color: var(--muted);
  margin-bottom: 36px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 28px;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 16px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--copper);
}

.verify-body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(247, 245, 240, 0.72), var(--base) 40%),
    url("./media/welcome-aurora.jpg") center / cover no-repeat;
}

.verify-card {
  width: min(92vw, 460px);
  padding: 36px 32px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero);
}

.verify-card .lock {
  width: 76px;
  height: 76px;
}

.verify-card h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.verify-card p {
  color: var(--muted);
}

.status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.status.success {
  background: var(--success-soft);
  color: var(--success);
}

.status.error {
  background: #f6e4e4;
  color: var(--danger);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  color: var(--copper);
  font-weight: 600;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 56px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap,
  .legal .wrap {
    width: calc(100% - 32px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .practice,
  .congregation {
    grid-template-columns: 1fr;
  }

  .threshold-stage {
    min-height: calc(100svh - 88px);
    padding: 36px 16px 20px;
  }

  .threshold-mark {
    width: 168px;
    height: 168px;
  }

  .threshold-rings {
    width: 168px;
    height: 168px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .threshold-rings {
    animation: none;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}
