:root { color-scheme: only light; }
@font-face { font-family: "AG Serif"; src: url("/fonts/InstrumentSerif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "AG Sans"; src: url("/fonts/Inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "AG Hebrew"; src: url("/fonts/NotoSansHebrew.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg: #f7f5f0; --card: #fff; --ink: #1c1a16; --ink2: #5f594d; --ink3: #6e6658; --line: rgba(28, 26, 22, .1); --tint: #1f5fd6; --tint2: #e8effc; --gold: #c9861f; --gold2: #fbf1de; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 "AG Sans", -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
a { color: var(--tint); }
.he { font-family: "AG Hebrew", sans-serif; direction: rtl; unicode-bidi: isolate; }
nav { border-bottom: 1px solid var(--line); background: var(--bg); }
nav .in { max-width: 860px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 16px; }
nav .brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 400 24px/1 "AG Serif", Georgia, serif; }
nav .brand img { width: 30px; height: 30px; border-radius: 8px; }
nav .go { margin-left: auto; padding: 8px 16px; border-radius: 18px; background: var(--tint); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.crumbs { font-size: 14px; color: var(--ink3); }
.crumbs a { color: var(--ink2); text-decoration: none; }
h1 { font: 400 clamp(40px, 6vw, 62px)/1.04 "AG Serif", Georgia, serif; letter-spacing: -.02em; margin: 14px 0 12px; }
h2 { font: 400 clamp(30px, 4vw, 40px)/1.1 "AG Serif", Georgia, serif; margin: 48px 0 10px; }
h3 { font-size: 20px; margin: 26px 0 6px; }
p, li { color: var(--ink2); }
.lead { font-size: 19px; }
.toc { padding: 16px 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.card { padding: 14px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.card .big { font: 500 48px/1.1 "AG Hebrew", sans-serif; color: var(--tint); }
.card b { display: block; color: var(--ink); }
.card small { color: var(--ink3); display: block; }
.card .ex { margin-top: 8px; font-size: 14px; color: var(--ink2); }
.card .ex .he { font-size: 20px; color: var(--ink); }
.set { margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
table { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
th { color: var(--ink3); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
td .he { font-size: 30px; color: var(--tint); }
tr:last-child td { border-bottom: none; }
.note { padding: 16px 20px; border-radius: 18px; background: var(--gold2); color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; padding: 16px 18px 16px 64px; position: relative; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 17px; background: var(--tint2); color: var(--tint); display: grid; place-items: center; font-weight: 700; }
.steps li b { color: var(--ink); }
.app { margin: 48px 0 0; padding: 28px; border-radius: 28px; background: linear-gradient(135deg, #1f5fd6, #4a86f2); color: #fff; }
.app h2 { color: #fff; margin-top: 0; }
.app p { color: rgba(255, 255, 255, .88); }
.app a { display: inline-block; margin-top: 6px; padding: 12px 20px; border-radius: 22px; background: #fff; color: #1f5fd6; font-weight: 600; text-decoration: none; }
.more { margin-top: 32px; display: grid; gap: 10px; }
.more a { padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
footer { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink2); text-decoration: none; }
@media (max-width: 520px) { td .he { font-size: 26px; } th, td { padding: 10px; font-size: 15px; } }

/* main pages in the nav (helps people, and Google's sitelinks) */
nav .navLinks { display: flex; gap: 18px; margin-left: 8px; }
nav .navLinks a { color: var(--ink2, #555); text-decoration: none; font-size: 14px; font-weight: 500; }
@media (max-width: 640px) { nav .in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; } nav .navLinks { order: 3; width: 100%; margin: 4px 0 0; overflow-x: auto; white-space: nowrap; } }

/* links inside text are underlined, not only coloured (easier to see) */
main p a, main li a, main td a, main .crumbs a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
/* gold labels as text: darker gold so they are easy to read */
main .set { color: #8a5a0c; }
