/* subly · the public site (spec 01). Direction C, "three layers" (founder, tower #17911), after the polish round.
   The brand side of "the brand is expressive, the product is quiet" (docs/brand/README.md): colour, depth and a little
   light are allowed here, never in the dashboard. Not taken from the references: noise, frosted glass, a grid, bento. */

@font-face{font-family:'IBM Plex Sans Hebrew';font-weight:400;font-display:swap;src:url(/fonts/plex-hebrew-400.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:'IBM Plex Sans Hebrew';font-weight:500;font-display:swap;src:url(/fonts/plex-hebrew-500.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:'IBM Plex Sans Hebrew';font-weight:600;font-display:swap;src:url(/fonts/plex-hebrew-600.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:'IBM Plex Sans Hebrew';font-weight:700;font-display:swap;src:url(/fonts/plex-hebrew-700.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:'IBM Plex Sans Hebrew';font-weight:400;font-display:swap;src:url(/fonts/plex-latin-400.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:'IBM Plex Sans Hebrew';font-weight:500;font-display:swap;src:url(/fonts/plex-latin-500.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:'IBM Plex Sans Hebrew';font-weight:600;font-display:swap;src:url(/fonts/plex-latin-600.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:'IBM Plex Sans Hebrew';font-weight:700;font-display:swap;src:url(/fonts/plex-latin-700.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:'IBM Plex Mono';font-weight:400;font-display:swap;src:url(/fonts/plex-mono-latin-400.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-weight:500;font-display:swap;src:url(/fonts/plex-mono-latin-500.woff2) format('woff2')}

:root{
  /* the frame: blue-grey, never black (founder: "שחור מדי") */
  --bg:#0e121a; --bg-deep:#0a0d14;
  --surface:#151a23; --raised:#1b212c; --sunk:#0b0f16;
  --line:rgb(255 255 255/.075); --line-soft:rgb(255 255 255/.05); --line-strong:rgb(255 255 255/.12);
  --fg:#edf0f4; --muted:#a9b1bd; --faint:#7b8492; --dim:#59616e;
  /* the brand: the logo's three layers */
  --mint:#3ee8a8; --mint-hi:#72f7c8; --mint-ink:#03140d;
  --violet:#7b7ff5; --indigo:#5048dc;
  --ok:#86c97a; --warn:#e7a54b; --bad:#ef7373;
  --sans:'IBM Plex Sans Hebrew',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;
  --shadow:0 1px 0 rgb(255 255 255/.04) inset,0 0 0 1px var(--line),0 1px 2px rgb(0 0 0/.35),0 24px 60px -28px rgb(0 0 0/.8);
  --shadow-float:0 1px 0 rgb(255 255 255/.06) inset,0 0 0 1px rgb(255 255 255/.09),0 2px 4px rgb(0 0 0/.3),0 30px 70px -24px rgb(0 0 0/.85);
  --wrap:1180px; --gutter:40px;
  --ease:cubic-bezier(.2,.7,.1,1);
}
*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{background:var(--bg);color-scheme:dark;overflow-x:clip;-webkit-text-size-adjust:100%;scroll-padding-top:84px}
body{min-height:100vh;background:var(--bg);color:var(--fg);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:clip;text-rendering:optimizeLegibility}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
code,kbd,pre,.mono{font-family:var(--mono)}
.num{font-variant-numeric:tabular-nums}
.ltr{direction:ltr;unicode-bidi:isolate}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{width:100%;max-width:calc(var(--wrap) + var(--gutter)*2);margin-inline:auto;padding-inline:var(--gutter);position:relative}
:focus-visible{outline:2px solid var(--mint);outline-offset:3px;border-radius:6px}
::selection{background:rgb(62 232 168/.28);color:#fff}
.skip{position:absolute;inset-inline-start:16px;top:-60px;z-index:100;padding:10px 16px;border-radius:10px;background:var(--fg);color:var(--bg);font-weight:600}
.skip:focus{top:12px}

/* ---- light: soft colour behind the content, as radial gradients (no blur filters, no noise) ---- */
.light{position:absolute;pointer-events:none;z-index:0;border-radius:50%}
.light.mint{background:radial-gradient(closest-side,rgb(62 232 168/.13),rgb(62 232 168/0))}
.light.violet{background:radial-gradient(closest-side,rgb(96 90 240/.17),rgb(96 90 240/0))}

/* ---- logo ---- */
.logo{display:inline-flex;align-items:center;gap:6px;direction:ltr;border-radius:8px;color:#eef0f3}
.logo svg{flex:none;width:auto}
.logo .lm{height:30px}
.logo .lw{height:25px}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:40px;padding-inline:16px;border-radius:11px;font-size:14px;font-weight:500;line-height:1;white-space:nowrap;transition:background-color .15s,box-shadow .2s,color .15s}
.btn svg{width:16px;height:16px;flex:none}
.btn-primary{background:var(--mint);color:var(--mint-ink);font-weight:600;box-shadow:inset 0 1px 0 rgb(255 255 255/.4),0 0 0 1px rgb(62 232 168/.55),0 10px 28px -10px rgb(62 232 168/.6)}
.btn-primary:hover{background:var(--mint-hi)}
.btn-primary svg{transition:transform .2s var(--ease)}
.btn-primary:hover svg{transform:translateX(-3px)}
.btn-line{background:rgb(255 255 255/.03);box-shadow:inset 0 0 0 1px var(--line-strong)}
.btn-line:hover{background:rgb(255 255 255/.07)}
.btn-ghost{color:var(--muted)}
.btn-ghost:hover{color:var(--fg)}
.btn-lg{height:50px;padding-inline:22px;font-size:16px;border-radius:13px}
.btn-sm{height:32px;padding-inline:12px;font-size:13px;border-radius:9px}
.link{color:var(--fg);text-decoration:underline;text-decoration-color:rgb(255 255 255/.25);text-underline-offset:5px;transition:text-decoration-color .15s}
.link:hover{text-decoration-color:var(--fg)}
.arrow-link{display:inline-flex;align-items:center;gap:8px;color:var(--fg);font-weight:500}
.arrow-link svg{width:16px;height:16px;transition:transform .2s var(--ease)}
.arrow-link:hover svg{transform:translateX(-3px)}

/* ---- header ---- */
.top{position:sticky;top:0;z-index:50;background:rgb(14 18 26/.86);border-bottom:1px solid var(--line-soft)}
@supports (backdrop-filter:blur(1px)){.top{background:rgb(14 18 26/.74);backdrop-filter:saturate(1.3) blur(14px);-webkit-backdrop-filter:saturate(1.3) blur(14px)}}
.top .wrap{display:flex;align-items:center;height:64px;gap:40px}
.top nav{display:flex;gap:28px;font-size:14px;color:var(--muted)}
.top nav a{padding-block:6px;transition:color .15s}
.top nav a:hover,.top nav a[aria-current=page]{color:var(--fg)}
.top .end{margin-inline-start:auto;display:flex;align-items:center;gap:6px}
.menu-btn{display:none;width:40px;padding:0}
.menu-btn svg{width:18px;height:18px}
.sheet{position:fixed;inset:0;z-index:60;background:var(--bg);display:flex;flex-direction:column;padding:0 16px 24px}
.sheet[hidden]{display:none}
.sheet-top{display:flex;align-items:center;justify-content:space-between;height:60px;border-bottom:1px solid var(--line-soft)}
.sheet nav{display:flex;flex-direction:column;padding-block:12px}
.sheet nav a{padding:14px 2px;font-size:20px;font-weight:500;border-bottom:1px solid var(--line-soft)}
.sheet .btns{margin-top:auto;display:grid;gap:10px}
.sheet .btns .btn{height:50px;font-size:16px}

/* ---- footer ---- */
.foot{position:relative;border-top:1px solid var(--line-soft);padding-block:64px 36px;font-size:14px;z-index:1;background:var(--bg)}
.f-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:40px}
.f-grid h2{font-size:13px;font-weight:500;color:var(--faint);margin-bottom:14px}
.f-grid ul{list-style:none;display:grid;gap:10px;color:var(--muted)}
.f-grid a{transition:color .15s}
.f-grid a:hover{color:var(--fg)}
.f-tag{margin-top:16px;color:var(--faint);max-width:22em;line-height:1.6}
.status-word{display:inline-flex;align-items:center;gap:8px}
.status-word i{width:7px;height:7px;border-radius:50%;background:var(--ok);flex:none}
.status-word.bad i{background:var(--warn)}
.f-bottom{margin-top:52px;padding-top:22px;border-top:1px solid var(--line-soft);display:flex;flex-wrap:wrap;gap:12px 28px;color:var(--faint);font-size:13px}
.f-bottom a{color:var(--muted)}
.f-bottom a:hover{color:var(--fg)}
.f-bottom .end{margin-inline-start:auto}

/* ---- shared blocks ---- */
.card{position:relative;border-radius:20px;background:linear-gradient(180deg,var(--raised),var(--surface));box-shadow:var(--shadow)}
.eyebrow{display:inline-block;font:500 12.5px/1 var(--mono);letter-spacing:.06em;color:var(--mint);direction:ltr}
.h1{font-size:clamp(40px,4.6vw,64px);line-height:1.06;font-weight:600;letter-spacing:-.032em;text-wrap:balance}
.h2{font-size:clamp(30px,3.1vw,44px);line-height:1.1;font-weight:600;letter-spacing:-.028em;text-wrap:balance}
.h3{font-size:20px;line-height:1.3;font-weight:600;letter-spacing:-.015em}
.lead{font-size:18px;line-height:1.65;color:var(--muted);text-wrap:pretty}
.muted{color:var(--muted)} .faint{color:var(--faint)}
section,main{position:relative}
main{overflow-x:clip}
.sec{padding-block:120px;isolation:isolate}
.sec-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:end;margin-bottom:56px;position:relative;z-index:1}
.sec-head p{font-size:17px;color:var(--muted);max-width:30em}

/* code: always left to right, even inside a Hebrew page */
.code{font:400 13px/1.85 var(--mono);direction:ltr;text-align:left;color:#d6dae1;white-space:pre;overflow-x:auto;tab-size:2}
.code .k{color:var(--mint)} .code .s{color:#b9bcff} .code .c{color:var(--faint)} .code .n{color:#f0c27b}
.copy-btn{display:inline-flex;align-items:center;gap:8px}
.copy-btn svg{width:15px;height:15px}
.copy-fail{font-size:14px;color:var(--warn)}

/* ---- inner pages ---- */
.page-hero{padding-block:72px 48px;position:relative;isolation:isolate}
.page-hero .lead{margin-top:18px;max-width:36em}
.prose{max-width:720px;font-size:16.5px;line-height:1.75;color:#d6dae1}
.prose>*+*{margin-top:1em}
.prose h2{margin-top:2.2em;font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.02em;color:var(--fg);scroll-margin-top:90px}
.prose h3{margin-top:1.8em;font-size:18px;font-weight:600;color:var(--fg);scroll-margin-top:90px}
.prose h2+*,.prose h3+*{margin-top:.6em}
.prose a{color:var(--fg);text-decoration:underline;text-decoration-color:rgb(255 255 255/.28);text-underline-offset:4px}
.prose a:hover{text-decoration-color:var(--fg)}
.prose a.btn{text-decoration:none;color:inherit}
.prose a.btn-primary{color:var(--mint-ink)}
.prose strong{color:var(--fg);font-weight:600}
.prose ul,.prose ol{padding-inline-start:1.3em;display:grid;gap:.45em}
.prose li::marker{color:var(--faint)}
.prose :not(pre)>code{font-size:.86em;padding:.12em .42em;border-radius:6px;background:rgb(255 255 255/.06);color:#e7e9ee;direction:ltr;unicode-bidi:isolate}
.prose blockquote{padding:16px 20px;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.prose blockquote strong{color:var(--fg)}
.prose table{width:100%;border-collapse:collapse;font-size:15px}
.prose th{text-align:start;font-weight:500;color:var(--faint);font-size:13px;padding:0 12px 10px 0}
.prose td{padding:12px 12px 12px 0;border-top:1px solid var(--line-soft);vertical-align:top}
.prose hr{border:0;border-top:1px solid var(--line-soft);margin-block:2em}
.block{position:relative;border-radius:14px;background:var(--sunk);box-shadow:inset 0 0 0 1px var(--line)}
.block .bar{display:flex;align-items:center;gap:12px;height:40px;padding-inline:14px 8px;border-bottom:1px solid var(--line-soft);font-size:12.5px;color:var(--faint)}
.block .bar .copy-btn{margin-inline-start:auto}
.block pre{padding:14px 16px 16px}
.block .rtl-text{direction:rtl;text-align:start;font-family:var(--sans);font-size:15px;line-height:1.8;white-space:pre-wrap;color:#d6dae1}

/* docs layout: the nav on the start side, the content in the middle, "on this page" at the end */
.docs{display:grid;grid-template-columns:220px minmax(0,1fr) 200px;gap:48px;padding-block:40px 96px;align-items:start}
.docs>article{min-width:0}
.docs-nav{position:sticky;top:88px;font-size:14px;max-height:calc(100vh - 110px);overflow-y:auto}
.docs-nav h2{font-size:12.5px;font-weight:500;color:var(--faint);margin:20px 0 8px}
.docs-nav h2:first-child{margin-top:0}
.docs-nav ul{list-style:none;display:grid;gap:2px}
.docs-nav a{display:block;padding:6px 10px;border-radius:8px;color:var(--muted);transition:background-color .15s,color .15s}
.docs-nav a:hover{color:var(--fg);background:rgb(255 255 255/.04)}
.docs-nav a[aria-current=page]{color:var(--fg);background:rgb(255 255 255/.06)}
.toc{position:sticky;top:88px;font-size:13px}
.toc h2{font-size:12.5px;font-weight:500;color:var(--faint);margin-bottom:10px}
.toc ul{list-style:none;display:grid;gap:8px;border-inline-start:1px solid var(--line-soft)}
.toc a{display:block;padding-inline-start:12px;margin-inline-start:-1px;border-inline-start:1px solid transparent;color:var(--faint)}
.toc a:hover{color:var(--fg)}
.toc a.on{color:var(--fg);border-color:var(--mint)}
.doc-head{padding-bottom:28px;margin-bottom:8px;border-bottom:1px solid var(--line-soft)}
.doc-head .h1{font-size:clamp(32px,3.2vw,42px)}
.doc-head .lead{margin-top:12px;font-size:17px}
.doc-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.mobile-toc{display:none}

@media (max-width:1100px){
  .docs{grid-template-columns:200px minmax(0,1fr);gap:40px}
  .toc{display:none}
}
@media (max-width:860px){
  :root{--gutter:16px}
  html{scroll-padding-top:72px}
  .top .wrap{height:60px;gap:12px}
  .top nav,.top .login{display:none}
  .menu-btn{display:inline-flex}
  .logo .lm{height:27px}
  .logo .lw{height:23px}
  .f-grid{grid-template-columns:1fr 1fr;gap:32px 20px}
  .f-grid>div:first-child{grid-column:1/-1}
  .f-bottom .end{margin-inline-start:0;width:100%}
  .sec{padding-block:80px}
  .sec-head{grid-template-columns:1fr;gap:14px;margin-bottom:36px}
  .lead{font-size:16.5px}
  .page-hero{padding-block:44px 28px}
  .docs{grid-template-columns:minmax(0,1fr);gap:0;padding-top:16px}
  .mobile-toc summary svg{width:18px;height:18px;flex:none;color:var(--faint)}
  .docs-nav{display:none}
  .mobile-toc{display:block;margin-bottom:20px}
  .mobile-toc summary{list-style:none;display:flex;align-items:center;justify-content:space-between;height:44px;padding-inline:14px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);font-size:15px;font-weight:500;cursor:pointer}
  .mobile-toc summary::-webkit-details-marker{display:none}
  .mobile-toc[open] summary{border-end-start-radius:0;border-end-end-radius:0}
  .mobile-toc .docs-nav{display:block;position:static;max-height:none;padding:8px 14px 14px;background:var(--surface);border-radius:0 0 12px 12px;box-shadow:inset 0 0 0 1px var(--line)}
  .prose{font-size:16px}
  .prose table,.prose thead,.prose tbody,.prose tr,.prose td{display:block}
  .prose thead{display:none}
  .prose tr{padding-block:12px;border-top:1px solid var(--line-soft)}
  .prose td{border:0;padding:2px 0}
  .prose td:first-child{font-weight:600;color:var(--fg)}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
