/* NOW website – the app's "contact sheet" world (src/lib/theme.ts): warm film-black ground, paper text, 1px warm hairlines,
   one wax-pencil accent for the active mark. Fonts are served from this site (no outside requests). */
@font-face { font-family: "Noto Sans Hebrew"; src: url(/fonts/NotoSansHebrew_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Hebrew"; src: url(/fonts/NotoSansHebrew_500Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans Hebrew"; src: url(/fonts/NotoSansHebrew_600SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans Hebrew"; src: url(/fonts/NotoSansHebrew_700Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Secular One"; src: url(/fonts/SecularOne_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(/fonts/MartianMono_400Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #121110; --panel: #1b1917; --panel2: #24211e; --rebate: #0b0a09;
  --line: #2c2925; --line2: #3a3631;
  --tx: #efe6d6; --muted: #a39c92; --faint: #8a8379;
  --accent: #e2553a; --accent-tx: #ee6a4e; --tint: #2a1915; --on-paper: #151311;
  --body: "Noto Sans Hebrew", system-ui, sans-serif;
  --head: "Secular One", "Noto Sans Hebrew", sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --gut: 20px; --measure: 68ch;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 17px/1.7 var(--body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: var(--tint); color: var(--tx); }
a { color: var(--accent-tx); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-tx) 45%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent-tx); }
:focus-visible { outline: 2px solid var(--accent-tx); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--line2) var(--bg); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--tx); color: var(--on-paper); padding: 8px 14px; border-radius: 10px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

/* the film rebate along the top: a row of sprocket holes, the one ornament */
.rebate { height: 14px; background: var(--rebate); position: relative; }
.rebate::after { content: ""; position: absolute; inset: 4px 0; background: repeating-linear-gradient(90deg, #27241f 0 9px, transparent 9px 22px); border-radius: 2px; }

.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); height: 60px; display: flex; align-items: center; gap: 20px; }
.logo { direction: ltr; unicode-bidi: isolate; font: 400 21px/1 var(--mono); letter-spacing: .02em; color: var(--tx); text-decoration: none; display: inline-flex; align-items: baseline; flex: none; }
.logo i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-inline-start: 3px; transform: translateY(-1px); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline-start: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; white-space: nowrap; border-radius: 10px; transition: color .18s; }
.nav a:hover { color: var(--tx); }
.nav a[aria-current="page"] { color: var(--tx); }
/* the active page is marked like a keeper on a contact sheet: a wax-pencil stroke drawn under it */
.nav a svg { position: absolute; inset-inline: 6px; bottom: 1px; width: calc(100% - 12px); height: 8px; overflow: visible; }
.nav a svg path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw .42s cubic-bezier(.16,1,.3,1) .12s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

main { max-width: 1120px; margin: 0 auto; padding: 44px var(--gut) 72px; }
.doc { display: grid; gap: 40px; }
@media (min-width: 980px) { .doc { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; } }
h1 { font: 400 clamp(32px, 6vw, 44px)/1.15 var(--head); margin: 0 0 10px; letter-spacing: -.005em; text-wrap: balance; }
.meta { color: var(--muted); font-size: 15px; margin: 0; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 56ch; margin: 14px 0 0; }

/* contents: a side column on wide screens, a fold on phones */
.toc { font-size: 15px; }
.toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-weight: 600; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { transition: transform .2s; }
.toc details[open] summary svg { transform: rotate(180deg); }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: t; }
.toc li a { display: flex; gap: 10px; padding: 6px 4px; color: var(--muted); text-decoration: none; line-height: 1.45; border-radius: 8px; }
.toc li a:hover { color: var(--tx); }
.toc li a span { font: 400 12px/1.9 var(--mono); color: var(--faint); min-width: 22px; direction: ltr; }
@media (min-width: 980px) {
  .toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-inline-end: 6px; scrollbar-width: thin; }
  .toc summary { pointer-events: none; background: none; border: 0; padding: 0 4px 6px; color: var(--faint); font-weight: 500; font-size: 13px; }
  .toc summary svg { display: none; }
}

.body { max-width: var(--measure); }
.body section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
.body section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
h2 { font: 400 25px/1.3 var(--head); margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline; text-wrap: balance; }
h2 .n { font: 400 13px/1 var(--mono); color: var(--faint); direction: ltr; flex: none; }
p { margin: 0 0 14px; }
ul { list-style: none; margin: 0 0 16px; padding: 0; }
ul li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; }
/* the app's one mark, a short line, as the bullet */
ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .82em; width: 14px; height: 2px; border-radius: 1px; background: var(--line2); }
.top { display: inline-block; margin-top: 40px; color: var(--muted); font-size: 15px; text-decoration: none; }
.top:hover { color: var(--tx); }

/* home: the pages as rows on hairlines */
.rows { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); max-width: 760px; }
.rows li { padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.rows li::before { display: none; }
.rows a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 20px 4px; color: var(--tx); text-decoration: none; }
.rows a b { font: 400 22px/1.3 var(--head); }
.rows a small { grid-column: 1; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rows a svg { grid-row: 1 / span 2; grid-column: 2; color: var(--faint); transition: transform .25s cubic-bezier(.16,1,.3,1), color .2s; }
.rows a:hover svg { transform: translateX(-4px); color: var(--accent-tx); }

/* support / deletion */
.lead-panel { margin: 28px 0 8px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); max-width: 680px; }
.lead-panel p { color: var(--muted); }
.mail { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.row-b .mail, .foot .mail { font: 400 14px/1.4 var(--mono); color: var(--tx); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #1a0f0b; font-weight: 600; text-decoration: none; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.row-b { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 16px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 38px; margin-bottom: 12px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line2); font: 400 11px/22px var(--mono); text-align: center; color: var(--muted); }
.path { font-weight: 600; color: var(--tx); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 4px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--faint); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent-tx); }
.faq .a { padding: 0 4px 14px; color: var(--muted); }
.faq .a p:last-child { margin-bottom: 0; }

footer { border-top: 1px solid var(--line); }
.foot { max-width: 1120px; margin: 0 auto; padding: 28px var(--gut) 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--tx); }
.foot .c { margin-inline-start: auto; color: var(--faint); }
@media (max-width: 560px) { :root { --gut: 16px; } body { font-size: 16px; } main { padding-top: 32px; } .bar-in { gap: 10px; } .nav a { padding: 8px 7px; font-size: 14px; } .foot .c { margin-inline-start: 0; width: 100%; } }
@media print { .bar, .rebate, footer, .toc, .top { display: none; } body { background: #fff; color: #000; } }
