/* Shared optical hierarchy, with script-specific families and proportions.
   Font files and OFL licenses live in assets/fonts; no external requests. */
:root {
  --font-body: 'Source Sans 3', 'Heebo', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', 'Frank Ruhl Libre', Georgia, serif;
  --font-latin-display: 'Cormorant Garamond', Georgia, serif;
  --text-body: 1.125rem;
  --text-ui: 1rem;
  --text-label: .9375rem;
  --text-small: .875rem;
  --text-meta: .8125rem;
  --leading-body: 1.75;
  --leading-display: 1.08;
  --tracking-display: -.025em;
  --tracking-label: .1em;
  --size-hero: clamp(2.75rem, 1.5rem + 3.25vw, 5rem);
  --size-heading: clamp(2rem, 1.4rem + 1.8vw, 3rem);
}

:root:lang(he) {
  --font-body: 'Heebo', 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Frank Ruhl Libre', 'Cormorant Garamond', Georgia, serif;
  --text-body: 1.0625rem;
  --leading-body: 1.85;
  --leading-display: 1.18;
  --tracking-display: 0;
  --tracking-label: 0;
  --size-hero: clamp(2.625rem, 1.4rem + 3vw, 4.625rem);
  --size-heading: clamp(1.875rem, 1.35rem + 1.5vw, 2.75rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-kerning: normal;
}

h1, h2, .serif, [dir=rtl] h1, [dir=rtl] h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

h1, h2 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--size-hero); }
h2 { font-size: var(--size-heading); line-height: 1.2; }
[dir=rtl] h2 { line-height: 1.25; }

/* Keep grid children shrinkable at narrow widths and enlarged text settings. */
.hero-copy, .story > div, .section-heading > div, .contact-copy,
.contact form, .form-row > label { min-inline-size: 0; }

.hero-intro, .story-copy, .section-heading > p, .contact-copy > p {
  text-wrap: pretty;
}

.hero-intro {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  max-inline-size: 38ch;
}

.story-copy > p { max-inline-size: 52ch; }
.story-copy .lead {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + .6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  max-inline-size: 38ch;
}
.story-copy .lead bdi { white-space: nowrap; }

.brand, .footer-brand {
  font-family: var(--font-latin-display);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.brand small, [dir=rtl] .brand small {
  direction: ltr;
  font-family: 'Source Sans 3', 'Heebo', Arial, sans-serif;
  font-size: var(--text-meta);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.nav {
  font-size: var(--text-ui);
  font-weight: 500;
  line-height: 1.5;
}

.languages { direction: ltr; }
.languages a {
  font-family: 'Source Sans 3', 'Heebo', Arial, sans-serif;
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 1.6;
  min-block-size: 44px;
}
.languages a[aria-current=true] { font-weight: 700; }

.eyebrow, [dir=rtl] .eyebrow {
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: var(--tracking-label);
  text-wrap: balance;
}

.button, .hero-contact, .opening-link, .more-gallery summary, .map-link {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  line-height: 1.5;
  letter-spacing: 0;
}
.button { font-weight: 600; }
.hero-foot {
  font-size: var(--text-small);
  line-height: 1.6;
  letter-spacing: 0;
}
.hero-photo figcaption, .contact-copy .location, .story-note p {
  font-size: var(--text-label);
  line-height: 1.65;
}

.signature {
  font-family: var(--font-latin-display);
  font-size: 1.875rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}
.signature span {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: var(--tracking-label);
}

form label {
  font-size: var(--text-label);
  line-height: 1.6;
  font-weight: 500;
}
input, textarea {
  font-size: max(1rem, var(--text-body));
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}
.form-note, #form-status {
  font-size: var(--text-small);
  line-height: 1.75;
}
.email {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
  max-inline-size: 100%;
}
[dir=ltr] input { text-align: start; }
input[dir=ltr] { text-align: left; }

footer {
  font-size: var(--text-small);
  line-height: 1.6;
}
.footer-brand { font-size: 1.5rem; }
.footer-brand span {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: var(--text-small);
  line-height: 1.6;
}
dialog p, .lightbox-navigation p {
  font-size: var(--text-small);
  line-height: 1.6;
}

@media (max-width: 650px) {
  :root { --text-body: 1.0625rem; }
  :root:lang(he) { --text-body: 1rem; }
  .brand { font-size: 1.375rem; }
  .brand small { font-size: var(--text-meta); }
}

@media (max-width: 360px) {
  .brand { font-size: 1.25rem; }
}
