/* Zayis Raanon — built from the Zayis Raanon design system (tokens.json).
   Black text on white paper, olive-green for headings, rules and emphasis,
   leaf-green for decoration only. Calibri throughout. Sized up for older readers. */

:root {
  --paper: #ffffff;
  --text: #000000;
  --ink: #201d1d;
  --olive-green: #0c5c36;
  --leaf-green: #65997f;
  --olive-tint: #eef4f0;   /* olive-green at ~8% on paper, for panels */
  --font-sans: Calibri, Carlito, "Segoe UI", Arial, sans-serif;

  --base: 20px;            /* changed by the text-size buttons */
  --gutter: 16px;
  --measure: 1100px;
  --header-rule: 2px;
  --footer-rule: 1px;
}
html[data-size="large"]  { --base: 23px; }
html[data-size="larger"] { --base: 26px; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--base); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--olive-green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--olive-green); outline-offset: 3px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--olive-green); color: var(--paper); padding: 12px 18px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header: logo left, contact right, olive rule under (as the letterhead) */
.site-header { border-bottom: var(--header-rule) solid var(--olive-green); background: var(--paper); }
.header-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 16px;
}
.logo img { display: block; width: 212px; height: auto; }
.header-contact { text-align: right; line-height: 1.35; }
.header-contact .label { color: var(--olive-green); font-weight: 700; display: block; font-size: .8rem; }
.header-contact .phone { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.header-contact .phone:hover { text-decoration: underline; }
@media (max-width: 560px) { .header-contact { text-align: left; } }

.text-size { display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.text-size button {
  font: inherit; font-weight: 700; min-width: 44px; min-height: 44px;
  border: 2px solid var(--olive-green); background: var(--paper); color: var(--olive-green);
  border-radius: 4px; cursor: pointer;
}
.text-size button[aria-pressed="true"] { background: var(--olive-green); color: var(--paper); }
.text-size .a1 { font-size: .8rem; } .text-size .a2 { font-size: 1rem; } .text-size .a3 { font-size: 1.2rem; }

nav.main { border-top: var(--footer-rule) solid var(--leaf-green); }
nav.main ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 28px;
}
nav.main a {
  display: inline-block; padding: 12px 0; color: var(--ink); font-weight: 700; text-decoration: none;
}
nav.main a:hover { color: var(--olive-green); text-decoration: underline; }

/* ---------- Type */
h1, h2, h3 { color: var(--olive-green); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.2rem; }
.eyebrow { color: var(--olive-green); font-weight: 700; margin-bottom: .4em; letter-spacing: .02em; }
.hebrew { font-weight: 700; color: var(--ink); }

section { padding: 56px 0; }
section + section { border-top: var(--footer-rule) solid var(--leaf-green); }
.tint { background: var(--olive-tint); }

/* ---------- Buttons */
.btn {
  display: inline-block; min-height: 52px; padding: 12px 24px;
  background: var(--olive-green); color: var(--paper); font-weight: 700; text-decoration: none;
  border-radius: 4px; border: 2px solid var(--olive-green);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.secondary { background: var(--paper); color: var(--olive-green); }
.btn.secondary:hover { background: var(--olive-tint); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.call-card {
  border: var(--header-rule) solid var(--olive-green); border-radius: 6px; padding: 24px;
}
.call-card .big { display: block; font-size: 2rem; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.1; margin: 4px 0 8px; }
.call-card .big:hover { text-decoration: underline; }
.call-card p:last-child { margin-bottom: 0; }

/* ---------- Grids */
.grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.card { border-top: var(--header-rule) solid var(--olive-green); padding-top: 16px; }
.card p:last-child { margin-bottom: 0; }

ul.ticks { padding-left: 1.2em; margin: 0 0 1em; }
ul.ticks li { margin-bottom: .4em; }
ul.ticks li::marker { color: var(--olive-green); }

/* ---------- Facts from the register */
dl.facts { display: grid; gap: 0; margin: 24px 0; max-width: 760px; }
dl.facts div { display: grid; grid-template-columns: 1fr; padding: 12px 0; border-bottom: var(--footer-rule) solid var(--leaf-green); }
@media (min-width: 640px) { dl.facts div { grid-template-columns: 240px 1fr; gap: 16px; } }
dl.facts dt { font-weight: 700; color: var(--olive-green); }
dl.facts dd { margin: 0; }
.source { font-size: .8rem; }

/* ---------- Wednesday Night Guys */
.wng { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .wng { grid-template-columns: 1.5fr 1fr; } }

/* ---------- Funders */
.funders { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; margin-top: 24px; }
.funder { display: flex; flex-direction: column; gap: 8px; }
.funder img { display: block; width: 220px; height: auto; }
.funder-text {
  display: flex; align-items: center; min-height: 76px; padding: 12px 20px;
  border: var(--header-rule) solid var(--ink); border-radius: 6px;
  font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.2;
}
.funder small { font-size: .8rem; }

/* ---------- Contact */
address { font-style: normal; }
.contact-grid { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer: fine leaf-green rule, council mark left, name + number right */
.site-footer { border-top: var(--footer-rule) solid var(--leaf-green); padding: 24px 0 40px; font-size: .85rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-row img { width: 116px; height: auto; display: block; }
.footer-name { color: var(--olive-green); font-weight: 700; }
.site-footer p { max-width: none; margin: 0; }
.site-footer .small { margin-top: 12px; }

@media print {
  nav.main, .text-size, .skip { display: none; }
  section { padding: 16px 0; }
}
