:root {
  --ink: #141414;
  --paper: #f3eee6;
  --court: #1b3a5f;
  --glass: #a8c0cc;
  --mist: #e8e4dc;
  --chalk: #f4f0ea;
  --max: 1180px;
  --space: clamp(1.5rem, 4vw, 4rem);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--court); }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mist);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img { width: 22px; height: auto; }

.brand span {
  font-family: "Barlow Condensed", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  font-size: 0.92rem;
}

.nav-links a { text-decoration: none; }

.lang {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang a {
  text-decoration: none;
  padding: 0.28rem 0.65rem;
}

.lang a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.hero-logo {
  width: min(220px, 42vw);
  margin: 0 auto 2.6rem;
}

.hero h1 {
  font-family: "Barlow Condensed", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero p {
  max-width: 32rem;
  margin: 1.6rem auto 0;
  color: color-mix(in srgb, var(--ink) 78%, var(--paper));
  font-size: 1.08rem;
}

/* Sections */
section { padding: 4.5rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.9rem;
}

.section-head h2 {
  font-family: "Barlow Condensed", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
}

.section-head p {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 70%, var(--paper));
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.1rem;
}

.card figure {
  background: var(--mist);
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img { transform: scale(1.025); }

.card h3 {
  font-family: "Barlow Condensed", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  margin-top: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 70%, var(--paper));
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about h2 {
  font-family: "Barlow Condensed", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.9rem;
  margin-bottom: 1.2rem;
}

.about p + p { margin-top: 1rem; }

.note {
  border-top: 1px solid var(--mist);
  margin-top: 2.5rem;
  padding-top: 1rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 70%, var(--paper));
}

footer {
  border-top: 1px solid var(--mist);
  padding: 1.6rem 0 2.4rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img { transition: none; }
}

/* -------------------------------------------------------------------------- */
/* Accessibility: skip link, focus, widget, display modes                     */
/* -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 0.75rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1.05rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-200%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  color: var(--paper);
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

:focus {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

html[data-a11y-font="large"] { font-size: 125%; }
html[data-a11y-font="larger"] { font-size: 150%; }

html[data-a11y-contrast="high"] {
  --ink: #000000;
  --paper: #ffffff;
  --court: #000000;
  --glass: #000000;
  --mist: #d0d0d0;
  --chalk: #ffffff;
}
html[data-a11y-contrast="high"] header {
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 2px solid #000000;
}
html[data-a11y-contrast="high"] a:hover { color: #000000; text-decoration: underline; }
html[data-a11y-contrast="high"] .lang { border-width: 2px; }
html[data-a11y-contrast="high"] .card figure { background: #ececec; }

html[data-a11y-links="on"] a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
  background-color: #ffe566;
  color: #000000;
  padding-inline: 0.12em;
}
html[data-a11y-links="on"] a:hover,
html[data-a11y-links="on"] a:focus-visible {
  color: #000000;
  background-color: #ffd000;
}
html[data-a11y-links="on"] .lang a[aria-current="page"] {
  background: #000000;
  color: #ffe566;
  text-decoration: none;
}
html[data-a11y-links="on"] .skip-link {
  background: #000000;
  color: #ffe566;
}

html[data-a11y-motion="stop"],
html[data-a11y-motion="stop"] * {
  scroll-behavior: auto !important;
  animation: none !important;
  transition: none !important;
}
html[data-a11y-motion="stop"] .card:hover img,
html[data-a11y-motion="stop"] .card img {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover img { transform: none; }
}

/* Widget */
.a11y-widget {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
[dir="rtl"] .a11y-widget { align-items: flex-start; }

.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 18%, transparent);
}
[dir="rtl"] .a11y-toggle { padding: 0.45rem 0.7rem 0.45rem 0.85rem; }
.a11y-toggle:hover { color: var(--paper); }
.a11y-toggle:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.a11y-toggle svg { display: block; flex: 0 0 auto; }

.a11y-panel {
  width: min(20.5rem, calc(100vw - 2rem));
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--ink) 16%, transparent);
}
.a11y-panel[hidden] { display: none !important; }

.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.a11y-panel-head h2 {
  font-family: "Barlow Condensed", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.a11y-close {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  min-height: 2.25rem;
}

.a11y-fieldset {
  border: 1px solid var(--mist);
  padding: 0.7rem 0.7rem 0.8rem;
  margin: 0 0 0.75rem;
}
.a11y-fieldset legend {
  padding-inline: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.a11y-font-btn {
  display: inline-block;
  margin: 0.2rem 0.25rem 0 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  min-height: 2.25rem;
}
[dir="rtl"] .a11y-font-btn { margin: 0.2rem 0 0 0.25rem; }
.a11y-font-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--mist);
}
.a11y-row-label { font-size: 0.95rem; }

.a11y-switch {
  flex: 0 0 auto;
  width: 3rem;
  height: 1.7rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.a11y-switch-track {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.a11y-switch-track::after {
  content: "";
  position: absolute;
  inset-block-start: 0.12rem;
  inset-inline-start: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--ink);
}
.a11y-switch[aria-checked="true"] { background: var(--ink); }
.a11y-switch[aria-checked="true"] .a11y-switch-track::after {
  inset-inline-start: auto;
  inset-inline-end: 0.15rem;
  background: var(--paper);
}

.a11y-statement-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.92rem;
}

/* Statement page */
.statement {
  padding: clamp(3rem, 8vw, 5.5rem) 0 4rem;
  max-width: 42rem;
}
.statement h1 {
  font-family: "Barlow Condensed", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.statement h2 {
  font-family: "Barlow Condensed", "IBM Plex Sans Hebrew", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 2.2rem 0 0.7rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.9rem;
}
.statement p + p,
.statement ul { margin-top: 0.9rem; }
.statement ul { padding-inline-start: 1.2rem; }
.statement li + li { margin-top: 0.4rem; }
.statement .meta {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ink) 78%, var(--paper));
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}
