/* The exercise library on bonim.app. Generated by scripts/exercise-pages.ts from
   src/site/exercisePages.ts: edit it there. Tokens and type follow public/about. */
@font-face{font-family:"Karantina";font-weight:700;font-style:normal;font-display:swap;size-adjust:128%;src:url("/legal/fonts/karantina-hebrew-700-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:"Heebo";font-weight:400;font-style:normal;font-display:swap;src:url("/legal/fonts/heebo-hebrew-400-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:"Heebo";font-weight:400;font-style:normal;font-display:swap;src:url("/legal/fonts/heebo-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Heebo";font-weight:700;font-style:normal;font-display:swap;src:url("/legal/fonts/heebo-hebrew-700-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:"Heebo";font-weight:700;font-style:normal;font-display:swap;src:url("/legal/fonts/heebo-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#09090B; --surface:#131317; --surface-2:#1a1a1f;
  --line:rgba(244,245,239,.09); --line-2:rgba(244,245,239,.16);
  --ink:#F4F5EF; --muted:#a3a3ab; --faint:#6b6b74;
  --accent:#D6FF3D; --accent-ink:#09090B; --accent-soft:rgba(214,255,61,.12); --accent-line:rgba(214,255,61,.35);
  --brand:#D6FF3D; --btn:#D6FF3D; --btn-ink:#09090B; --glow:rgba(214,255,61,.34);
  --plate:#18181b; --plate-line:rgba(244,245,239,.08);
  --gutter:16px; --maxw:1120px;
  --display:"Karantina","Heebo",system-ui,sans-serif;
  --body:"Heebo",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#F4F5EF; --surface:#ffffff; --surface-2:#f7f8f3;
    --line:rgba(25,54,44,.11); --line-2:rgba(25,54,44,.2);
    --ink:#19362c; --muted:#4d6458; --faint:#7d8f84;
    --accent:#276449; --accent-ink:#F4F5EF; --accent-soft:rgba(214,245,133,.55); --accent-line:rgba(39,100,73,.35);
    --brand:#19362c; --btn:#19362c; --btn-ink:#d6f585; --glow:rgba(190,235,90,.55);
    --plate-line:rgba(25,54,44,.1);
  }
}
@media (min-width:768px){:root{--gutter:32px}}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.7 var(--body);overflow-x:clip;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg{display:block;max-width:100%}
a{color:inherit}
p{margin:0}
h1,h2,h3{margin:0;font-weight:700}
[hidden]{display:none!important}
.num{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{width:100%;max-width:calc(var(--maxw) + var(--gutter)*2);margin:0 auto;padding-inline:var(--gutter)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}
.ico{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hl{color:var(--accent)}

.wordmark{display:inline-flex;align-items:baseline;font-family:var(--display);font-weight:700;line-height:1;color:var(--brand);direction:rtl}
.wordmark svg{height:.9em;width:auto;margin:0 .02em;overflow:visible}
.wordmark-arm{fill:currentColor;stroke:currentColor}
.wordmark-lines{stroke:var(--bg)}
.wordmark-marks{stroke:var(--accent)}

.top{padding-top:env(safe-area-inset-top);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand img{width:32px;height:32px;border-radius:9px}
.brand .wordmark{font-size:34px}
.top-link{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line-2);font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap;transition:border-color .2s,background-color .2s}
.top-link:hover{border-color:var(--accent-line);background:var(--accent-soft)}

.kicker{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:700;color:var(--accent)}
.kicker::before{content:"";width:22px;height:2px;border-radius:2px;background:currentColor}
.lead{font-size:clamp(17px,2.2vw,20px);color:var(--muted);line-height:1.6;max-width:44ch}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;border-radius:999px;background:var(--btn);color:var(--btn-ink);font:700 17px/1 var(--body);text-decoration:none;white-space:nowrap;box-shadow:0 10px 30px -8px var(--glow),inset 0 -2px 0 rgba(0,0,0,.12);transition:transform .35s var(--ease)}
.btn:hover{transform:translateY(-2px)}
.btn .ico{font-size:20px;stroke-width:2.4}

/* the drawings: a near-white figure with baked-in colours, so the plate stays dark in both themes */
.plate{margin:0;border-radius:22px;background:var(--plate);border:1px solid var(--plate-line);overflow:hidden}

/* ---------------- library ---------------- */
.lib{padding-top:clamp(36px,7vw,72px)}
.lib-head{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.lib-title{font-family:var(--display);font-size:clamp(58px,14vw,112px);line-height:.92}
.finder{margin-top:28px;padding-bottom:4px}
.search{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border-radius:16px;background:var(--surface);border:1px solid var(--line-2);color:var(--muted)}
.search:focus-within{border-color:var(--accent-line)}
.search .ico{font-size:20px}
.search input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:var(--ink);font:400 16px var(--body);outline:none}
.search input::placeholder{color:var(--faint)}
.chips{display:flex;gap:8px;margin:12px calc(var(--gutter)*-1) 0;padding:0 var(--gutter) 4px;overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
@media (min-width:700px){.chips{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0}}
.chip{flex:none;white-space:nowrap;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line-2);background:transparent;color:var(--muted);font:700 14px var(--body);cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.empty{margin-top:28px;color:var(--muted)}
.group{margin-top:clamp(32px,5vw,52px)}
.group h2{font-family:var(--display);font-size:clamp(38px,7vw,54px);line-height:1;margin-bottom:16px}
.group h2 small{font:700 15px var(--body);color:var(--faint);vertical-align:middle}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:700px){.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media (min-width:1000px){.lib .cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
.card{display:flex;flex-direction:column;border-radius:20px;background:var(--surface);border:1px solid var(--line);overflow:hidden;text-decoration:none;transition:transform .35s var(--ease),border-color .25s}
.card:hover{transform:translateY(-3px);border-color:var(--accent-line)}
.card-plate{display:block;background:var(--plate);padding:8px}
.card-plate img{width:100%;height:auto;aspect-ratio:200/115}
.card-text{display:flex;flex-direction:column;gap:2px;padding:12px 14px 14px}
.card-text b{font-size:16px;line-height:1.3}
.card-text small{font-size:13px;color:var(--muted);line-height:1.4}

/* ---------------- one exercise ---------------- */
.ex{padding-top:clamp(20px,4vw,40px)}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted)}
.crumbs a{color:var(--accent);font-weight:700;text-decoration:none}
.ex-title{margin-top:12px;font-family:var(--display);font-size:clamp(50px,12vw,96px);line-height:.95;max-width:16ch;text-wrap:balance}
.works{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px}
.works-label{font-weight:700;margin-inline-end:2px}
.pill{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:var(--accent-soft);border:1px solid var(--accent-line);font-size:14px;font-weight:700}
.pill-quiet{background:transparent;border-color:var(--line-2);color:var(--muted);font-weight:400}
.ex-grid{display:grid;gap:24px;margin-top:24px}
.ex-plate{position:relative;padding:clamp(10px,3vw,24px)}
.ex-plate .anim{width:100%;height:auto;aspect-ratio:200/115}
.pause{position:absolute;bottom:10px;left:10px;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid rgba(244,245,239,.18);background:rgba(9,9,11,.6);color:#F4F5EF;font:700 13px var(--body);cursor:pointer}
.pause .pause-play,.pause[aria-pressed="true"] .pause-stop{display:none}
.pause[aria-pressed="true"] .pause-play{display:inline}
.ex-text{display:grid;gap:14px}
.ex-text section{padding:20px;border-radius:20px;background:var(--surface);border:1px solid var(--line)}
.ex-text h2{display:flex;align-items:center;gap:12px;font-size:20px;margin-bottom:10px}
.ex-text .n{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);font:700 15px/1 var(--body)}
.cues{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.cues li{position:relative;padding-inline-start:20px}
.cues li::before{content:"";position:absolute;inset-inline-start:2px;top:.72em;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.mistake{border-color:var(--accent-line)!important;background:linear-gradient(var(--accent-soft),var(--accent-soft)),var(--surface)!important}
@media (min-width:900px){
  .ex-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:32px}
  .ex-plate{position:sticky;top:24px}
}
.related{margin-top:clamp(44px,7vw,72px)}
.related h2{font-family:var(--display);font-size:clamp(36px,7vw,52px);line-height:1;margin-bottom:16px}
@media (min-width:900px){.related .cards{grid-template-columns:repeat(4,minmax(0,1fr))}}

.cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin:clamp(44px,7vw,72px) 0;padding:24px;border-radius:24px;background:var(--surface);border:1px solid var(--line)}
.cta p{font-size:18px;line-height:1.5;max-width:34ch}
.cta b{color:var(--accent);white-space:nowrap}

.foot{border-top:1px solid var(--line);padding:30px 0 calc(30px + env(safe-area-inset-bottom));color:var(--muted);font-size:14px}
.foot-in{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between}
.foot nav{display:flex;flex-wrap:wrap;gap:4px 22px}
.foot nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.foot a:hover{color:var(--ink)}
.foot .wordmark{font-size:30px}
.foot-note{flex-basis:100%;font-size:13px;color:var(--faint)}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{transition-duration:.001ms!important}}
