/* יש לך בית – יצהר · עיצוב משותף לכל הדפים. צבעים מהלוגו: טורקיז-מים, זהב-טבעת, ונגיעת סגול. */
:root {
  --paper: #faf5ea;
  --ink: #35312a;
  --teal: #1d6377;
  --teal-deep: #0e3f4d;
  --teal-wash: #e3ece4;
  --gold: #a87f2c;
  --gold-soft: #eddcab;
  --lilac: #7d68a6;
  --lilac-wash: #f1ebf7;
  --muted: #6c6656;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.075rem/1.75 "Assistant", system-ui, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Bellefair", "Assistant", serif; font-weight: 400; color: var(--teal-deep); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 4.5vw, 2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 9; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* top bar on inner pages */
.top { padding: 18px 0 6px; }
.top a.home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-deep);
  font-family: "Bellefair", serif; font-size: 1.35rem; }
.top a.home img { width: 54px; }

/* the gold rule from the logo: —— text —— */
.rule { display: flex; align-items: center; gap: 18px; color: var(--gold); font-size: 1.4rem; letter-spacing: .02em; justify-content: center; margin: 4px 0 0; }
.rule::before, .rule::after { content: ""; flex: 0 1 70px; height: 2px; background: var(--gold); border-radius: 2px; }

/* home */
.hero { text-align: center; padding: 42px 0 18px; position: relative; }
.hero::before { /* a soft watercolour wash behind the logo */
  content: ""; position: absolute; inset: 0 8% 25%; z-index: -1; filter: blur(38px); opacity: .55;
  background: radial-gradient(closest-side at 40% 55%, var(--teal-wash), transparent),
              radial-gradient(closest-side at 70% 40%, var(--lilac-wash), transparent);
}
.hero .logo { width: min(420px, 84vw); display: block; margin: 0 auto 14px; }
.intro { font-size: 1.15rem; text-align: center; max-width: 34em; margin: 22px auto 8px; }
.how { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin: 34px 0; }
.how div { padding: 18px 20px; border-inline-start: 3px solid var(--gold-soft); }
.how strong { display: block; font-family: "Bellefair", serif; font-weight: 400; font-size: 1.45rem; color: var(--teal-deep); }
.choices { display: grid; gap: 14px; margin: 10px 0 46px; }
.choice { display: block; text-decoration: none; border-radius: var(--radius); padding: 20px 24px; transition: transform .15s ease; }
.choice:hover { transform: translateY(-2px); }
.choice b { display: block; font-family: "Bellefair", serif; font-weight: 400; font-size: 1.6rem; line-height: 1.3; }
.choice span { font-size: 1rem; }
.choice { background: #fff; color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--gold); }
.choice span { color: var(--muted); }
.choice:hover, .choice:focus-visible, .choice:active { background: var(--teal); color: #fff; box-shadow: inset 0 0 0 2px var(--teal); }
.choice:hover span, .choice:focus-visible span, .choice:active span { color: #d6eaee; }
.choice.demo { cursor: default; box-shadow: inset 0 0 0 2px var(--lilac-wash); }
.choice.demo:hover, .choice.demo:focus-visible, .choice.demo:active { background: #fff; color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--lilac-wash); transform: none; }
.choice.demo:hover span, .choice.demo:focus-visible span, .choice.demo:active span { color: var(--muted); }
.ring { display: inline-block; width: 14px; height: 9px; border: 2px solid var(--gold); border-radius: 50%; vertical-align: middle; margin-inline-end: 8px; }

/* forms */
main.form { padding-bottom: 40px; }
.tabs { display: flex; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 1rem; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--teal); color: #fff; }
form { display: grid; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
legend { font-family: "Bellefair", serif; font-size: 1.35rem; color: var(--teal-deep); margin-bottom: 4px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .98rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid #c9c2ae; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--lilac); outline: 3px solid var(--lilac-wash); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--teal); }
.gender { display: flex; gap: 18px; }
.gender label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.gender input { width: 18px; height: 18px; accent-color: var(--teal); }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { font-size: .92rem; color: var(--muted); }
.btn { font: inherit; font-weight: 700; font-size: 1.08rem; padding: 13px 26px; border-radius: 999px; border: 0; background: var(--teal); color: #fff; cursor: pointer; justify-self: start; }
.btn.gold { background: var(--gold); }
.btn[disabled] { opacity: .6; }
.msg { padding: 14px 18px; border-radius: 10px; display: none; }
.msg.ok { display: block; background: var(--teal-wash); color: var(--teal-deep); }
.msg.bad { display: block; background: #fbeaea; color: #8a2a2a; }

/* text pages */
.doc h2 { margin-top: 1.4em; }
.doc li { margin-bottom: .4em; }

footer { border-top: 1px solid var(--gold-soft); padding: 22px 0 34px; font-size: .92rem; color: var(--muted); text-align: center; }
footer a { color: var(--muted); margin: 0 8px; }

@media (max-width: 560px) {
  .how, .row { grid-template-columns: 1fr; }
  .hero { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Homepage locality and self-registration interaction states. */
.hero-locality {
  margin: 8px 0 0;
  color: #796494;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
}

/* site header + main menu */
.sitehead { background: rgba(255,255,255,.72); border-bottom: 1px solid var(--gold-soft); }
.sitehead-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.sitehead .home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-deep);
  font-family: "Bellefair", serif; font-size: 1.3rem; }
.sitehead .home img { width: 46px; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; }
.menu a { text-decoration: none; color: var(--teal-deep); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 1rem; }
.menu a:hover, .menu a:focus-visible { background: var(--teal-wash); }
.menu a[aria-current="page"] { background: var(--teal); color: #fff; }

/* homepage illustration */
.illustration { display: block; margin: 26px auto 4px; width: min(520px, 88vw); }

/* community cards */
.cards { display: grid; gap: 16px; margin: 26px 0 44px; }
a.card { display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius);
  padding: 22px 24px; box-shadow: inset 0 0 0 1.5px var(--gold-soft); transition: transform .15s ease; }
a.card:hover, a.card:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--gold); }
.card h2 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }
.badge { display: inline-block; font-family: "Assistant", sans-serif; font-size: .82rem; font-weight: 700; color: var(--lilac);
  background: var(--lilac-wash); border-radius: 999px; padding: 2px 12px; margin-inline-start: 10px; vertical-align: middle; }
.badge.gold { color: #7c5f1e; background: var(--gold-soft); }

/* about page */
.founder { font-family: "Bellefair", serif; font-size: 1.7rem; color: var(--teal-deep); margin: 0; }
