/* Aleh Yarok — Green Leaf. Bidirectional (LTR/RTL) campaign stylesheet. */

:root {
  --leaf:        #1f7a3d;
  --leaf-deep:   #11512a;
  --leaf-bright: #35a85b;
  --leaf-wash:   #eef6f0;
  --ink:         #12181a;
  --ink-soft:    #3d4a4d;
  --ink-faint:   #6b7a7d;
  --paper:       #fbfaf7;
  --paper-raise: #ffffff;
  --line:        #dfe3dd;
  --sand:        #f2efe6;
  --alert:       #8a3a1e;
  --alert-wash:  #fdf2ee;

  --measure: 34rem;
  --wrap: 72rem;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(18,24,26,.05), 0 8px 26px -12px rgba(18,24,26,.16);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --hebrew: "Assistant", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --arabic: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --leaf:        #4fbd74;
    --leaf-deep:   #8ad9a4;
    --leaf-bright: #6ad48c;
    --leaf-wash:   #13251a;
    --ink:         #eaf0ec;
    --ink-soft:    #b3c0b8;
    --ink-faint:   #83948b;
    --paper:       #0e1311;
    --paper-raise: #161d19;
    --line:        #2a352e;
    --sand:        #1a221d;
    --alert:       #f0a98c;
    --alert-wash:  #2a1a12;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --leaf: #4fbd74; --leaf-deep: #8ad9a4; --leaf-bright: #6ad48c; --leaf-wash: #13251a;
  --ink: #eaf0ec; --ink-soft: #b3c0b8; --ink-faint: #83948b;
  --paper: #0e1311; --paper-raise: #161d19; --line: #2a352e; --sand: #1a221d;
  --alert: #f0a98c; --alert-wash: #2a1a12;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[lang="he"] body, body[dir="rtl"] { font-family: var(--hebrew); }
html[lang="he"] body { font-family: var(--hebrew); line-height: 1.75; }
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.85; }
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.75; }

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

a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: 2.5px; }
a:hover { color: var(--leaf-deep); }
:focus-visible { outline: 2.5px solid var(--leaf-bright); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.14; letter-spacing: -.014em; margin: 0; font-weight: 600; text-wrap: balance; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] h4 { font-family: var(--hebrew); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--arabic); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; }
html[lang="he"] h3 { font-family: var(--hebrew); }
html[lang="ar"] h3 { font-family: var(--arabic); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.measure { max-width: var(--measure); }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }
.kicker {
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--leaf);
  margin: 0 0 1rem;
}
html[lang="he"] .kicker { font-family: var(--hebrew); letter-spacing: .04em; }
html[lang="ar"] .kicker { font-family: var(--arabic); letter-spacing: .04em; }
.eyebrow { font-size: .8rem; color: var(--ink-faint); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; inset-inline-start: .6rem; top: -3rem; z-index: 100;
  background: var(--leaf-deep); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
  text-decoration: none; font-size: .9rem; transition: top .15s;
}
.skip:focus { top: .6rem; color: #fff; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-block-end: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; margin-inline-end: auto; white-space: nowrap; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; color: var(--leaf); }
.brand-mark svg { width: 100%; height: 100%; display: block; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 550;
  padding: .45rem .6rem; border-radius: var(--r-sm); white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--leaf-deep); background: var(--leaf-wash); }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.lang-toggle {
  font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; white-space: nowrap;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink-faint); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); padding: .4rem .6rem; font: inherit; font-size: .85rem; cursor: pointer;
}
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-raise); border-block-end: 1px solid var(--line);
    padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1rem; box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .7rem .4rem; border-block-end: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav a:last-child { border-block-end: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-deep); border-color: var(--leaf-deep); color: #fff; }
:root[data-theme="dark"] .btn-primary, :root:not([data-theme="light"]) .btn-primary { color: #06120b; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn-primary { color: #fff; } }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); background: var(--sand); }
.btn-lg { font-size: 1.08rem; padding: 1rem 1.9rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* ---------- sections ---------- */
section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.sec-tight { padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.sec-sand { background: var(--sand); }
.sec-leaf { background: var(--leaf-wash); }
.sec-line { border-block-start: 1px solid var(--line); }
.sec-head { max-width: 46rem; margin-block-end: clamp(2rem, 4vw, 3rem); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-block-start: -30%; inset-inline-end: -12%;
  width: 46rem; height: 46rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--leaf) 13%, transparent), transparent 66%);
}
.hero .wrap { position: relative; }
.hero h1 { margin-block-end: 1.3rem; }
.hero .lead { max-width: 40rem; }
.hero-note {
  margin-block-start: 2rem; padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--leaf); color: var(--ink-soft);
  font-size: .96rem; max-width: 38rem;
}
.hero-cta { margin-block-start: 2.2rem; }
.hero-cta-sub { font-size: .87rem; color: var(--ink-faint); margin-block-start: .7rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.card {
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-block-end: .5rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card-num {
  font-family: var(--serif); font-size: .95rem; font-weight: 600; color: var(--leaf);
  letter-spacing: .06em; margin-block-end: .7rem;
}

/* planks */
.planks { display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.plank {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem;
  padding-block: 1.9rem; border-block-end: 1px solid var(--line); align-items: start;
}
@media (max-width: 640px) { .plank { grid-template-columns: 1fr; gap: .5rem; } }
.plank-n { font-family: var(--serif); font-size: 1.5rem; color: var(--leaf); font-weight: 600; }
html[lang="he"] .plank-n { font-family: var(--sans); }
html[lang="ar"] .plank-n { font-family: var(--sans); }
.plank h3 { font-size: 1.3rem; font-family: var(--serif); font-weight: 600; margin-block-end: .5rem; }
html[lang="he"] .plank h3 { font-family: var(--hebrew); font-weight: 700; }
html[lang="ar"] .plank h3 { font-family: var(--arabic); font-weight: 700; }
.plank p { color: var(--ink-soft); max-width: 42rem; }

/* leaders */
.leader { border-block-start: 2px solid var(--ink); padding-block-start: 1.4rem; }
.leader-seat { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
html[lang="he"] .leader-seat { letter-spacing: .03em; }
html[lang="ar"] .leader-seat { letter-spacing: .03em; }
.leader h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin-block: .5rem .1rem; letter-spacing: -.02em; }
html[lang="he"] .leader h3 { font-family: var(--hebrew); font-weight: 700; }
html[lang="ar"] .leader h3 { font-family: var(--arabic); font-weight: 700; }
.leader-nick { color: var(--leaf-deep); font-style: italic; font-size: 1.05rem; }
html[lang="he"] .leader-nick { font-style: normal; }
html[lang="ar"] .leader-nick { font-style: normal; }
.leader-role { font-size: .87rem; color: var(--ink-faint); margin-block-end: 1rem; }
.leader p { color: var(--ink-soft); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.stat-n { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 600; color: var(--leaf); line-height: 1; letter-spacing: -.03em; }
html[lang="he"] .stat-n { font-family: var(--sans); }
html[lang="ar"] .stat-n { font-family: var(--sans); }
.stat-l { font-size: .9rem; color: var(--ink-soft); margin-block-start: .6rem; }

/* callout */
.callout {
  background: var(--paper-raise); border: 1px solid var(--line); border-inline-start: 4px solid var(--leaf);
  border-radius: var(--r); padding: 1.5rem 1.6rem;
}
.callout-alert { border-inline-start-color: var(--alert); background: var(--alert-wash); }
.callout h3 { margin-block-end: .55rem; }
.callout p { color: var(--ink-soft); }

/* option cards (radio) */
.options { display: grid; gap: .8rem; }
.option { position: relative; }
.option input { position: absolute; inset-block-start: 1.35rem; inset-inline-start: 1.25rem; margin: 0; accent-color: var(--leaf); width: 1.1rem; height: 1.1rem; }
.option label {
  display: block; cursor: pointer; padding: 1.2rem 1.4rem;
  padding-inline-start: 3.1rem; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--paper-raise);
}
.option label:hover { border-color: var(--leaf-bright); }
.option input:checked + label { border-color: var(--leaf); background: var(--leaf-wash); box-shadow: 0 0 0 1px var(--leaf); }
.option input:focus-visible + label { outline: 2.5px solid var(--leaf-bright); outline-offset: 2px; }
.option strong { display: block; font-size: 1.05rem; margin-block-end: .25rem; }
.option span { font-size: .93rem; color: var(--ink-soft); }

/* lists */
.ruleslist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.ruleslist li { position: relative; padding-inline-start: 1.7rem; color: var(--ink-soft); }
.ruleslist li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .58em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--leaf);
}
.taglist { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.taglist li {
  border: 1px solid var(--line); background: var(--paper-raise); border-radius: 999px;
  padding: .5rem 1.05rem; font-size: .95rem; font-weight: 550;
}

/* prose blocks */
.prose { max-width: 40rem; }
.prose h3 { margin-block: 2rem .5rem; }
.prose h3:first-child { margin-block-start: 0; }
.prose p { color: var(--ink-soft); }

/* ---------- forms ---------- */
.form { max-width: 30rem; }
.field { margin-block-end: 1.15rem; }
.field label { display: block; font-size: .9rem; font-weight: 650; margin-block-end: .35rem; }
.field .help { font-size: .82rem; color: var(--ink-faint); margin-block-start: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper-raise); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: .72rem .85rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 22%, transparent); }
.field input[dir="ltr"] { text-align: start; }
.field .err { font-size: .84rem; color: var(--alert); margin-block-start: .35rem; font-weight: 550; }
.field.invalid input, .field.invalid textarea { border-color: var(--alert); }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; margin-block: 1.4rem; }
.check input { margin: .28rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--leaf); flex: none; }
.check label { font-size: .93rem; color: var(--ink-soft); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-block-start: 1rem; font-size: .93rem; font-weight: 550; }

.result { border-radius: var(--r); padding: 1.6rem; border: 1px solid var(--line); background: var(--paper-raise); max-width: 32rem; }
.result-ok { border-inline-start: 4px solid var(--leaf); }
.result-bad { border-inline-start: 4px solid var(--alert); background: var(--alert-wash); }
.result h2 { font-size: 1.6rem; margin-block-end: .6rem; }
.result p { color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.1rem; }
.shot { background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.shot figcaption { padding: .9rem 1.05rem 1.1rem; }
.shot-cap { font-size: .95rem; font-weight: 600; }
.shot-meta { font-size: .8rem; color: var(--ink-faint); margin-block-start: .25rem; }
.empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 2.5rem 1.5rem; text-align: center; color: var(--ink-faint); }
.empty h3 { color: var(--ink); margin-block-end: .4rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--sand); border-block-start: 1px solid var(--line); padding-block: 3rem 2rem; margin-block-start: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(8rem, 1fr)); gap: 2rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-block-end: .9rem; }
html[lang="he"] .foot-grid h4 { font-family: var(--hebrew); letter-spacing: .03em; }
html[lang="ar"] .foot-grid h4 { font-family: var(--arabic); letter-spacing: .03em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-grid a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.foot-grid a:hover { color: var(--leaf-deep); text-decoration: underline; }
.foot-brand p { font-size: .9rem; color: var(--ink-soft); max-width: 22rem; }
.foot-legal { margin-block-start: 2.5rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); display: grid; gap: .5rem; }
.foot-legal p { font-size: .8rem; color: var(--ink-faint); max-width: 48rem; }

/* Named poster slots: campaign graphics carry headline text, so they are shown
   whole at their natural aspect ratio rather than cropped to a fixed box. */
.shot-wide img { aspect-ratio: auto; height: auto; object-fit: contain; background: var(--sand); }
.photo-slot { padding: 2rem 1.5rem; }
.photo-slot code { font-size: .84rem; background: var(--sand); padding: .15rem .4rem; border-radius: 4px; }

/* joint-list roster */
.roster { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); counter-reset: none; }
.roster-row { display: flex; align-items: center; gap: .9rem;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper-raise); }
.roster-n { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
  background: var(--sand); color: var(--ink-soft); }
.roster-name { font-size: .97rem; font-weight: 550; }
.roster-me { border-color: var(--leaf); background: var(--leaf-wash); box-shadow: 0 0 0 1px var(--leaf); }
.roster-me .roster-n { background: var(--leaf); color: #fff; }
.roster-me .roster-name { font-weight: 700; }

/* caravan build photos */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.shots .shot img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.shots .shot-span { grid-column: 1 / -1; }
.shots .shot-span img { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .shots .shot-span img { aspect-ratio: 4 / 3; } }
