:root {
  --black: #050505;
  --deep: #0c0b09;
  --panel: #15120d;
  --panel-soft: #1d1811;
  --text: #f2eadc;
  --muted: #c3b8a4;
  --dim: #8e806c;
  --line: rgba(198, 150, 72, 0.34);
  --gold: #d8aa58;
  --bronze: #9b6a2f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(119, 82, 33, 0.22), transparent 34rem),
    linear-gradient(180deg, #060606 0%, #0d0b08 48%, #050505 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.58;
}

body::before {
  content: "יהוה אלהים אמת תורה משיח שבת קדש";
  position: fixed;
  inset: 0;
  z-index: -2;
  color: rgba(216, 170, 88, 0.045);
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  overflow: hidden;
  pointer-events: none;
  transform: rotate(-8deg) scale(1.08);
  word-spacing: 1.2rem;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.055), transparent 16rem),
    radial-gradient(circle at 75% 30%, rgba(216, 170, 88, 0.08), transparent 18rem),
    radial-gradient(circle at 45% 70%, rgba(255, 255, 255, 0.035), transparent 22rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 45%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid rgba(216, 170, 88, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, #d8aa58, #8e5d25);
  color: #100c07;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(216, 170, 88, 0.28);
}

.button:hover,
.button:focus {
  box-shadow: 0 0 40px rgba(216, 170, 88, 0.48);
  transform: translateY(-1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(5, 5, 5, 0.86);
  border-top: 1px solid rgba(216, 170, 88, 0.18);
  border-bottom: 1px solid rgba(216, 170, 88, 0.18);
  backdrop-filter: blur(12px);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(216, 170, 88, 0.52);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 20px rgba(216, 170, 88, 0.18),
    0 0 42px rgba(216, 170, 88, 0.08);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--gold);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  background: transparent;
}

.hero {
  display: grid;
  background: transparent;
  min-height: 82vh;
  min-height: 82svh;
  align-items: center;
  padding: clamp(70px, 10vw, 130px) 0;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero h1,
.hero h2 {
  margin-bottom: 12px;
  color: #fff8e8;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1.06;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(216, 170, 88, 0.2);
}

.title-word {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 0.04em 0.03em;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
  text-shadow: inherit;
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.title-word::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.08em;
  bottom: 0.02em;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(216, 170, 88, 0.86), transparent);
  opacity: 0.45;
  transform: scaleX(0.66);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.title-word:hover,
.title-word:focus-visible {
  color: #ffe6a8;
  outline: none;
  transform: translateY(-2px);
  text-shadow:
    0 0 12px rgba(216, 170, 88, 0.72),
    0 0 34px rgba(216, 170, 88, 0.46),
    0 0 60px rgba(255, 244, 210, 0.22);
}

.title-word:hover::after,
.title-word:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
  box-shadow: 0 0 18px rgba(216, 170, 88, 0.62);
}

.title-word:active {
  transform: translateY(0);
}

@media (hover: none) and (pointer: coarse) {
  .title-word {
    color: #ffe1a0;
    text-shadow:
      0 0 10px rgba(216, 170, 88, 0.46),
      0 0 28px rgba(216, 170, 88, 0.26);
    animation: mobile-title-pulse 2.8s ease-in-out infinite;
  }

  .title-word::after {
    opacity: 0.9;
    transform: scaleX(1);
    box-shadow: 0 0 14px rgba(216, 170, 88, 0.48);
  }

  .title-word:nth-of-type(2) {
    animation-delay: 0.45s;
  }
}

@keyframes mobile-title-pulse {
  0%,
  100% {
    text-shadow:
      0 0 8px rgba(216, 170, 88, 0.36),
      0 0 22px rgba(216, 170, 88, 0.18);
  }
  50% {
    text-shadow:
      0 0 16px rgba(216, 170, 88, 0.7),
      0 0 38px rgba(216, 170, 88, 0.36),
      0 0 70px rgba(255, 244, 210, 0.18);
  }
}

.subtitle {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.intro {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.slogan-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 0 30px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slogan-row span {
  display: inline-flex;
  align-items: center;
}

.slogan-row span:not(:last-child)::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 14px;
  border-radius: 50%;
  background: rgba(216, 170, 88, 0.72);
  box-shadow: 0 0 12px rgba(216, 170, 88, 0.34);
}

.section {
  background: transparent;
  padding: clamp(58px, 8vw, 96px) 0;
  border-top: 1px solid rgba(216, 170, 88, 0.16);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

h2 {
  margin-bottom: 14px;
  color: #fff8e8;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: #fff4d9;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-copy,
.split-section > p,
.calendar-copy,
.contact-section p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
}

.calendar-copy p {
  margin-bottom: 22px;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.study-card {
  min-height: 210px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(216, 170, 88, 0.04)),
    rgba(18, 15, 10, 0.86);
  border: 1px solid rgba(216, 170, 88, 0.2);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.study-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.featured-card {
  background:
    linear-gradient(145deg, rgba(216, 170, 88, 0.22), rgba(151, 94, 36, 0.12)),
    rgba(25, 18, 10, 0.94);
  border-color: rgba(216, 170, 88, 0.62);
  box-shadow: 0 0 36px rgba(216, 170, 88, 0.14);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.contact-section {
  padding-bottom: clamp(72px, 10vw, 120px);
}

.contact-line {
  margin-bottom: 18px;
}

.contact-link {
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #ffe6a8;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(216, 170, 88, 0.44);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 170, 88, 0.18), rgba(255, 255, 255, 0.03)),
    #090806;
  color: var(--gold);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(255, 230, 168, 0.9);
  color: #ffe6a8;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(216, 170, 88, 0.2);
}

.facebook-link span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.youtube-link span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
}

.site-footer {
  display: grid;
  gap: 4px;
  padding: 28px 20px;
  background: #030303;
  border-top: 1px solid rgba(216, 170, 88, 0.24);
  color: var(--dim);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.definition-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.definition-overlay[hidden] {
  display: none;
}

.definition-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(82svh, 680px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 244, 220, 0.06), rgba(216, 170, 88, 0.09)),
    rgba(17, 13, 8, 0.98);
  border: 1px solid rgba(216, 170, 88, 0.5);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(216, 170, 88, 0.12);
  color: var(--text);
  text-align: left;
}

.definition-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 170, 88, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.definition-close:hover,
.definition-close:focus-visible {
  color: var(--gold);
  outline: none;
}

.definition-mark {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
}

.mark-lens {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(216, 170, 88, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 244, 210, 0.28), transparent 34%),
    rgba(216, 170, 88, 0.06);
  box-shadow:
    inset 0 0 18px rgba(216, 170, 88, 0.12),
    0 0 24px rgba(216, 170, 88, 0.18);
}

.mark-handle {
  position: absolute;
  left: 45px;
  top: 44px;
  width: 25px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8aa58, #8e5d25);
  box-shadow: 0 0 18px rgba(216, 170, 88, 0.32);
  transform: rotate(45deg);
  transform-origin: left center;
}

.definition-card h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.definition-pronunciation {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 1.08rem;
  line-height: 1.45;
}

.definition-copy p {
  margin-bottom: 14px;
  color: var(--muted);
}

.definition-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body::before {
    font-size: clamp(2.6rem, 14vw, 5rem);
    letter-spacing: 0.02em;
    word-spacing: 0.7rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  main {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    min-height: auto;
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .study-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.18rem;
    line-height: 1.14;
  }

  .definition-overlay {
    padding: 16px;
  }

  .definition-card {
    padding: 48px 20px 24px;
  }
}
