/* ------------------------------------------------------------------
   Base: fonts, reset, typography
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../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: 100 900;
  font-display: swap;
  src: url("../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;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--c-charcoal);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-paper);
  background: var(--c-charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
}

::selection {
  background: var(--c-gold);
  color: var(--c-charcoal);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- typographic roles ------------------------------------------- */
.eyebrow {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  letter-spacing: 0.08em;
  color: var(--c-gold);
  margin-block-end: var(--space-3);
}
.eyebrow[lang="en"] {
  text-transform: uppercase;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--c-gold);
  letter-spacing: 0;
  margin-block-end: var(--space-4);
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--c-gold);
  margin-block-end: var(--space-2);
}

.prose {
  max-width: var(--w-text);
}
.prose p + p {
  margin-block-start: 1.25em;
}
.prose--center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  line-height: 1.6;
}

.statement {
  font-family: var(--font-display);
  font-size: var(--fs-statement);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--c-gold);
  max-width: 24ch;
}

/* Latin brand words inside Hebrew copy keep their own direction */
.latin {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: var(--fw-medium);
}

/* theme surfaces */
.theme-dark {
  background: var(--c-charcoal);
  color: var(--c-paper);
  --hair: var(--c-hair-dark);
  --text-soft: var(--c-paper-soft);
}
.theme-light {
  background: var(--c-cream);
  color: var(--c-ink);
  --hair: var(--c-hair-light);
  --text-soft: var(--c-ink-soft);
}
.theme-light .h2,
.theme-light .h3 {
  color: var(--c-gold);
}
.theme-light .statement {
  color: var(--c-ink);
}
/* paper texture from the prospectus, very faint */
.theme-light.has-paper {
  background-image: linear-gradient(rgba(246, 241, 232, 0.86), rgba(246, 241, 232, 0.86)), url("../img/texture-paper-1200.webp");
  background-size: auto, 1200px auto;
  background-repeat: repeat;
}
