:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --text: #1b2430;
  --muted: #4a5668;
  --brand: #1f4e79;
  --brand-contrast: #ffffff;
  --border: #d7dee8;
  --focus: #b45309;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10161e;
    --bg-soft: #18212c;
    --text: #e8edf3;
    --muted: #aab6c5;
    --brand: #8cb8e6;
    --brand-contrast: #10161e;
    --border: #2b3948;
    --focus: #fbbf24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.wrap { width: min(100% - 32px, 960px); margin-inline: auto; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10;
  background: var(--brand); color: var(--brand-contrast); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-contrast); font-size: 0.95rem; }
.nav-list, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 20px; flex-wrap: wrap; }
.nav-list a { display: inline-block; padding: 10px 6px; color: var(--text); text-decoration: none; font-weight: 600; }
.nav-list a:hover { color: var(--brand); text-decoration: underline; }

/* sections */
.hero { background: var(--bg-soft); padding: 72px 0 64px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.25; margin: 0 0 16px; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 0 28px; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section h2 { font-size: 1.6rem; margin: 0 0 24px; }

.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; background: var(--brand); color: var(--brand-contrast); font-weight: 700; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list strong { display: inline-block; min-width: 5.5rem; }

/* legal pages */
.legal { padding: 48px 0 72px; max-width: 46rem; }
.legal h1 { font-size: 2rem; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.legal ul { padding-inline-start: 1.4rem; }
.legal li { margin: 4px 0; }
.notice { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; }

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 32px 0 20px; margin-top: 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid p { margin: 4px 0 0; color: var(--muted); }
.footer-links a { display: inline-block; padding: 6px 4px; }
.footer-note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
}
