/* The public home page (docs/design/public-site.md), written by scripts/make-public-site.mjs with index.html. */
@font-face{font-family:"Newsreader";src:url(/fonts/newsreader-latin-opsz-normal.woff2) format("woff2");font-weight:200 800;font-style:normal;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}
@font-face{font-family:"Inter";src:url(/fonts/inter-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-style:normal;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}
@font-face{font-family:"Frank Ruhl Libre";src:url(/fonts/frank-ruhl-libre-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;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:"Noto Sans Hebrew";src:url(/fonts/noto-sans-hebrew-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;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:"Noto Sans Hebrew";src:url(/fonts/noto-sans-hebrew-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
/* Porcelain, as the app: near-white and neutral, moss green for actions; --tree is the paper the banyan is cut from,
   standing against the sky in both modes. */
:root{color-scheme:light dark;
  --canvas:#F7F7F4;--surface:#FFFFFF;--ink:#1A1C1A;--ink-2:#2E312E;--muted:#676C67;--line:#E5E6E2;
  --forest:#22573B;--on-accent:#fff;--sky-a:#FDFDFB;--sky-b:#EEF1EC;
  --tree:#A3B6A8;--shade:24 30 26;--sk:1;
  --serif:"Newsreader",Georgia,serif;--sans:"Inter",system-ui,sans-serif;
  --paper-shadow:drop-shadow(0 -1px 1px rgb(var(--shade)/calc(.07*var(--sk)))) drop-shadow(0 -6px 10px rgb(var(--shade)/calc(.06*var(--sk))));
  --photo:.14;--tree-w:min(1200px,108vw,125vh);--ground-h:calc(var(--tree-w) * 80 / 1200)}
@media (prefers-color-scheme:dark){:root{
  --canvas:#0E100F;--surface:#141716;--ink:#ECEEEA;--ink-2:#D5D9D4;--muted:#98A099;--line:#272C29;
  --forest:#74C69A;--on-accent:#07140D;--sky-a:#131A16;--sky-b:#0B0E0C;
  --tree:#3C5847;--shade:0 0 0;--sk:3.2;--photo:.1}}
/* The Yiddish page: the script's own faces beside the Latin ones, and no tightening of its letters. */
html[lang=yi]{--serif:"Frank Ruhl Libre","Newsreader",Georgia,serif;--sans:"Noto Sans Hebrew","Inter",system-ui,sans-serif}
html[lang=yi] body,html[lang=yi] h1,html[lang=yi] h2,html[lang=yi] .line,html[lang=yi] .brand{letter-spacing:0}
html[lang=yi] [lang=en]{--serif:"Newsreader",Georgia,serif;--sans:"Inter",system-ui,sans-serif;letter-spacing:-.005em}
html[lang=yi] [lang=en] h2{letter-spacing:-.018em}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;letter-spacing:-.005em}
h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.018em;margin:0;line-height:1.08;text-wrap:balance}
p{margin:0;text-wrap:pretty}
a{color:var(--forest);text-underline-offset:3px;overflow-wrap:anywhere}
:focus-visible{outline:3px solid color-mix(in srgb,var(--forest) 45%,transparent);outline-offset:3px;border-radius:4px}
.top{position:absolute;inset:0 0 auto 0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:22px 32px;pointer-events:none}
.top>*{pointer-events:auto}
.brand{display:inline-flex;align-items:center;gap:10px;font-family:"Newsreader",Georgia,serif;font-size:24px;color:var(--ink);text-decoration:none;letter-spacing:-.01em}
.top-acts{display:flex;align-items:center;gap:10px}
/* בס״ד at the top centre, small, in the script's serif, on both pages. */
.bsd{position:absolute;top:5px;left:50%;translate:-50% 0;font-family:"Frank Ruhl Libre",Georgia,serif;font-size:14px;line-height:1;color:var(--ink-2);letter-spacing:0}
/* The language switch: two pills in one ring, the page's own language filled. */
.langs{display:inline-flex;padding:3px;border-radius:999px;background:color-mix(in srgb,var(--surface) 72%,transparent);box-shadow:0 0 0 1px var(--line);backdrop-filter:blur(8px)}
.langs a{font-size:14px;line-height:1;padding:8px 12px;border-radius:999px;color:var(--muted);text-decoration:none}
.langs a[lang=yi]{font-family:"Noto Sans Hebrew","Inter",system-ui,sans-serif}
.langs a[lang=en]{font-family:"Inter",system-ui,sans-serif}
.langs a[aria-current]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgb(var(--shade)/calc(.12*var(--sk)))}
.langs a:hover:not([aria-current]){color:var(--ink)}
.brand svg{width:26px;height:26px;display:block}
.signin{font-size:15px;color:var(--ink);text-decoration:none;padding:8px 16px;border-radius:999px;background:color-mix(in srgb,var(--surface) 72%,transparent);box-shadow:0 0 0 1px var(--line);backdrop-filter:blur(8px)}
.signin:hover{background:var(--surface)}
.btn{display:inline-flex;align-items:center;height:44px;padding:0 20px;border-radius:999px;background:var(--forest);color:var(--on-accent);text-decoration:none;font-size:15.5px;font-weight:500;box-shadow:inset 0 1px 0 rgb(255 255 255/.18),0 1px 2px rgb(var(--shade)/calc(.2*var(--sk)))}
.btn.quiet{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
.btn.quiet:hover{box-shadow:0 0 0 1px var(--muted)}
/* The story. The plain rules below are one ordinary screen with the finished picture (the whole tree, the last line,
   no hint), which is what a browser without scroll-driven animations shows; the @supports block makes the section
   tall (four screens: the growth starts with the first scroll and each stage takes about a screen), pins the stage,
   winds the picture back to the start and lets the scroll play it. The stage is the small
   viewport's height, so a phone's toolbar never covers the ground. */
.story{position:relative}
.stage{position:relative;height:100vh;height:100svh;overflow:hidden;background:linear-gradient(var(--sky-a) 40%,var(--sky-b))}
/* Behind the paper, a photograph: a banyan in the Northern Territory in 1891 (History Trust of South Australia, CC0,
   on Wikimedia Commons), drained to grey and faded to a ghost on the horizon, dissolving into the sky above and the
   paper below. A phone gets the smaller file. */
.photo{position:absolute;inset:0;z-index:0;pointer-events:none;background:url(/banyan-1891.jpg) center 70% / cover no-repeat;filter:grayscale(1) contrast(.95);opacity:var(--photo);-webkit-mask-image:linear-gradient(transparent 6%,#000 40%,#000 70%,transparent 94%);mask-image:linear-gradient(transparent 6%,#000 40%,#000 70%,transparent 94%)}
.lines{position:absolute;inset-inline-start:max(32px,calc(50vw - 560px));top:max(96px,16vh);width:min(520px,calc(100vw - 64px));display:grid;place-items:start;z-index:3}
.line{grid-area:1/1;font-family:var(--serif);font-size:clamp(30px,3.6vw,48px);line-height:1.1;letter-spacing:-.02em}
.line h1{font:inherit;letter-spacing:inherit}
.line .sub{display:block;margin-top:.4em;font-size:.62em;font-weight:500;font-family:var(--sans);letter-spacing:-.005em;color:var(--forest);line-height:1.4}
/* The stroke: a pen's underline beneath the sub-line in the moss green, thick where it starts and tapering away,
   swept in from the start side once the words have landed. The first screen's sweeps in on load; the last one's with
   the scroll. */
.line .sub{position:relative;display:inline-block;padding-bottom:.28em}
.line .sub::after{content:"";position:absolute;left:0;right:0;bottom:0;height:.26em;background:var(--forest);clip-path:polygon(0 15%,100% 38%,100% 62%,0 100%);border-radius:999px;transform:rotate(-1.2deg) scaleX(1);transform-origin:0 50%}
[dir=rtl] .line .sub::after{transform-origin:100% 50%;transform:rotate(1.2deg) scaleX(1);clip-path:polygon(0 38%,100% 15%,100% 100%,0 62%)}
.k1 .sub::after{animation:sweep .9s cubic-bezier(.2,.7,.2,1) .5s both}
/* The verse under the first line: the script's serif, its source smaller. */
.verse{margin-top:1em;font-size:.6em;line-height:1.45;color:var(--ink);letter-spacing:0}
.verse>span{display:block;font-family:"Frank Ruhl Libre",Georgia,serif;font-size:1.22em;width:fit-content}
.verse small{font-size:.62em;color:var(--muted);margin-inline-start:.3em}
.k1,.k2,.k3{opacity:0}
/* No ground sheet: the tree stands on the stage's bottom edge, the drawing's blank strip under its feet pushed below it. */
.tree{position:absolute;inset-inline-end:max(-120px,calc(50vw - 800px));bottom:calc(var(--ground-h) * -1);width:var(--tree-w);height:auto;z-index:2;color:var(--tree);filter:var(--paper-shadow)}
[dir=rtl] .tree{transform:scaleX(-1)}
/* The parts of a stage and where each grows from: a limb from the trunk, lobes up from the limb line, a root down
   from its own top, a thickening root about its own middle. PARTS names them for the three blocks below. */
.tree .limb{transform-box:view-box;transform-origin:600px 0}
.tree .lobes{transform-box:view-box;transform-origin:50% 362px}
.tree .props>path{transform-box:fill-box;transform-origin:50% 0}
.tree .thick>path{transform-box:fill-box;transform-origin:50% 50%}
/* The cue to scroll: a chevron centred above the ground, bobbing. There is one per stage, shown and faded with its
   stage's line (the same k classes and keyframes), each a link to the mark where the next stage stands grown, the last
   to the page below the story; a tap carries the page there smoothly. A faded one is hidden, so it takes no tap.
   Under reduced motion there is none. */
.hint{display:none;position:absolute;left:50%;translate:-50% 0;bottom:22px;padding:4px 10px;color:var(--muted);text-decoration:none;text-align:center;z-index:3;border-radius:12px}
.hint span{display:block;font-size:12.5px;letter-spacing:.04em;line-height:1.2}
.hint svg{margin:0 auto}
.hint:hover{color:var(--ink)}
.mark{position:absolute;left:0;width:1px;height:1px}
#stage-2{top:65vh}#stage-3{top:170vh}#stage-4{top:275vh}
html{scroll-behavior:smooth}
.hint svg{display:block;width:28px;height:28px;animation:bob 1.8s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(7px)}}
@keyframes sweep{from{transform:rotate(-1.2deg) scaleX(0)}to{transform:rotate(-1.2deg) scaleX(1)}}
@keyframes sweep-rtl{from{transform:rotate(1.2deg) scaleX(0)}to{transform:rotate(1.2deg) scaleX(1)}}
[dir=rtl] .k1 .sub::after{animation-name:sweep-rtl}
@supports (animation-timeline: scroll()){
  .top{position:fixed;animation:gone linear both;animation-timeline:scroll(root);animation-range:350vh 400vh}
  .story{height:400vh}.stage{position:sticky;top:0}
  .k1{opacity:1}.k4{opacity:0}.hint{display:block}
  .line,.hint{animation:say linear both;animation-timeline:scroll(root)}
  .k1{animation-name:first;animation-range:0 25vh}
  .k2{animation-range:20vh 115vh}.k3{animation-range:105vh 220vh}.k4{animation-name:last;animation-range:210vh 335vh}
  .tree .s2{--ra:5vh;--rb:75vh}.tree .s3{--ra:110vh;--rb:180vh}.tree .s4{--ra:215vh;--rb:285vh}
  .tree .limb,.tree .lobes,.tree .props>path,.tree .thick>path{animation:reach linear both;animation-timeline:scroll(root);animation-range:var(--ra) var(--rb)}
  .tree .lobes{animation-name:leaf}.tree .props>path{animation-name:drop}.tree .thick>path{animation-name:thicken}
  @keyframes say{0%{opacity:0;visibility:hidden;transform:translateY(34px) scale(.96)}12%{opacity:1;visibility:visible;transform:none}80%{opacity:1;visibility:visible;transform:none}100%{opacity:0;visibility:hidden;transform:translateY(-18px)}}
  @keyframes first{0%{opacity:1;visibility:visible}75%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden;transform:translateY(-18px)}}
  @keyframes last{0%{opacity:0;visibility:hidden;transform:translateY(34px) scale(.96)}18%{opacity:1;visibility:visible;transform:none}100%{opacity:1;visibility:visible}}
  .k4 .sub::after{animation:sweep-on-scroll linear both;animation-timeline:scroll(root);animation-range:210vh 335vh}
  @keyframes sweep-on-scroll{0%,17%{transform:rotate(-1.2deg) scaleX(0)}30%,100%{transform:rotate(-1.2deg) scaleX(1)}}
  [dir=rtl] .k4 .sub::after{animation-name:sweep-on-scroll-rtl}
  @keyframes sweep-on-scroll-rtl{0%,17%{transform:rotate(1.2deg) scaleX(0)}30%,100%{transform:rotate(1.2deg) scaleX(1)}}
  @keyframes reach{0%{opacity:0;transform:scaleX(.001)}6%{opacity:1}45%,100%{opacity:1;transform:none}}
  @keyframes leaf{0%,28%{opacity:0;transform:scaleY(.001)}34%{opacity:1}72%,100%{opacity:1;transform:none}}
  @keyframes drop{0%,48%{opacity:0;transform:scaleY(.001)}54%{opacity:1}100%{opacity:1;transform:none}}
  @keyframes thicken{0%{opacity:0;transform:scaleX(.1)}10%{opacity:1}60%,100%{opacity:1;transform:none}}
}
/* The same story where the browser has no scroll-driven animation but story.js runs: it sets --y, the scroll offset
   in stage heights, and every value below is the keyframes above worked out from it. --a and --b are each piece's
   range, --p its progress within it. */
.js-story .top{position:fixed;opacity:clamp(0,(4 - var(--y)) / .5,1)}
.js-story .story{height:400vh}.js-story .stage{position:sticky;top:0}
.js-story .hint{display:block;z-index:calc(3 + var(--in) * var(--out) * 2)}
.js-story .line,.js-story .hint{--p:clamp(0,(var(--y) - var(--a)) / (var(--b) - var(--a)),1);--in:clamp(0,var(--p) / .12,1);--out:clamp(0,(1 - var(--p)) / .2,1);opacity:calc(var(--in) * var(--out));transform:translateY(calc((1 - var(--in)) * 34px - (1 - var(--out)) * 18px)) scale(calc(.96 + .04 * var(--in)))}
.js-story .k4 .sub::after{transform:rotate(-1.2deg) scaleX(clamp(0,(var(--p) - .17) / .13,1))}
[dir=rtl] .js-story .k4 .sub::after{transform:rotate(1.2deg) scaleX(clamp(0,(var(--p) - .17) / .13,1))}
.js-story .k1{--a:0;--b:.25;--in:1;--out:clamp(0,(1 - var(--p)) / .25,1)}
.js-story .k2{--a:.2;--b:1.15}.js-story .k3{--a:1.05;--b:2.2}
.js-story .k4{--a:2.1;--b:3.35;--in:clamp(0,var(--p) / .18,1);--out:1}
.js-story .tree .s2,.js-story .tree .s3,.js-story .tree .s4{--p:clamp(0,(var(--y) - var(--a)) / (var(--b) - var(--a)),1)}
.js-story .tree .s2{--a:.05;--b:.75}.js-story .tree .s3{--a:1.1;--b:1.8}.js-story .tree .s4{--a:2.15;--b:2.85}
.js-story .tree .limb{opacity:clamp(0,var(--p) / .06,1);transform:scaleX(max(.001,min(1,var(--p) / .45)))}
.js-story .tree .lobes{opacity:clamp(0,(var(--p) - .28) / .06,1);transform:scaleY(max(.001,min(1,(var(--p) - .28) / .44)))}
.js-story .tree .props>path{opacity:clamp(0,(var(--p) - .48) / .06,1);transform:scaleY(max(.001,min(1,(var(--p) - .48) / .52)))}
.js-story .tree .thick>path{opacity:clamp(0,var(--p) / .1,1);transform:scaleX(max(.1,min(1,var(--p) / .6)))}
/* Under reduced motion, and on a window too short to hold a line beside the tree, the story is that one ordinary
   screen again: the finished picture, nothing pinned, nothing moving; the first three lines stay in the page for a
   screen reader, only invisible. */
@media (prefers-reduced-motion:reduce),(max-height:520px){
  html{scroll-behavior:auto}
  .top{position:absolute;animation:none}
  .story{height:auto}.stage{position:relative}
  .line,.hint,.tree .limb,.tree .lobes,.tree .props>path,.tree .thick>path{animation:none;opacity:1;transform:none}
  .line .sub::after{animation:none}
  .k1,.k2,.k3{opacity:0}.k4{opacity:1}.hint{display:none}
}
/* After the story: the page proper. */
.after{position:relative;z-index:4;background:var(--surface);box-shadow:0 -1px 0 var(--line)}
.wrap{max-width:1120px;margin:0 auto;padding:0 32px}
.lead{padding:96px 32px 24px}
.lead h2,.early h2,.texts h2{font-size:34px;margin-bottom:18px}
.lead p{font-family:var(--serif);font-size:24px;line-height:1.4;max-width:60ch}
.early{padding:56px 32px 24px}
.early p,.texts p{max-width:60ch;color:var(--ink-2)}.early p+p{margin-top:.8em}
.acts{display:flex;align-items:center;gap:24px;margin-top:26px;flex-wrap:wrap}
.texts{padding:56px 32px 72px}.texts h2{font-size:24px}
footer{padding:36px 32px 44px;font-size:14px;color:var(--muted);border-top:1px solid var(--line)}
footer nav{display:flex;flex-wrap:wrap;gap:10px 22px;margin-bottom:10px}
footer a{color:var(--muted)}
@media (max-width:820px){
  :root{--tree-w:120vw}
  .photo{background-image:url(/banyan-1891-1000.jpg)}
  .top{padding:24px 18px 16px}.wrap{padding-inline:20px}footer{padding:28px 20px 36px}
  .lines{top:max(80px,9vh)}.tree{inset-inline-end:-10vw}
  .top-acts{gap:8px}.langs a{padding:8px 10px}
  .lead{padding-top:64px}.lead p{font-size:20px}
}
