/* ==========================================================================
   HEBREW — fonts and right-to-left adjustments, applied when the page
   language is Hebrew (app.js sets <html lang="he" dir="rtl">).
   Layout mostly mirrors by itself; this file covers what doesn't.
   ========================================================================== */
:root:lang(he) {
  --script: var(--script-he);
  --caps: var(--caps-he);
  --body: var(--body-he);
}

/* Hebrew has no capitals or italics: drop letter-spacing and slanted text */
:lang(he) body *, :lang(he) ::placeholder { letter-spacing: 0 !important; font-style: normal !important; }

/* the card: Hebrew letters read smaller at the same size, and Bellefair has no script style */
:lang(he) .card .parents { font-size: 3.7cqw; font-weight: 400; }
:lang(he) .card .line { font-size: 3.5cqw; }
:lang(he) .card .names { font-size: 12cqw; line-height: 1.1; }
:lang(he) .card .weekday { font-size: 4.2cqw; font-weight: 400; }
:lang(he) .card .date { font-size: 3.9cqw; font-weight: 400; }
:lang(he) .card .date-second { font-size: 3.2cqw; font-weight: 400; }
:lang(he) .card .schedule b { font-family: var(--caps); font-weight: 400; }
:lang(he) #guest-name .nm { font-size: calc(var(--env-w) * .08); }

/* close button on the reply card moves to the other corner */
[dir="rtl"] .rsvp-close { right: auto; left: 18px; }

/* brunch card on RSVP step 2: Frank Ruhl reads smaller than Cormorant at the same size */
:lang(he) .rsvp-invite-events.one b { font-size: 20px; letter-spacing: .04em; }
:lang(he) .rsvp-invite-events .rsvp-invite-date { font-size: 16px; letter-spacing: .02em; }
