/*
 * Red Cape - Hebrew (RTL) refinements.
 *
 * Layout mirroring is already handled by the logical properties in the main
 * stylesheets, so this file only carries what logical CSS cannot express:
 * typographic tuning for Hebrew (no tight negative tracking, no uppercase,
 * slightly different line lengths), plus a few optical alignments.
 * Loaded automatically after the main stylesheets when is_rtl().
 */

/* Heebo (Google Fonts, SIL Open Font License), self-hosted: no third-party
   request, no visitor data sent to Google. Variable weight 300-800. */
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/heebo-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/heebo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --font-he: "Heebo", Arial, "Noto Sans Hebrew", sans-serif; }

body, button, input, select, textarea { font-family: var(--font-he); }

/* Hebrew has no case and does not like tight tracking */
.eyebrow, .text-link, .menu-trigger, .movie-status, .movie-meta, .team-role, .footer-links h2, .footer-bottom,
.field label, .form-field label, .result-count, .status-line, .credit-row dt, .gallery-slide figcaption,
.button-primary, .button-secondary, .submit-button, .reset-button, .apply-button, .filter-toggle, .media-toggle, .marquee-toggle {
  letter-spacing: .02em;
}
.eyebrow, .team-role, .gallery-slide figcaption, .footer-links h2, .form-field label, .field label, .movie-status { font-size: 13px; }

h1, h2, h3, .display, .menu-nav a, .hero-nav a, .company-title, .team-head h2 { letter-spacing: -.03em; }
h1, h2, h3, p, a, b, span { overflow-wrap: normal; word-break: keep-all; }

/* Hero section menu */
.hero-nav a { letter-spacing: -.03em; }

/* Intro: Hebrew headline needs more measure */
.intro-title { max-width: 7.4ch; margin-inline-start: 0; font-size: clamp(52px, 7vw, 122px); line-height: .88; text-wrap: balance; }
.intro-copy { padding-block-end: 0; align-self: center; }

/* Menu */
.menu-nav a { width: 100%; }
.menu-nav a b { max-width: 100%; text-wrap: balance; }

/* Row 9 */
.row9-copy h2 { max-width: 10.5ch; font-size: clamp(54px, 7.4vw, 124px); line-height: .88; letter-spacing: -.055em; text-wrap: balance; }

/* Companies / team / contact */
.company-content .section-copy { max-width: 30ch; }
.contact h2 { letter-spacing: -.02em; }
.team-role { letter-spacing: .02em; }

/* Catalog & film pages */
.hero-copy h1, .movie-title-main { margin-inline-start: 0; }
.movie-title-main:lang(en) { direction: ltr; text-align: end; }
.movie-title-main { line-height: .82; letter-spacing: -.04em; }

/* Text pages */
.page-hero h1 { margin-inline-start: 0; letter-spacing: -.03em; line-height: .95; }
.entry-content { line-height: 1.8; }

@media (max-width: 640px) {
  .intro-title { max-width: 8.2ch; font-size: clamp(48px, 14vw, 78px); }
  .row9-copy h2 { max-width: 11ch; font-size: clamp(48px, 15vw, 82px); }
}
