/* Base layer: brand faces, type scale, resets, the accessibility widget and its
 * display modes. Colours and everything specific to the festival page are in
 * festival.css, which loads after this file.
 *
 * Type: Ogen for display, Shefa for text, Assistant for Latin letters only
 * (Shefa has none). Two weights, 400 and 700 — never ask for 900: the browser
 * answers with a synthetic bold. Sizes come from two ramps off 17px (x1.25 above
 * the body size, x1.125 below), in rem so the widget's text-size control scales
 * the whole page together.
 */

@font-face {
  font-family: 'Ogen'; src: url('../assets/fonts/ogen-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-0025, U+0027-10FFFF;
}

@font-face {
  font-family: 'Ogen'; src: url('../assets/fonts/ogen-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-0025, U+0027-10FFFF;
}

@font-face {
  font-family: 'Shefa'; src: url('../assets/fonts/shefa-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Shefa'; src: url('../assets/fonts/shefa-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Shefa'; src: url('../assets/fonts/shefa-400i.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

@font-face {
  font-family: 'Shefa'; src: url('../assets/fonts/shefa-700i.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}

@font-face {
  font-family: 'Latin'; src: url('../assets/fonts/assistant-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; size-adjust: 107%;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00D6, U+00D8-00F6, U+00F8-00FF, U+0100-017F;
}

@font-face {
  font-family: 'Latin'; src: url('../assets/fonts/assistant-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; size-adjust: 105%;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00D6, U+00D8-00F6, U+00F8-00FF, U+0100-017F;
}

:root {
  --display: 'Latin', 'Ogen', 'Shefa', system-ui, sans-serif;
  --body:    'Latin', 'Shefa', 'Ogen', system-ui, sans-serif;
  --t--4: 0.663rem;
  --t--3: 0.746rem;
  --t--2: 0.839rem;
  --t--1: 0.944rem;
  --t-0:  1.0625rem;
  --t-1:  1.328rem;
  --t-2:  1.660rem;
  --t-3:  2.075rem;
  --t-4:  2.594rem;
  --s-1: .35rem; --s-2: .75rem; --s-3: 1.25rem; --s-4: 2rem; --s-5: 3rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 78rem;
  --r: 3px;
}

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

html {
 scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h, 6.5rem) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
 scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(70% 32% at 50% -6%, var(--glow), transparent 70%);
  background-repeat: no-repeat;
}

h1, h2, h3 {
 font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em;
}

p {
 margin: 0 0 1em;
}

a {
 color: inherit;
}

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

.skip {
  position: fixed; top: 0; inset-inline-start: 0; z-index: 99;
  background: var(--gold); color: var(--on-gold); padding: .75rem 1.25rem; font-weight: 700;
  clip-path: inset(50%); white-space: nowrap;
}

.skip:focus {
 clip-path: none;
}

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

[data-venue="instagramHandle"] {
 direction: ltr; unicode-bidi: isolate;
}

.act {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--edge); border-radius: var(--r);
  color: var(--ink); font-family: var(--display); font-weight: 700; font-size: var(--t-0);
  line-height: 1.45;
  padding: .5rem .95rem; cursor: pointer;
  text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s;
}

.act:hover {
 color: var(--gold); border-color: var(--gold-dim); background: var(--gold-wash);
}

.act svg {
 width: 15px; height: 15px; flex: none;
}

.act__label {
 white-space: nowrap;
}

.foot {
 border-top: 1px solid var(--line); background: var(--bg-2);
}

.foot__bar {
 font-size: var(--t--2); color: var(--ink);
}

.foot h2, .foot h3 {
  font-size: var(--t--4); font-weight: 400; letter-spacing: .06em;
  color: var(--ink); margin-bottom: .9rem;
}

.foot a {
  text-decoration: none; border-bottom: 1px solid transparent;
  display: inline-block; padding-block: .3rem;
  transition: color .2s, border-color .2s;
}

.foot a:hover {
 color: var(--gold); border-bottom-color: var(--gold-dim);
}

.foot__legal {
  max-width: var(--measure); margin: 0 auto; padding: 1.5rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--t--3); color: var(--ink); text-align: center;
}

.a11y-trigger {
  position: fixed; inset-block-end: 1.25rem; inset-inline-start: 1.25rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold); border: 2px solid var(--on-gold);
  box-shadow: 0 6px 20px rgba(0,0,0,.55); cursor: pointer;
}

.a11y-trigger svg {
 width: 26px; height: 26px;
}

.a11y-trigger svg circle {
 fill: currentColor;
}

.a11y-trigger:hover {
 background: var(--gold-lift);
}

.a11y-panel {
  position: fixed; inset-block-end: 5.25rem; inset-inline-start: 1.25rem; z-index: 91;
  width: min(21rem, calc(100vw - 2.5rem));
  background: var(--surface-raised); border: 1px solid var(--edge); border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.75);
  padding: 1rem; max-height: min(80vh, 40rem); overflow-y: auto;
}

.a11y-panel__head {
 display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem;
}

.a11y-panel__head h2 {
 font-size: var(--t-0); font-weight: 700;
}

.a11y-close {
  background: none; border: 0; color: var(--ink); font-size: var(--t-0);
  cursor: pointer; padding: .25rem .4rem; line-height: 1;
}

.a11y-close:hover {
 color: var(--ink);
}

.a11y-grid {
 display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem;
}

.a11y-opt {
  display: flex; flex-direction: column; gap: .2rem; text-align: start;
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r);
  color: var(--ink); font-family: var(--body); font-size: var(--t--2);
  padding: .6rem .7rem; cursor: pointer; min-height: 3.4rem;
  transition: border-color .15s, color .15s, background-color .15s;
}

.a11y-opt:hover {
 color: var(--ink); border-color: var(--gold-dim);
}

.a11y-opt.is-on {
 border-color: var(--gold); color: var(--gold); background: var(--gold-wash);
}

.a11y-opt {
 position: relative;
}

.a11y-opt[aria-pressed="true"]::after {
  content: '✓'; position: absolute; inset-block-start: .35rem; inset-inline-end: .5rem;
  font-size: var(--t--2); font-weight: 700; line-height: 1; color: var(--gold);
}

.a11y-opt__value {
 font-family: var(--display); font-weight: 700; font-size: var(--t--2);
}

.a11y-reset {
  width: 100%; margin-top: .75rem;
  background: none; border: 1px solid var(--edge); border-radius: var(--r);
  color: var(--ink); font-family: var(--body); font-size: var(--t--2);
  padding: .55rem; cursor: pointer;
}

.a11y-reset:hover {
 color: var(--ink); border-color: var(--gold-dim);
}

.a11y-note {
 font-size: var(--t--3); color: var(--ink); margin: .75rem 0 0;
}

.a11y-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

html.a11y-links a {
 text-decoration: underline !important; text-underline-offset: 3px;
}

html.a11y-headings h1, html.a11y-headings h2, html.a11y-headings h3 {
  outline: 2px dashed var(--gold); outline-offset: 4px;
}

html.a11y-readable, html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable p, html.a11y-readable a, html.a11y-readable span, html.a11y-readable button, html.a11y-readable select, html.a11y-readable li {
  font-family: Arial, "Arial Hebrew", "Helvetica Neue", sans-serif !important;
  letter-spacing: normal !important;
}

html.a11y-cursor-black, html.a11y-cursor-black * {
 cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M4 2l14 9-6 1 3.5 7-3 1.5L9 13l-5 4z' fill='black' stroke='white' stroke-width='1.2'/></svg>") 2 2, auto !important;
}

html.a11y-cursor-large, html.a11y-cursor-large * {
 cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path d='M4 2l14 9-6 1 3.5 7-3 1.5L9 13l-5 4z' fill='white' stroke='black' stroke-width='1.2'/></svg>") 4 4, auto !important;
}

html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

html.a11y-text-115 {
 font-size: 115%;
}

html.a11y-text-130 {
 font-size: 130%;
}

html.a11y-text-150 {
 font-size: 150%;
}

html.a11y-lines-20 p, html.a11y-lines-20 li {
  line-height: 2 !important;
}

html.a11y-lines-25 p, html.a11y-lines-25 li {
  line-height: 2.5 !important;
}

html.a11y-contrast-high {
  --bg: #000000; --bg-2: #000000; --surface: #000000;
  --ink: #FFFFFF; --ink-dim: #FFFFFF;  --gold: #FFD24A; --gold-dim: #FFD24A; --line: #FFFFFF; --line-soft: #FFFFFF; --edge: #FFFFFF;
  --gold-wash: transparent; --gold-lift: #FFFFFF;
  --on-gold: #000000; --glow: transparent;
}

html.a11y-contrast-high body {
 background-image: none;
}

html.a11y-contrast-invert {
 filter: invert(1) hue-rotate(180deg); background: #fff;
}

html.a11y-contrast-mono {
 filter: grayscale(1);
}

html.a11y-contrast-invert img, html.a11y-contrast-invert video {
 filter: invert(1) hue-rotate(180deg);
}

html.a11y-contrast-invert .a11y-trigger, html.a11y-contrast-invert .a11y-panel {
 filter: invert(1) hue-rotate(180deg);
}

@media (max-width: 30rem) {
  .a11y-opt {
 padding: .5rem .55rem; min-height: 3.1rem;
  }
}

@media print {
  .a11y-trigger, .a11y-panel {
 display: none !important;
  }

  html[class*="a11y-contrast-"] {
 filter: none !important;
  }

  html[class*="a11y-text-"] {
 font-size: 100% !important;
  }

  html[class*="a11y-lines-"] p, html[class*="a11y-lines-"] li {
 line-height: normal !important;
  }
}

html.a11y-spacing-wide  body {
 letter-spacing: .09em; word-spacing: .12em;
}

html.a11y-spacing-wider body {
 letter-spacing: .14em; word-spacing: .2em;
}

.a11y-opt {
  flex-direction: column; align-items: center; gap: .3rem; text-align: center;
}

.a11y-opt__icon {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.a11y-opt__body {
 display: flex; flex-direction: column; gap: .15rem; align-items: center;
}

.a11y-alt-caption {
  display: block; margin: 6px 0 10px; padding: 6px 10px;
  background: #111; color: #fff; font-size: var(--t--3); line-height: 1.5;
  text-align: start; border-radius: 4px;
}

.a11y-alt-host {
 position: relative;
}

.a11y-alt-caption--over {
  position: absolute; inset-inline: 0; inset-block-end: 0; margin: 0;
  border-radius: 0; background: rgba(0, 0, 0, .82); z-index: 3;
}

.a11y-alt-caption--none {
 background: #3a3a3a; font-style: italic; font-weight: 400;
}

html.a11y-hide-images img, html.a11y-hide-images video {
 visibility: hidden;
}

.a11y-foot {
 margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .6rem;
}

.a11y-keys summary {
  cursor: pointer; font-weight: 700; font-size: var(--t--1); padding: .25rem 0;
  color: var(--ink);
}

.a11y-keys__list {
 list-style: none; margin: .4rem 0 .25rem; padding: 0;
}

.a11y-keys__list li {
  display: flex; gap: .5rem; align-items: baseline; font-size: var(--t--2); line-height: 1.6;
}

.a11y-keys kbd {
  flex: 0 0 auto; font: 700 var(--t--3) / 1.4 var(--body);
  background: var(--gold-wash); border: 1px solid var(--edge); border-radius: 4px;
  padding: 1px 6px; direction: ltr;
}

#a11y-aids {
 position: fixed; inset: 0; z-index: 190; pointer-events: none;
}

.a11y-aid-line, .a11y-aid-mask {
 display: none;
}

html.a11y-guide .a11y-aid-line {
  display: block; position: absolute; inset-inline: 0;
  top: calc(var(--y, 50vh) - 2px); height: 4px; background: var(--gold);
}

html.a11y-mask .a11y-aid-mask {
  display: block; position: absolute; inset-inline: 0; background: rgba(0, 0, 0, .72);
}

html.a11y-mask .a11y-aid-mask--top {
 top: 0; height: calc(var(--y, 50vh) - 60px);
}

html.a11y-mask .a11y-aid-mask--bottom {
 top: calc(var(--y, 50vh) + 60px); bottom: 0;
}

@media print {
  #a11y-aids {
 display: none !important;
  }
}
