/* Public document styles; never import the authenticated workspace stylesheet.
   Every quoted url() names a file under site/assets; the build replaces it with
   the content-hashed address and fails on a name that is not there. */

/* One headline family across scripts: Source Serif 4 for Latin and Cyrillic,
   Frank Ruhl Libre for Hebrew. Body text stays on the system face the product uses.
   The three rules declare the same weight range on purpose: a browser joins faces
   into one family by unicode-range only when their other descriptors are identical. */
@font-face {
  font-family: "Terysling Serif"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/site-assets/fonts/source-serif-4-latin-wght-normal-382475f38242.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;
}
@font-face {
  font-family: "Terysling Serif"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/site-assets/fonts/source-serif-4-cyrillic-wght-normal-a81082707b85.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Terysling Serif"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/site-assets/fonts/frank-ruhl-libre-hebrew-wght-normal-acdf9ed0a3fc.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* Paper and ink with the product's own amber, so the page and the screens it
   frames are one palette. The scheme follows the system; there is no switch. */
:root {
  color-scheme: light dark;
  --paper: #f7f5f0; --surface: #fff; --ink: #14181c; --muted: #4a5158; --line: #dcd8ce; --dot: #d6d0c3;
  --accent: #9d4d00; --accent-strong: #833f00; --on-accent: #fff; --focus: #7a3c00;
  --shadow: 0 1px 2px rgb(20 24 28 / 6%), 0 22px 56px -24px rgb(20 24 28 / 28%);
  --serif: "Terysling Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --split: minmax(0, 7fr) minmax(0, 5fr);
  --aside: minmax(0, 4fr) minmax(0, 8fr);
  --gap: clamp(2rem, 5vw, 4.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1113; --surface: #171b1e; --ink: #edf0f2; --muted: #b3bcc3; --line: #2a3136; --dot: #262d32;
    --accent: #f0a052; --accent-strong: #f7b877; --on-accent: #2b1a05; --focus: #f7c895;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 24px 60px -24px rgb(0 0 0 / 80%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 5.5rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3 { font-family: var(--serif); text-wrap: balance; }
h1, h2 { font-weight: 500; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.375rem, 5vw, 4.125rem); line-height: 1.05; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); line-height: 1.1; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
/* Hebrew has no capitals to track and taller marks than the Latin face. */
:lang(he) :is(h1, h2) { letter-spacing: 0; line-height: 1.16; }
/* Cyrillic sets wider, so the Russian headline steps down to keep its three lines. */
:lang(ru) h1 { font-size: clamp(2.25rem, 4.5vw, 3.625rem); }

.site-wrap { max-width: calc(74rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.site-lead { max-width: 40rem; color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }

.site-skip { position: absolute; inset-block-start: 0.75rem; inset-inline-start: 1rem; z-index: 20; padding: 0.5rem 0.9rem; border-radius: 0.5rem; background: var(--ink); color: var(--paper); transform: translateY(-300%); }
.site-skip:focus { transform: none; }

/* Header: sign-in stays reachable at every scroll position. */
.site-header { position: sticky; inset-block-start: 0; z-index: 10; border-block-end: 1px solid var(--line); background: var(--paper); }
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header .site-wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.site-brand svg { inline-size: 1.5rem; color: var(--accent); }
.site-header nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-header .site-header__sections { display: none; margin-inline-start: 1rem; }
.site-header .site-header__languages { gap: 1.1rem; margin-inline-start: auto; }
.site-header__languages a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-language__code { display: none; }
.site-sign-in { padding: 0.4rem 1rem; border: 1px solid var(--ink); border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-sign-in:hover { background: var(--ink); color: var(--paper); }

.site-eyebrow { display: flex; align-items: center; gap: 0.6rem; margin-block-end: 1.25rem; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.site-eyebrow svg { flex: none; inline-size: 1.125rem; }
:lang(he) .site-eyebrow { font-size: 0.9375rem; letter-spacing: 0.02em; }

.site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.site-button { display: inline-block; padding: 0.8rem 1.4rem; border-radius: 0.5rem; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.site-button:hover { background: var(--accent-strong); }
.site-more { font-weight: 600; text-decoration-color: var(--accent); }
.site-more::after { content: " \2193"; }

/* Hero: the headline, then the real schedule at full width. */
.site-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); }
.site-hero .site-wrap { position: relative; }
/* The emblem's lattice, repeated as a field that fades out of one corner: behind
   the headline at the top of the page and behind the invitation at its end. */
.site-hero::before, .site-access::before {
  content: ""; position: absolute; inset-inline-end: 0; inline-size: min(54rem, 72vw); block-size: min(30rem, 100%); pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 2.25px, transparent 2.75px), radial-gradient(circle, var(--dot) 2.25px, transparent 2.75px);
  background-position: 0 0, 0.75rem 0.75rem; background-size: 1.5rem 1.5rem;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at var(--corner), #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 100% 100% at var(--corner), #000 12%, transparent 72%);
}
.site-hero::before { --corner: 100% 0; inset-block-start: 0; }
.site-access::before { --corner: 100% 100%; inset-block-end: 0; }
[dir="rtl"] .site-hero::before { --corner: 0 0; }
[dir="rtl"] .site-access::before { --corner: 0 100%; }
.site-hero__head { display: grid; grid-template-columns: var(--split); gap: 2rem var(--gap); align-items: end; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.site-hero__pitch { display: grid; gap: 1.75rem; }

.site-screen picture { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--surface); box-shadow: var(--shadow); }
.site-screen img { inline-size: 100%; block-size: auto; }
.site-screen figcaption { margin-block-start: 0.9rem; color: var(--muted); font-size: 0.875rem; }

.site-section { padding-block: clamp(4rem, 9vw, 7.5rem); border-block-start: 1px solid var(--line); }
.site-section--tinted { background: var(--surface); }
.site-section__head { max-width: 46rem; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.site-section__head .site-lead { margin-block-start: 1.25rem; }
.site-section__head--split { display: grid; grid-template-columns: var(--split); gap: 1.5rem var(--gap); align-items: end; max-width: none; }
.site-section__head--split .site-lead { margin: 0; }

/* The journey: five steps on one line, the emblem filling in row by row. */
.site-journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem 2rem; padding-block-start: 2rem; border-block-start: 1px solid var(--ink); }
/* Rows are shared across the steps, so a title that wraps keeps every text on one line. */
.site-journey li { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 0.75rem; align-content: start; }
.site-journey__mark { inline-size: 2.5rem; margin-block-end: 0.5rem; color: var(--accent); }
.site-journey p, .site-items p { color: var(--muted); font-size: 1rem; }

/* A chapter sets its text beside the screen it describes. */
.site-chapter { display: grid; grid-template-columns: var(--aside); gap: 2.5rem var(--gap); align-items: center; }
.site-chapter .site-section__head, .site-ledger .site-section__head { margin: 0; }
.site-chapter h2, .site-ledger h2 { font-size: clamp(1.75rem, 2.7vw, 2.375rem); }
.site-chapter .site-lead { font-size: 1.0625rem; }
.site-points { display: grid; gap: 0.7rem; margin-block-start: 1.75rem; font-size: 1rem; }
.site-points li { position: relative; padding-inline-start: 1.4rem; }
.site-points li::before { content: ""; position: absolute; inset-block-start: 0.58em; inset-inline-start: 0; inline-size: 0.45rem; block-size: 0.45rem; border-radius: 50%; background: var(--accent); }

.site-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem clamp(2rem, 4vw, 3.5rem); }
.site-items li { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 0.85rem; align-content: start; padding-block-start: 1.5rem; border-block-start: 1px solid var(--ink); }

/* A ledger lists its items as ruled rows beside the heading. */
.site-ledger { display: grid; grid-template-columns: var(--aside); gap: 2.5rem var(--gap); }
.site-ledger .site-items { grid-template-columns: minmax(0, 1fr); gap: 0; }
.site-ledger .site-items li { grid-row: auto; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: none; gap: 0.75rem 2rem; padding-block: 1.5rem; border-block-start-color: var(--line); }
.site-ledger .site-items li:first-child { border-block-start-color: var(--ink); }

/* The closing band is inked in both schemes, so it reads as the page's last word. */
.site-access {
  --paper: #14181c; --ink: #f4f1ea; --muted: #b9c0c6; --line: #2f363c; --dot: #2a3137;
  --accent: #f0a052; --accent-strong: #f7b877; --on-accent: #2b1a05; --focus: #f7c895;
  position: relative; overflow: clip; padding-block: clamp(4rem, 9vw, 7rem); background: var(--paper); color: var(--ink);
}
@media (prefers-color-scheme: dark) { .site-access { --paper: #171b1e; border-block-start: 1px solid var(--line); } }
.site-access .site-wrap { position: relative; }
.site-access h2 { max-width: 16em; }
.site-access .site-lead { margin-block: 1.25rem 2rem; }
.site-access__invited { margin-block-start: 2.25rem; color: var(--muted); font-size: 0.9375rem; }
.site-access__invited a { color: var(--ink); font-weight: 600; }

.site-footer { padding-block: 3.5rem; color: var(--muted); font-size: 0.9375rem; }
.site-footer .site-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 2.5rem; }
.site-footer__brand { display: grid; gap: 0.6rem; align-content: start; justify-items: start; }
.site-footer__brand .site-brand { margin-block-end: 0.4rem; color: var(--ink); }
.site-footer h2 { margin-block-end: 1rem; color: var(--ink); font: 600 0.8125rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
:lang(he) .site-footer h2 { font-size: 0.9375rem; letter-spacing: 0.02em; }
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer strong { color: var(--ink); font-weight: 600; }
.site-footer__note { margin-block-start: 0.75rem; font-size: 0.8125rem; }

@media (min-width: 76rem) {
  .site-header .site-header__sections { display: flex; }
}
@media (max-width: 64rem) {
  .site-journey { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 46rem; padding: 0; border: 0; }
  .site-journey li { grid-row: auto; grid-template-columns: 2.5rem minmax(0, 1fr); grid-template-rows: none; gap: 0.5rem 1.25rem; padding-block: 1.5rem; border-block-start: 1px solid var(--line); }
  .site-journey li:first-child { border-block-start-color: var(--ink); }
  .site-journey__mark { grid-row: span 2; margin: 0; }
  .site-hero__head, .site-section__head--split, .site-chapter, .site-ledger { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .site-items, .site-footer .site-wrap { grid-template-columns: minmax(0, 1fr); }
  .site-items { gap: 0; }
  .site-items li { grid-row: auto; grid-template-rows: none; padding-block: 1.5rem; }
  .site-ledger .site-items li { grid-template-columns: minmax(0, 1fr); }
  .site-screen picture { border-radius: 0.5rem; }
}
@media (max-width: 40rem) {
  .site-header .site-wrap { gap: 0.9rem; }
  .site-header .site-header__languages { gap: 0.8rem; }
  .site-language__name { display: none; }
  .site-language__code { display: inline; }
  /* A whole desktop screen is unreadable at phone width, so the frame shows its
     leading corner at one legible scale instead of a thumbnail. */
  .site-screen img { inline-size: 52.5rem; }
  .site-screen--chart img { inline-size: 42.5rem; }
}
@media (max-width: 23.5rem) {
  /* The narrowest phones keep the emblem; the name stays for assistive technology. */
  .site-header .site-brand span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
