/* Subsets of SIL Open Font License typefaces. Licenses accompany the font files. */
@font-face {
  font-family: "David Libre";
  src: url("fonts/david-text.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200C-200F, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "David Libre";
  src: url("fonts/david-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200C-200F, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Assistant";
  src: url("fonts/assistant.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

html:root {
  --iw-latin-display: "Newsreader", "David Libre", Georgia, serif;
  --serif: "David Libre", "Newsreader", Georgia, serif;
  --sans: "Assistant", Arial, sans-serif;
  font-optical-sizing: auto;
  font-kerning: normal;
}

html:lang(en) {
  --serif: var(--iw-latin-display);
}

html:lang(he) .at-opening h1 em {
  font-style: normal;
  font-weight: 500;
}

html:lang(en) .at-opening h1 em {
  font-family: var(--iw-latin-display);
  font-style: italic;
  font-weight: 400;
}

.iw-card-foot :is(h2, h3),
.iw-hero-project strong,
.ic-credit strong {
  font-family: var(--iw-latin-display);
  font-weight: 400;
}

html:lang(he) :is(.iw-page-intro h1, .iw-section-top h2, .iw-foot-first h2, .iw-workshop-feature h2) {
  letter-spacing: -.024em;
  line-height: 1.02;
}

html:lang(he) .iw-article-row h2 {
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.12;
}

html:lang(en) :is(.iw-page-intro h1, .iw-section-top h2, .iw-foot-first h2) {
  letter-spacing: -.038em;
  line-height: 1.02;
}

.iw-nav a,
.iw-header-contact,
.iw-header .iw-lang {
  font-family: var(--sans);
  font-weight: 600;
}

.iw-article-row p, .iw-deck {
  font-family: var(--sans);
  font-weight: 400;
}

.iw-article-row p {
  line-height: 1.75;
}

.iw-tour__folio {
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}

/* At enlarged reading sizes the labels sit above the range, leaving its
   full width available for pointer and keyboard adjustment. */
@media (max-width: 32rem) {
  html[data-iw-large-text=true] :is(.iw-field h2, .iw-field-close h2, .iw-plate .dp-intro h2) {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  html[data-iw-large-text=true] .iw-site a.iw-underlink[href^="mailto:"] {
    display: block;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html[data-iw-large-text=true] .dp-category {
    flex-wrap: wrap;
    gap: .3em .65em;
    overflow-wrap: anywhere;
  }
  html[data-iw-large-text=true] .dp-category bdi { max-inline-size: 100%; }
  html[data-iw-large-text=true] .dp-category bdi::after { display: none; }
  html[data-iw-large-text=true] .dp-lens::before { inset: 0; }
  html[data-iw-large-text=true] .dp-slider {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .2em .5em;
  }
  html[data-iw-large-text=true] .dp-slider > span { grid-row: 1; overflow-wrap: anywhere; }
  html[data-iw-large-text=true] .dp-slider > span:last-child { text-align: end; }
  html[data-iw-large-text=true] .dp-slider input { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; }
}
