/* The כסף פשוט guide site: one stylesheet for the front page and the guide pages (build.py copies it as it is).
   The page's look, from its films (the data home's pages/nadlan/look/desks/README.md, "On white", and
   look-test/SPEC.md): a white ground; ink #173B2E for every word and line; the pillar-box red #D63A2A for the desk's
   tab and one focus; gold #E0A93B for rules only; the news ticket's cream #FFF7E8 card with an ink border and a hard
   print shadow; Heebo. Each guide page carries its desk's tones (--hue, --light, --mid, --deep) on <body>, and its
   desk's band: the desk's illustration at the kit's 0.4, as in the films on white. Mobile first: the page is opened
   from a private message, inside Instagram's browser, on a phone. */

/* Heebo (SIL Open Font License, fonts/OFL.txt), served from the site in two small files: Hebrew and Latin. */
@font-face {
  font-family: "Heebo";
  src: url("fonts/heebo-hebrew.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("fonts/heebo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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 {
  --ground: #ffffff;
  --ink: #173b2e;
  --ink-soft: rgba(23, 59, 46, 0.78);
  --ink-hair: rgba(23, 59, 46, 0.16);
  --red: #d63a2a;
  --gold: #e0a93b;
  --cream: #fff7e8;
  /* a desk's own tones; the real-estate desk's stand in on a page with no desk (the front page, the plain pages) */
  --hue: #cfe5dc;
  --light: #deeee7;
  --mid: #acd5c4;
  --deep: #73b89b;
  --measure: 34rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}

.page {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 0.75rem 1.25rem 3rem;
}

a { color: var(--ink); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 0.5rem; }

/* ---- a preview's own label; a published page does not carry it ---- */
.sample-note {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px dashed var(--ink-hair);
  border-radius: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  text-align: center;
}

/* ---- the page's name, small, at the top: it leads home ---- */
.home {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.0625rem;
}
.home img { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid var(--ink); }

/* ---- the desk's band: its illustration, quiet, with its animal in front ---- */
.band {
  position: relative;
  height: 12.5rem;
  margin: 0.5rem -1.25rem 0;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  border-bottom: 2px solid var(--ink);
}
.band .animal {
  position: absolute; bottom: 0; left: 50%;
  height: 10.5rem; width: auto;
  transform: translateX(-50%);
}

/* ---- the news ticket: the desk's tab, the guide's name, one line, the gold rule, the date line ---- */
.ticket { position: relative; margin: 2.75rem 0 0; }
.tab {
  position: absolute; top: -2rem; right: 0;
  margin: 0; padding: 0 0.875rem;
  height: 2rem; line-height: 2rem;
  background: var(--red); color: var(--cream);
  border-radius: 0.5rem 0.5rem 0 0;
  font-weight: 800; font-size: 0.9375rem;
}
.card {
  position: relative;
  padding: 1.125rem 1.125rem 1rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0.75rem 0 0.75rem 0.75rem;
  box-shadow: 4px 4px 0 var(--ink);
}
.card::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--ink-hair);
  border-radius: 0.5rem 0 0.5rem 0.5rem;
  pointer-events: none;
}
h1 { position: relative; margin: 0; font-size: 2.125rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: break-word; }
.tagline { position: relative; margin: 0.5rem 0 0; font-size: 1.125rem; line-height: 1.45; color: var(--ink-soft); }
.rule { position: relative; height: 4px; margin: 0.875rem 0 0; background: var(--gold); border-radius: 2px; }
.dateline { position: relative; display: flex; align-items: center; gap: 0.5rem; margin: 0.625rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.proposal {
  margin-inline-start: auto; padding: 0 0.5rem 0.0625rem;
  border: 2px solid var(--red); border-radius: 0.375rem;
  color: var(--red); font-weight: 700; font-size: 0.8125rem;
}

/* ---- the one way out: follow the page ---- */
.action {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.5rem;
  margin: 2.5rem 0 0;
  padding: 0.75rem 1.25rem;
  border-radius: 1.75rem;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800; font-size: 1.125rem;
  text-align: center; text-decoration: none;
}
.action:active { transform: translateY(1px); }
/* the same link early on a page: outlined, so the guide below stays the page's main thing */
.action.early { min-height: 2.875rem; margin: 1.5rem auto 0; max-width: 17rem; font-size: 1rem; background: transparent; color: var(--ink); border: 2px solid var(--ink); }

/* ---- the guide's sections ---- */
h2 { margin: 2.75rem 0 0.5rem; font-size: 1.4375rem; font-weight: 800; line-height: 1.3; }
h2::before {
  content: ""; display: block; width: 2.5rem; height: 4px; margin-bottom: 0.625rem;
  background: var(--deep); border-radius: 2px;
}
p { margin: 0.625rem 0 0; }
.muted { color: var(--ink-soft); font-size: 0.9375rem; }

/* lines of a list: a hair between them, the desk's dot at the start */
.list { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.list li { position: relative; padding: 0.625rem 1.25rem 0.625rem 0; }
.list li + li { border-top: 1px solid var(--ink-hair); }
.list li::before {
  content: ""; position: absolute; right: 0.125rem; top: 1.25rem;
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--deep);
}
.list strong { font-weight: 800; }

/* steps: the Hebrew letters, in order */
.steps { margin: 0.75rem 0 0; padding: 0 1.75rem 0 0; list-style-type: hebrew; }
.steps li { padding: 0.375rem 0; }
.steps li::marker { font-weight: 800; color: var(--ink); }

/* a table of worked numbers: it scrolls sideways inside itself if it must, never the page */
.table { margin: 0.875rem 0 0; overflow-x: auto; border: 2px solid var(--ink); border-radius: 0.75rem; }
.table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 0.5rem 0.625rem; text-align: right; white-space: nowrap; }
.table th { background: var(--hue); font-weight: 800; font-size: 0.8125rem; line-height: 1.35; white-space: normal; vertical-align: bottom; }
.table td { border-top: 1px solid var(--ink-hair); }
.table td:first-child { font-weight: 700; }

/* the official service: one plain way to the government's own page */
.official {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin: 1rem 0 0; padding: 0.875rem 1rem;
  border: 2px solid var(--ink); border-radius: 0.75rem;
  background: var(--light);
  color: var(--ink); text-decoration: none; font-weight: 800;
}
.official span { font-weight: 600; font-size: 0.875rem; color: var(--ink-soft); }
.official::after { content: "←"; font-weight: 800; }

/* a ready text for a chat: a box to copy, one button */
.prompt { margin: 1.25rem 0 0; padding: 1rem; border: 2px solid var(--ink); border-radius: 0.75rem; background: var(--light); }
.prompt-label { margin: 0 0 0.5rem; font-weight: 800; }
.prompt pre {
  margin: 0; padding: 0.75rem;
  background: #fff; border: 1px solid var(--ink-hair); border-radius: 0.5rem;
  font: inherit; font-size: 0.9375rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.copy {
  display: block; width: 100%; margin: 0.75rem 0 0; padding: 0.75rem 1rem;
  border: 2px solid var(--ink); border-radius: 0.75rem; background: var(--ink); color: #fff;
  font: inherit; font-weight: 800; cursor: pointer;
}

/* the caution: one quiet line */
.care { margin: 2rem 0 0; color: var(--ink-soft); font-size: 0.9375rem; }
.care strong { color: var(--red); font-weight: 800; }

/* ---- the end of a guide: where it came from, and what it is not ---- */
.sources { margin: 2.75rem 0 0; }
.sources h2 { margin-top: 0; font-size: 1.125rem; }
.sources ul { margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.sources li { padding: 0.375rem 0; }
.sources li + li { border-top: 1px solid var(--ink-hair); }
.disclaimer {
  margin: 1.75rem 0 0; padding: 0.75rem 1rem;
  border-top: 4px solid var(--gold);
  font-weight: 800; font-size: 1rem; text-align: center;
}

footer { margin-top: 2.25rem; color: var(--ink-soft); font-size: 0.875rem; text-align: center; }
footer a { color: var(--ink-soft); margin-inline: 0.5rem; }

/* ---- the front page ---- */
.front { text-align: center; }
.front .face { display: block; margin: 2rem auto 0; width: 7rem; height: 7rem; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.brand { margin: 1.5rem 0 0; font-weight: 900; font-size: 2.75rem; line-height: 1.05; letter-spacing: -0.01em; }
.lead { margin: 0.75rem 0 0; font-size: 1.25rem; line-height: 1.45; }
.front .tagline { color: var(--ink-soft); }
.desks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.desks li { padding: 0.25rem 0.75rem; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 0.9375rem; }
.front h2::before { margin-inline: auto; }

/* ---- the three plain pages ---- */
.plain h1 { font-size: 1.75rem; margin-top: 2rem; }
.plain p { color: var(--ink-soft); margin-top: 1rem; }

@media (min-width: 40rem) {
  .band { margin-inline: 0; border-radius: 0.75rem 0.75rem 0 0; }
  h1 { font-size: 2.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .action:active { transform: none; }
}
