/* shomer-ai.com: the shared look, taken from the Hebrew homepage (2026-11-16-hebrew-clean-slate: build_first_screen.py base
   and top bar, tools/home.css corners, plates, segmented switch and footer). White and grey, Heebo for Hebrew and Public Sans
   for Latin, served from this site only: the privacy page promises no request to any other host. */
@font-face { font-family: "Heebo"; font-weight: 300 900; font-display: swap; src: url(/fonts/heebo-hebrew.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Public Sans"; font-weight: 300 900; font-display: swap; src: url(/fonts/public-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fff; --plate: #f2f2f4; --tone: #f5f5f6;
  --line: #e9e9ec; --line-2: #dadade;
  --ink: #111214; --ink-2: #4c4f56; --ink-3: #6a6d75; --faint: #a4a7ae;
  --font: "Public Sans", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 40px; --wrap: 1200px; --r-s: 8px; --r-m: 12px; --r-l: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-s); }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 9; padding: 10px 14px; border-radius: var(--r-m); background: var(--ink); color: #fff; font-size: 14.5px; }
.skip:focus { top: 12px; }

/* Top bar: the homepage's, with the brand, the two documents and the other language */
.nav { position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; gap: 24px; padding-inline: max(var(--pad), calc((100% - var(--wrap)) / 2)); background: rgb(255 255 255 / .88); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand svg { width: 16px; height: 19px; }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; }
.lang { color: var(--ink-3); }
.lang:hover { color: var(--ink); }

/* The switch between the two documents: the homepage's segmented control */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-m); background: rgb(17 18 20 / 5.5%); }
.seg a { display: inline-flex; align-items: center; height: 34px; padding-inline: 16px; border-radius: var(--r-s); color: var(--ink-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgb(17 18 20 / 7%), 0 1px 2px rgb(17 18 20 / 8%); }

/* A document: its title on a grey plate, then the contents beside a reading column */
.doc-head { padding-top: clamp(28px, 3.4vw, 48px); }
.doc-head .plate { width: min(1392px, 100% - 32px); margin-inline: auto; border-radius: var(--r-l); background: var(--plate); padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4.4vw, 64px); }
.doc-head h1 { margin-top: clamp(28px, 3vw, 40px); max-width: 18em; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.08; font-weight: 400; letter-spacing: -.026em; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 15px; color: var(--ink-3); }
.meta p strong { font-weight: 500; color: var(--ink-2); }
.doc { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 760px); justify-content: space-between; gap: 64px; padding-block: clamp(48px, 5.6vw, 80px) clamp(88px, 10vw, 140px); }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; font-size: 14px; line-height: 1.45; }
.toc h2 { margin-bottom: 10px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-3); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }

/* Below the two-column width the contents fold into one closed row above the text */
.toc-m { display: none; border-radius: var(--r-m); background: var(--tone); font-size: 15px; }
.toc-m summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-inline: 20px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--ink-3); }
.toc-m[open] summary::after { content: "\2212"; }
.toc-m ol { list-style: none; margin: 0; padding: 0 20px 14px; }
.toc-m a { display: block; padding: 7px 0; color: var(--ink-2); }

/* The text itself: the homepage's measure and greys, sized for long reading */
.text { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.text > p:first-child { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.6; color: var(--ink); }
.text h2 { margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(22px, 2vw, 27px); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.text h3 { margin: 32px 0 8px; font-size: 18.5px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.text p, .text li { margin-top: 14px; text-wrap: pretty; }
.text ul { margin-top: 6px; padding-inline-start: 1.3em; }
.text li::marker { color: var(--faint); }
.text strong { font-weight: 500; color: var(--ink); }
.text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.text a:hover { text-decoration-color: var(--ink); }

/* Footer: the homepage's last row, with who runs the service */
.foot { border-top: 1px solid var(--line); }
.who { padding-block: 28px 4px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.who a { color: var(--ink-2); }
.fend { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding-block: 18px 28px; font-size: 13.5px; color: var(--ink-3); }
.fend span { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fend a:hover, .who a:hover { color: var(--ink); }

/* The bare address, until the homepage goes live: the four documents on one plate */
.hub { padding-block: clamp(28px, 3.4vw, 48px) clamp(72px, 8vw, 120px); }
.hub .plate { width: min(1392px, 100% - 32px); margin-inline: auto; border-radius: var(--r-l); background: var(--plate); padding: clamp(56px, 8vw, 120px) var(--pad); display: grid; justify-items: center; gap: 28px; text-align: center; }
.hub h1 { font-size: clamp(38px, 5.3vw, 78px); line-height: 1.05; font-weight: 400; letter-spacing: -.028em; }
.hub .rows { display: grid; gap: 14px; justify-items: center; }

@media (max-width: 1020px) {
  :root { --pad: 28px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { display: none; }
  .toc-m { display: block; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .nav { gap: 14px; }
  .nav .seg { display: none; }
  .doc-head .plate, .hub .plate { width: calc(100% - 16px); border-radius: 20px; }
  .text { font-size: 16.5px; }
  .text h2 { margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .nav, .toc, .toc-m, .seg, .skip { display: none; }
  .doc { display: block; padding: 0; }
  .doc-head .plate { background: none; padding: 0; }
  .text { color: #000; }
}
