/* =====================================================================
   Hebrew Unlocked — Jerusalem Stone
   Shared front-end stylesheet (used by both the live theme and preview).
   ===================================================================== */

:root {
  --paper:      #f3ecd9;
  --paper-2:    #f8f2e1;
  --soft-tint:  #ece2c8;
  --ink:        #1a2540;
  --sub:        #6b5436;
  --accent:     #8c2a1a;
  --accent-ink: #fbf6e8;
  --rule:       #c9b894;
  --rule-soft:  #ddd0ad;
  --cta-bg:     #1a2540;

  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body:    "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-label:   "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-hebrew:  "Frank Ruhl Libre", "David Libre", serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 132px);
}

/* ----------------------------- reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* --------------------------- utilities ---------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}
.rule { height: 1px; background: var(--rule); border: 0; width: 100%; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.muted { color: var(--sub); }
.balance { text-wrap: balance; }
.serif-display { font-family: var(--font-display); }

.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-section .accent { color: var(--accent); }

/* ----------------------------- buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-label);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95em 1.5em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #761e10; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #0f1830; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(26,37,64,0.04); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(243,236,217,0.35); }
.btn--ghost-light:hover { border-color: var(--paper); background: rgba(243,236,217,0.08); }

/* ----------------------------- header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-block: 12px;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.brand__bsd { font-family: var(--font-hebrew); font-size: 1rem; color: var(--sub); direction: rtl; }
.site-header__right { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.site-header__bsd { font-family: var(--font-hebrew); font-size: 1.05rem; color: var(--sub); direction: rtl; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-menu li { margin: 0; }
.nav a {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sub);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--accent); }
.nav__cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* ------------------------------ hero ------------------------------ */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--section-y); position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.2rem, 11vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__display span { display: block; }
.hero__display .accent { color: var(--accent); }
.hero__kicker {
  font-family: var(--font-label);
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sub);
  margin-top: 26px;
}
.hero__sub { margin-top: 22px; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.promise {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.promise__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.32;
  color: var(--ink);
  text-wrap: balance;
}
.promise__foot { color: var(--sub); font-size: 1rem; }

/* --------------------------- section: get ------------------------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.split__aside { position: sticky; top: 100px; }
.feature-list { display: grid; gap: 26px; margin-top: 38px; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.feature__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.feature__h { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.feature__b { color: var(--sub); margin-top: 6px; }

/* coaching vs tutoring pill row */
.contrast {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contrast__card {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 20px 22px;
  background: var(--paper-2);
}
.contrast__card--accent { border-color: var(--accent); }
.contrast__tag {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.contrast__card .contrast__tag { color: var(--sub); }
.contrast__card--accent .contrast__tag { color: var(--accent); }
.contrast__b { margin-top: 8px; font-size: 0.98rem; line-height: 1.45; }

/* ----------------------- section: who (inverted) ------------------ */
.invert { background: var(--ink); color: var(--paper); }
.invert .eyebrow { color: color-mix(in srgb, var(--accent) 62%, #e6b8a8); }
.invert .h-section { color: var(--paper); }
.invert .muted { color: rgba(243,236,217,0.72); }
.invert .rule { background: rgba(243,236,217,0.2); }
.who__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.who__body { font-size: clamp(1.15rem, 1.7vw, 1.42rem); line-height: 1.55; text-wrap: pretty; }
.who__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag {
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid rgba(243,236,217,0.3);
  border-radius: 100px;
  color: var(--paper);
}

/* --------------------------- section: about ----------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.about__name { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1; }
.about__role { color: var(--accent); font-style: italic; font-size: 1.1rem; margin-top: 8px; }
.about__body { margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.about__body + .about__body { margin-top: 16px; color: var(--sub); }

/* -------------------------- section: timeline --------------------- */
.timeline__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.timeline__note { max-width: 34ch; color: var(--sub); font-style: italic; font-size: 1rem; }
.timeline__note strong { color: var(--ink); font-style: normal; }
.timeline {
  position: relative;
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 5px; left: 0; right: 0;
  height: 1.5px;
  background: var(--rule);
}
.milestone { position: relative; padding-top: 30px; }
.milestone::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--paper);
}
.milestone__when { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }
.milestone__what { color: var(--sub); font-size: 1rem; line-height: 1.45; margin-top: 8px; }

/* --------------------------- section: pricing --------------------- */
.pricing__head { text-align: center; max-width: 42ch; margin-inline: auto; }
.pricing__sub { margin-top: 14px; color: var(--sub); font-style: italic; font-size: 1.08rem; }
.tiers {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.tier {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.tier--featured {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -26px rgba(26,37,64,0.6);
  padding-top: 44px;
}
.tier__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 2px;
  white-space: nowrap;
}
.tier__kicker { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.tier--featured .tier__kicker { color: var(--accent-ink); opacity: 0.85; }
.tier__name { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; }
.tier__price-row { display: flex; align-items: baseline; gap: 8px; }
.tier__price { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.tier__cadence { font-size: 0.95rem; color: var(--sub); }
.tier--featured .tier__cadence { color: rgba(251,246,232,0.78); }
.tier__per { font-style: italic; font-size: 0.95rem; color: var(--accent); }
.tier--featured .tier__per { color: var(--accent-ink); opacity: 0.9; }
.tier__blurb { font-size: 0.98rem; line-height: 1.5; }
.tier--featured .tier__blurb { color: var(--accent-ink); }
.tier hr.tier__rule { border: 0; height: 1px; background: var(--rule); }
.tier--featured hr.tier__rule { background: rgba(255,255,255,0.28); }
.tier__features { display: grid; gap: 10px; }
.tier__features li { position: relative; padding-left: 22px; font-size: 0.98rem; line-height: 1.4; }
.tier__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.tier--featured .tier__features li::before { background: rgba(255,255,255,0.92); }
.tier__cta { margin-top: auto; }
.tier .btn { width: 100%; justify-content: center; }

.which {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 40px;
}
.which__item { padding-left: 18px; border-left: 2px solid var(--rule); }
.which__item--accent { border-left-color: var(--accent); }
.which__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.which__item--accent .which__name { color: var(--accent); }
.which__b { margin-top: 6px; color: var(--sub); font-size: 1rem; line-height: 1.5; }

/* --------------------------- section: musical --------------------- */
.musical { background: var(--soft-tint); border-block: 1px solid var(--rule); }
.musical__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.musical__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.05; margin-top: 12px; letter-spacing: -0.01em; }
.musical__body { margin-top: 16px; color: var(--ink); font-size: 1.1rem; line-height: 1.55; text-wrap: pretty; }
.musical__cols { display: grid; gap: 22px; }
.musical__card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px; padding: 22px 24px; }
.musical__h { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.musical__b { margin-top: 6px; color: var(--sub); font-size: 1rem; }

/* --------------------------- section: contact --------------------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: #e6b8a8; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.015em; margin-top: 14px; text-wrap: balance; }
.contact__lead { margin-top: 18px; color: rgba(243,236,217,0.78); font-size: 1.15rem; line-height: 1.55; max-width: 38ch; }
.contact__channels { margin-top: 34px; display: grid; gap: 4px; }
.channel { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(243,236,217,0.18); }
.channel:last-child { border-bottom: 1px solid rgba(243,236,217,0.18); }
.channel__label { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243,236,217,0.6); min-width: 92px; }
.channel__value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--paper); text-decoration: none; }
.channel__value:hover { color: #e6b8a8; }

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 5px;
  padding: clamp(26px, 3vw, 40px);
}
.form-card__h { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.form-card__p { color: var(--sub); margin-top: 6px; font-size: 1rem; }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--sub); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140,42,26,0.12);
}
.form-card .btn { width: 100%; justify-content: center; margin-top: 22px; }
.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--sub); text-align: center; }
.form-status { margin-top: 14px; font-size: 0.95rem; text-align: center; display: none; }
.form-status.is-ok { display: block; color: #3d6b47; }
.form-status.is-err { display: block; color: var(--accent); }

/* ----------------------------- footer ----------------------------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding-block: 48px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer__brand { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.site-footer__meta { color: var(--sub); font-size: 0.92rem; }
.site-footer__bsd { font-family: var(--font-hebrew); direction: rtl; color: var(--sub); }

/* ----------------- content pages (blog / posts / search) ----------- */
.hu-content { padding-block: clamp(56px, 8vw, 110px); min-height: 50vh; }
.hu-content .wrap { max-width: 760px; }
.hu-content__head { margin-bottom: 48px; }
.hu-post { margin-bottom: 64px; }
.hu-post__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.08; }
.hu-post__title a { text-decoration: none; }
.hu-post__title a:hover { color: var(--accent); }
.hu-post__meta { font-size: 0.85rem; letter-spacing: 0.04em; margin-top: 8px; }
.hu-post__thumb { display: block; margin: 22px 0; border-radius: 3px; overflow: hidden; border: 1px solid var(--rule); }
.hu-post__body { margin-top: 18px; font-size: 1.1rem; line-height: 1.65; }
.hu-post__body p { margin-bottom: 1em; }
.hu-post__body a { color: var(--accent); }
.hu-post__body h2, .hu-post__body h3 { font-family: var(--font-display); margin: 1.4em 0 0.5em; line-height: 1.15; }
.hu-post__body img { border-radius: 3px; margin: 1em 0; }
.hu-post__body blockquote { border-left: 2px solid var(--accent); margin: 1.2em 0; padding-left: 22px; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.hu-pagination a, .hu-pagination .current {
  display: inline-block; padding: 8px 14px; margin-right: 6px;
  border: 1px solid var(--rule); border-radius: 3px; text-decoration: none;
  font-family: var(--font-label); font-size: 0.85rem;
}
.hu-pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --------------------------- responsive --------------------------- */
@media (max-width: 980px) {
  .hero__grid, .split, .who__grid, .about__grid, .musical__grid, .contact__grid { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .promise { border-left: 0; border-top: 2px solid var(--accent); padding: 24px 0 0; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .tier--featured { order: -1; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .timeline::before { display: none; }
  .which { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 24px var(--gutter);
  }
  .nav.is-open .nav-menu { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }
  .timeline { grid-template-columns: 1fr; }
  .contrast { grid-template-columns: 1fr; }
  .musical__grid { gap: 28px; }
  .channel { flex-direction: column; gap: 2px; }
}

/* --------------------------- reveal anim -------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
