/* The project page. One stylesheet for the English and the Hebrew page:
   logical properties only, so right-to-left needs no overrides.
   The look is the app's own: a graphite bar, white surfaces on a cool grey
   page, teal for actions, the amber mark. The font is Assistant (Latin and
   Hebrew, SIL Open Font License, fonts/OFL.txt), served from this site. */
@font-face {
  font-family: "Assistant"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/assistant-hebrew-wght-normal.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: "Assistant"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/assistant-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Assistant"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/assistant-latin-wght-normal.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: #eef1f3;
  --surface: #ffffff;
  --text: #1b1f23;
  --muted: #59616a;
  --line: #d9dee3;
  --brand: #0b6a88;
  --brand-strong: #08546c;
  --brand-soft: #e4f1f5;
  --on-brand: #ffffff;
  --bar: #1d2227;
  --bar-2: #2f363d;
  --bar-text: #eef0f2;
  --bar-muted: #b4bcc4;
  --attention: #f2b705;
  --code-bg: #1d2227;
  --code-text: #eef0f2;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191d;
    --surface: #1d2227;
    --text: #eef0f2;
    --muted: #a7afb8;
    --line: #2f363d;
    --brand: #5fb6d0;
    --brand-strong: #8ccde0;
    --brand-soft: #16303a;
    --on-brand: #0e1114;
    --bar: #0e1114;
    --bar-2: #1d2227;
    --code-bg: #0e1114;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Hebrew", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* --- top bar --- */
.top { position: sticky; top: 0; z-index: 5; background: var(--bar); color: var(--bar-text); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; color: var(--bar-text); text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; margin-inline-start: auto; font-size: 16px; }
.top nav a { color: var(--bar-muted); text-decoration: none; }
.top nav a:hover { color: #fff; }
.top nav a.lang { color: var(--bar-text); border: 1px solid var(--bar-2); border-radius: 6px; padding: 2px 10px; }

/* --- hero --- */
.hero { padding-block: 60px 28px; text-align: center; }
/* The name, big, at the top of the page; under it what REINS stands for. */
.wordmark { display: flex; align-items: center; justify-content: center; gap: .22em; margin: 0 0 22px;
            font-size: clamp(48px, 8vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.wordmark img { width: .9em; height: .9em; }
/* What REINS stands for: a dark band above the headline, the initials in amber. */
.acronym { display: inline-block; margin: 0 0 22px; padding: 8px 18px; border-radius: 6px; background: var(--bar);
           color: var(--bar-text); font-size: clamp(17px, 2.1vw, 22px); font-weight: 600; line-height: 1.45; }
.acronym b { color: var(--attention); font-weight: 800; }
.acronym .part { white-space: nowrap; }
/* The college's logo, which is also the link for writing to the author. */
.affil { display: flex; justify-content: center; margin: -4px 0 28px; }
.affil a { display: block; border-radius: 6px; }
.affil img { width: auto; height: 48px; padding: 3px 6px; border-radius: 6px; background: #fff; transition: box-shadow .15s; }
.affil a:hover img, .affil a:focus-visible img { box-shadow: 0 0 0 2px var(--brand); }
.affil a:focus-visible { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1 { margin: 0 auto; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.1; font-weight: 700; text-wrap: balance; }
h1 span { display: block; }
.lead { margin: 22px auto 0; max-width: 62ch; color: var(--muted); font-size: clamp(18px, 2vw, 21px); text-wrap: pretty; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; font-weight: 700; text-decoration: none; border: 1px solid var(--line);
       background: var(--surface); color: var(--text); }
.btn:hover { border-color: var(--brand); color: var(--text); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.note { margin-block-start: 14px; color: var(--muted); font-size: 15px; }

/* --- screenshots --- */
figure { margin: 36px 0 0; }
figure img { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
/* The two screens in one picture carry their own frames and shadows. */
figure.pip img { border: 0; border-radius: 0; background: none; }
figcaption { margin-block-start: 12px; color: var(--muted); font-size: 15px; text-align: center; }

/* --- sections --- */
section { padding-block: 60px; }
section + section { border-block-start: 1px solid var(--line); }
h2 { margin: 0 0 10px; font-size: clamp(27px, 3.4vw, 36px); line-height: 1.2; font-weight: 700; }
.sub { margin: 0 0 30px; max-width: 66ch; color: var(--muted); }
h2 + .grid { margin-block-start: 26px; }
.idea p { margin: 0 0 16px; max-width: 64ch; font-size: 19px; line-height: 1.65; }
.idea p:last-child { margin-block-end: 0; }
.idea .goal { border-inline-start: 3px solid var(--brand); padding-inline-start: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-block-start: 58px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; inset-block-start: 20px; inset-inline-start: 22px;
                       width: 28px; height: 28px; border-radius: 6px; background: var(--attention); color: #1b1f23;
                       font-weight: 700; font-size: 16px; display: grid; place-items: center; }

/* --- install --- */
.cmd { margin-block: 14px 22px; }
.cmd h3 { margin: 0 0 8px; font-size: 17px; }
.cmd .line { display: flex; align-items: stretch; background: var(--code-bg); border-radius: 6px; overflow: hidden; direction: ltr; }
.cmd code { flex: 1; padding: 14px 16px; color: var(--code-text); font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            overflow-x: auto; white-space: nowrap; text-align: left; }
.cmd button { border: 0; border-inline-start: 1px solid #3a424a; background: transparent; color: #d5dade; padding-inline: 16px;
              font: inherit; font-size: 15px; cursor: pointer; }
.cmd button:hover { background: #2f363d; color: #fff; }
.plain { max-width: 70ch; }
.plain li { margin-block-end: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }

footer { border-block-start: 1px solid var(--line); padding-block: 30px 44px; color: var(--muted); font-size: 15px; }
footer p { margin: 0 0 6px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-block-start: 44px; }
  section { padding-block: 44px; }
  .top .wrap { flex-wrap: wrap; padding-block: 10px; gap: 8px 20px; }
  .top nav { margin-inline-start: 0; gap: 4px 14px; font-size: 15px; }
}
