:root {
  --forest: #173f35;
  --forest-deep: #0d2c26;
  --forest-soft: #dce8df;
  --paper: #f6f1e6;
  --paper-deep: #e9e0d0;
  --ink: #17211d;
  --muted: #66716b;
  --gold: #b28a3f;
  --gold-light: #e8d3a2;
  --rust: #a94b32;
  --white: #fffdf8;
  --line: rgba(23, 33, 29, 0.18);
  --display-he: "Frank Ruhl Libre", serif;
  --display-en: "Newsreader", serif;
  --sans: "Noto Sans Hebrew", sans-serif;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}

html[lang="en"] body {
  font-family: "Newsreader", serif;
  font-size: 1.06rem;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest-deep);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  min-height: 86px;
  padding: 10px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  border-block-end: 1px solid var(--line);
  background: rgba(246, 241, 230, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-family: var(--display-he);
  font-size: 1.35rem;
  font-weight: 900;
}

html[lang="en"] .brand-copy strong {
  font-family: var(--display-en);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.8vw, 44px);
  font-size: 0.84rem;
  font-weight: 600;
}

.site-header nav a {
  position: relative;
  white-space: nowrap;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -7px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
}

.language-switch {
  justify-self: end;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--forest);
  border-radius: 3px;
}

.language-switch button {
  min-width: 70px;
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font: 600 0.76rem var(--sans);
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--forest);
}

.section-shell {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 86px));
  padding: clamp(70px, 12vh, 130px) clamp(24px, 8vw, 130px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 29, 24, 0.96) 0%, rgba(13, 44, 38, 0.78) 48%, rgba(13, 44, 38, 0.35) 100%),
    linear-gradient(145deg, #325f51 0%, #173f35 48%, #9b8050 100%);
}

html[dir="ltr"] .hero-backdrop {
  background:
    linear-gradient(270deg, rgba(8, 29, 24, 0.96) 0%, rgba(13, 44, 38, 0.78) 48%, rgba(13, 44, 38, 0.35) 100%),
    linear-gradient(215deg, #325f51 0%, #173f35 48%, #9b8050 100%);
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  width: min(70vw, 880px);
  aspect-ratio: 1.15;
  inset-inline-end: -8vw;
  inset-block-end: -23%;
  opacity: 0.38;
  border: 2px solid rgba(255, 253, 248, 0.35);
  border-block-end: 0;
  border-radius: 50% 50% 0 0;
  box-shadow: inset 0 0 0 34px rgba(255, 253, 248, 0.04), inset 0 0 0 36px rgba(255, 253, 248, 0.14), inset 0 0 0 108px rgba(255, 253, 248, 0.03), inset 0 0 0 110px rgba(255, 253, 248, 0.12);
}

.architectural-lines {
  position: absolute;
  inset-inline-end: 9%;
  inset-block-end: 0;
  width: min(46vw, 620px);
  height: 72%;
  opacity: 0.28;
  background: repeating-linear-gradient(90deg, transparent 0 68px, rgba(255, 255, 255, 0.45) 69px 71px);
  clip-path: polygon(14% 22%, 50% 0, 86% 22%, 100% 22%, 100% 100%, 0 100%, 0 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 66vw);
  animation: reveal 700ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--display-he);
  font-size: clamp(3.5rem, 7vw, 7.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

html[lang="en"] .hero h1 {
  font-family: var(--display-en);
  font-size: clamp(3.5rem, 6.3vw, 7rem);
  line-height: 0.92;
}

.hero-lead {
  max-width: 600px;
  margin: 28px 0 32px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.button {
  min-height: 50px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: 2px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--forest-deep);
  background: var(--gold-light);
}

.hero-stamp {
  position: absolute;
  z-index: 3;
  inset-inline-end: clamp(24px, 6vw, 90px);
  inset-block-end: 45px;
  width: 118px;
  height: 118px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 50%;
  text-align: center;
  transform: rotate(-8deg);
}

html[dir="ltr"] .hero-stamp {
  transform: rotate(8deg);
}

.hero-stamp span,
.hero-stamp strong {
  display: block;
  line-height: 1.15;
}

.hero-stamp strong {
  font-family: var(--display-en);
  font-size: 1.55rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(500px, 1.8fr) minmax(260px, 0.8fr);
  align-items: stretch;
  border-inline: 1px solid var(--line);
}

.content-grid > * {
  padding: clamp(34px, 4vw, 64px);
}

.content-grid > * + * {
  border-inline-start: 1px solid var(--line);
}

.section-number {
  margin: 0 0 28px;
  color: var(--rust);
  font-family: var(--display-en);
  font-size: 0.75rem;
  font-weight: 700;
}

.content-grid h2,
.renewal h2 {
  margin: 0;
  font-family: var(--display-he);
  font-size: clamp(2.25rem, 3.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

html[lang="en"] .content-grid h2,
html[lang="en"] .renewal h2 {
  font-family: var(--display-en);
}

.join-panel {
  background: var(--forest-soft);
}

.join-panel > p:not(.section-number) {
  margin-block: 20px 30px;
  color: #4a5a53;
  font-size: 0.9rem;
}

.membership-list {
  border-block-start: 1px solid rgba(23, 63, 53, 0.22);
}

.membership-list > div {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-block-end: 1px solid rgba(23, 63, 53, 0.22);
}

.membership-list span {
  width: 26px;
  color: var(--rust);
  font-family: var(--display-he);
  font-size: 1.15rem;
}

.membership-list strong {
  font-size: 0.88rem;
}

.payment-actions {
  margin-block-start: 30px;
  display: grid;
  gap: 9px;
}

.payment-button {
  min-height: 72px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  color: var(--white);
  background: var(--forest);
  border-radius: 3px;
  transition: background 160ms ease, transform 160ms ease;
}

.payment-button:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
}

.payment-usd {
  color: var(--forest-deep);
  background: var(--gold-light);
}

.payment-usd:hover {
  background: #dbc085;
}

.currency {
  font-family: var(--display-en);
  font-size: 1.6rem;
}

.payment-button strong,
.payment-button small {
  display: block;
}

.payment-button strong {
  font-size: 0.84rem;
}

.payment-button small {
  opacity: 0.72;
  font-size: 0.68rem;
}

.updates {
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.edition {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.lead-update {
  margin-block-start: 34px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 310px;
  border-block: 1px solid var(--line);
}

.update-visual,
.project-photo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 18px;
  color: var(--white);
  background-color: #54736a;
}

.update-visual-main {
  min-height: 310px;
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(246, 241, 230, 0.16) 48% 52%, transparent 52%),
    linear-gradient(35deg, #1b4a3d, #8c7650);
}

.update-visual::before,
.project-photo::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50% 50% 3px 3px;
}

.update-visual span,
.project-photo span {
  position: relative;
  z-index: 2;
  padding: 4px 9px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
}

.update-copy {
  padding: clamp(22px, 3vw, 38px);
  align-self: center;
}

.tag {
  margin: 0 0 11px;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 700;
}

.update-copy h3 {
  margin: 0;
  font-family: var(--display-he);
  font-size: clamp(1.75rem, 2.3vw, 2.7rem);
  line-height: 1.1;
}

html[lang="en"] .update-copy h3 {
  font-family: var(--display-en);
}

.update-copy > p:last-child {
  color: var(--muted);
  font-size: 0.82rem;
}

.short-updates {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.short-updates article {
  padding: 25px 0 0;
}

.short-updates article + article {
  padding-inline-start: 28px;
  margin-inline-start: 28px;
  border-inline-start: 1px solid var(--line);
}

.short-updates time {
  color: var(--rust);
  font-family: var(--display-en);
  font-size: 0.72rem;
}

.short-updates h3 {
  margin: 8px 0 6px;
  font-family: var(--display-he);
  font-size: 1.35rem;
  line-height: 1.15;
}

html[lang="en"] .short-updates h3 {
  font-family: var(--display-en);
}

.short-updates p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.prayer-panel {
  color: var(--white);
  background: var(--forest);
}

.prayer-panel .section-number,
.prayer-panel .location {
  color: var(--gold-light);
}

.prayer-logo {
  width: 78px;
  height: 78px;
  margin-block-end: 22px;
  padding: 6px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
}

.prayer-panel h2 {
  font-size: clamp(2.2rem, 3vw, 3.6rem);
}

.location {
  margin: 10px 0 26px;
  font-size: 0.74rem;
}

.prayer-notice {
  margin-block-end: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.prayer-notice strong {
  font-size: 0.82rem;
}

.prayer-notice p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.prayer-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block-start: 1px solid rgba(255, 255, 255, 0.18);
}

.prayer-row strong {
  color: var(--gold-light);
  font-size: 0.72rem;
}

.prayer-footnote {
  margin-block-start: 18px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.67rem;
}

.renewal {
  padding-block: clamp(70px, 10vw, 140px);
  background:
    linear-gradient(rgba(23, 33, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 29, 0.045) 1px, transparent 1px),
    var(--paper-deep);
  background-size: 42px 42px;
}

.renewal > .section-shell {
  padding-inline: clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.5fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.renewal-intro > p:last-child {
  max-width: 430px;
  color: var(--muted);
}

.renewal .eyebrow {
  color: var(--rust);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.comparison-grid figure {
  margin: 0;
}

.project-photo {
  min-height: 430px;
}

.project-before {
  background: linear-gradient(145deg, #766a5e, #3e4946);
}

.project-after {
  background: linear-gradient(145deg, #b3955b, #315c4f);
}

.comparison-grid figcaption {
  padding-block-start: 11px;
  border-block-start: 3px solid var(--rust);
  font-size: 0.77rem;
  font-weight: 700;
}

.comparison-grid figure:last-child figcaption {
  border-color: var(--forest);
}

.countdown {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  color: var(--white);
  background: var(--forest-deep);
}

.countdown-copy,
.countdown-cta {
  padding: clamp(45px, 6vw, 90px);
}

.countdown-copy {
  background:
    linear-gradient(120deg, transparent 0 72%, rgba(255, 255, 255, 0.04) 72%),
    var(--forest-deep);
}

.countdown h2 {
  margin: 0 0 26px;
  font-family: var(--display-he);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 1;
}

html[lang="en"] .countdown h2 {
  font-family: var(--display-en);
}

.timer {
  max-width: 730px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  direction: ltr;
  border-block: 1px solid rgba(255, 255, 255, 0.22);
}

.timer > div {
  min-width: 0;
  padding: 20px clamp(8px, 2vw, 24px);
  text-align: center;
}

.timer > div + div {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
}

.timer strong,
.timer span {
  display: block;
}

.timer strong {
  font-family: var(--display-en);
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer span {
  margin-block-start: 9px;
  color: var(--gold-light);
  font-size: 0.72rem;
}

.countdown-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--forest-deep);
  background: var(--gold-light);
}

.countdown-cta h3 {
  margin: 0;
  font-family: var(--display-he);
  font-size: clamp(2.1rem, 3.2vw, 3.8rem);
  line-height: 1;
}

html[lang="en"] .countdown-cta h3 {
  font-family: var(--display-en);
}

.countdown-cta p {
  margin: 18px 0 26px;
}

.button-light {
  color: var(--white);
  background: var(--forest-deep);
}

footer {
  min-height: 190px;
  padding: 38px clamp(24px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  background: var(--white);
  border-block-start: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  font-family: var(--display-he);
  font-size: 1.25rem;
}

html[lang="en"] .footer-brand strong {
  font-family: var(--display-en);
}

.footer-brand span,
footer > p {
  color: var(--muted);
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  gap: 30px;
  font-size: 0.76rem;
  font-weight: 600;
}

footer > p {
  justify-self: end;
  text-align: end;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr 1.7fr;
  }

  .prayer-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    column-gap: 30px;
  }

  .prayer-panel .section-number {
    grid-column: 1 / -1;
  }

  .prayer-logo {
    grid-row: 2 / 5;
  }

  .prayer-panel h2,
  .prayer-panel .location {
    grid-column: 2;
  }

  .prayer-notice {
    grid-column: 3;
    grid-row: 2 / 4;
  }

  .prayer-row,
  .prayer-footnote {
    grid-column: 2 / -1;
  }

  .renewal > .section-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 75px;
  }

  .site-header {
    min-height: 74px;
    padding: 8px 16px;
    gap: 10px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .language-switch button {
    min-width: 56px;
    min-height: 32px;
    padding-inline: 7px;
    font-size: 0.68rem;
  }

  .hero {
    min-height: 620px;
    padding: 80px 24px 130px;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1,
  html[lang="en"] .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .hero-stamp {
    width: 88px;
    height: 88px;
    inset-block-end: 27px;
  }

  .content-grid {
    display: flex;
    flex-direction: column;
    border: 0;
  }

  .content-grid > * {
    padding: 46px 24px;
  }

  .content-grid > * + * {
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }

  .updates {
    order: -1;
  }

  .lead-update {
    grid-template-columns: 1fr;
  }

  .update-copy {
    border-block-start: 1px solid var(--line);
  }

  .short-updates {
    grid-template-columns: 1fr;
  }

  .short-updates article + article {
    padding-inline-start: 0;
    margin-inline-start: 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
    margin-block-start: 20px;
  }

  .prayer-panel {
    display: block;
  }

  .renewal {
    padding-block: 70px;
  }

  .renewal > .section-shell {
    padding-inline: 24px;
    gap: 38px;
  }

  .comparison-grid {
    gap: 10px;
  }

  .project-photo {
    min-height: 280px;
  }

  .countdown {
    grid-template-columns: 1fr;
  }

  .countdown-copy,
  .countdown-cta {
    padding: 48px 24px;
  }

  .timer strong {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .timer span {
    font-size: 0.62rem;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  footer > p {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .brand-copy {
    display: none;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .project-photo {
    min-height: 330px;
  }

  .timer > div {
    padding-inline: 3px;
  }
}

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