/* Сметра design tokens.
   One palette, one accent, one type scale. Every other stylesheet reads these
   variables; components never hard-code colours, radii or durations. */
@font-face{font-family:Onest;src:url('/assets/fonts/onest-variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}

:root{
  color-scheme:dark;
  --smetra-system:2;

  /* Neutral graphite ramp. Surfaces step up in small, even increments. */
  --bg:#0a0a0b;
  --bg-sunken:#070708;
  --surface-1:#111113;
  --surface-2:#161618;
  --surface-3:#1c1c1f;
  --surface-4:#242428;
  --surface-inverse:#ededef;
  --overlay:rgba(4,4,5,.72);

  --line:rgba(255,255,255,.075);
  --line-strong:rgba(255,255,255,.13);
  --line-focus:rgba(110,168,255,.55);

  --text:#ededef;
  --text-2:#a7a7b0;
  --text-3:#83838c;
  --text-inverse:#0b0b0c;
  --text-disabled:#5b5b62;

  /* The single accent: brand blue. Used for focus, selection, links,
     progress and the active place in navigation — never for decoration. */
  --accent:#6ea8ff;
  --accent-strong:#3d86ff;
  --accent-soft:rgba(110,168,255,.12);
  --accent-softer:rgba(110,168,255,.07);
  --accent-text:#9cc4ff;

  /* Semantic colours appear only inside statuses and messages. */
  --success:#5ccf8f;
  --success-soft:rgba(92,207,143,.12);
  --warning:#e8b45a;
  --warning-soft:rgba(232,180,90,.13);
  --danger:#f2766c;
  --danger-soft:rgba(242,118,108,.13);
  --info:var(--accent);
  --info-soft:var(--accent-soft);

  /* Primary action: high-contrast light fill with dark content. */
  --action:#ededef;
  --action-hover:#ffffff;
  --action-text:#0b0b0c;

  /* Type */
  --font:'Onest',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --font-mono:ui-monospace,'SFMono-Regular','JetBrains Mono',Menlo,Consolas,monospace;
  --fs-11:11px;--fs-12:12px;--fs-13:13px;--fs-14:14px;--fs-15:15px;--fs-16:16px;
  --fs-18:18px;--fs-20:20px;--fs-24:24px;--fs-28:28px;--fs-32:32px;--fs-40:40px;
  --fs-48:48px;--fs-64:64px;--fs-80:80px;
  --lh-tight:1.12;--lh-snug:1.3;--lh-body:1.5;
  --tracking-tight:-.025em;--tracking-display:-.035em;--tracking-caps:.06em;

  /* Spacing (4px grid) */
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:20px;--s-6:24px;--s-7:32px;
  --s-8:40px;--s-9:48px;--s-10:64px;--s-11:80px;--s-12:120px;

  /* Control sizes */
  --control-sm:32px;--control:38px;--control-lg:46px;--touch:44px;

  /* Radii: small and consistent. Pills are reserved for status labels. */
  --r-1:6px;--r-2:8px;--r-3:12px;--r-4:16px;--r-pill:999px;

  /* Elevation is expressed by surface + line; shadows only for floating layers. */
  --shadow-float:0 16px 48px rgba(0,0,0,.45),0 2px 8px rgba(0,0,0,.35);
  --shadow-pop:0 8px 24px rgba(0,0,0,.4);

  /* Motion */
  --ease:cubic-bezier(.2,.7,.2,1);
  --ease-in-out:cubic-bezier(.65,0,.35,1);
  --t-fast:120ms;--t-base:180ms;--t-slow:320ms;--t-reveal:600ms;

  /* Layout */
  --topbar-h:56px;
  --sidebar-w:248px;
  --sidebar-rail:64px;
  --content-max:1240px;
  --content-pad:clamp(16px,3vw,40px);
  --focus-ring:0 0 0 2px var(--bg),0 0 0 4px var(--accent);
}

:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f6f6f4;
  --bg-sunken:#efefec;
  --surface-1:#ffffff;
  --surface-2:#fbfbfa;
  --surface-3:#f1f1ef;
  --surface-4:#e8e8e5;
  --surface-inverse:#18181b;
  --overlay:rgba(24,24,27,.42);

  --line:rgba(20,20,24,.09);
  --line-strong:rgba(20,20,24,.16);
  --line-focus:rgba(31,99,224,.5);

  --text:#17171a;
  --text-2:#55555d;
  --text-3:#6c6c74;
  --text-inverse:#fafafa;
  --text-disabled:#a6a6ad;

  --accent:#1f63e0;
  --accent-strong:#1550bd;
  --accent-soft:rgba(31,99,224,.1);
  --accent-softer:rgba(31,99,224,.06);
  --accent-text:#1a56c4;

  --success:#16834a;--success-soft:rgba(22,131,74,.1);
  --warning:#9a6200;--warning-soft:rgba(176,113,0,.12);
  --danger:#c9372c;--danger-soft:rgba(201,55,44,.1);

  --action:#17171a;
  --action-hover:#000000;
  --action-text:#fafafa;

  --shadow-float:0 18px 48px rgba(20,20,24,.14),0 2px 8px rgba(20,20,24,.08);
  --shadow-pop:0 8px 24px rgba(20,20,24,.12);
}

@media (prefers-reduced-motion:reduce){
  :root{--t-fast:0ms;--t-base:0ms;--t-slow:0ms;--t-reveal:0ms}
}

/* Wet glass: tiled water drops for the phone bars (shell.css, site.css). */
:root{--wet-drops:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='64'%3E%3Cdefs%3E%3CradialGradient id='d' cx='.42' cy='.35' r='.7'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.16'/%3E%3Cstop offset='.55' stop-color='%23fff' stop-opacity='.03'/%3E%3Cstop offset='.85' stop-color='%23000' stop-opacity='.22'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.42'/%3E%3C/radialGradient%3E%3ClinearGradient id='e' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='.35'/%3E%3Cstop offset='.6' stop-color='%23000' stop-opacity='.1'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='.45'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='168.3' cy='50.1' rx='5.6' ry='7.56' fill='url%28%23d%29'/%3E%3Cellipse cx='168.3' cy='50.70' rx='5.49' ry='7.41' fill='none' stroke='url%28%23e%29' stroke-width='0.90'/%3E%3Cellipse cx='166.51' cy='46.92' rx='1.68' ry='1.51' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 166.51 46.92%29'/%3E%3Cellipse cx='169.31' cy='54.64' rx='2.35' ry='1.06' fill='%23fff' fill-opacity='.3'/%3E%3Cellipse cx='91.0' cy='50.0' rx='5.6' ry='5.15' fill='url%28%23d%29'/%3E%3Cellipse cx='91.0' cy='50.41' rx='5.49' ry='5.05' fill='none' stroke='url%28%23e%29' stroke-width='0.90'/%3E%3Cellipse cx='89.21' cy='47.84' rx='1.68' ry='1.03' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 89.21 47.84%29'/%3E%3Cellipse cx='92.01' cy='53.09' rx='2.35' ry='0.72' fill='%23fff' fill-opacity='.3'/%3E%3Cellipse cx='39.2' cy='32.7' rx='2.6' ry='2.75' fill='url%28%23d%29'/%3E%3Cellipse cx='39.2' cy='32.92' rx='2.55' ry='2.70' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='38.37' cy='31.54' rx='0.78' ry='0.55' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 38.37 31.54%29'/%3E%3Cellipse cx='39.67' cy='34.35' rx='1.09' ry='0.39' fill='%23fff' fill-opacity='.3'/%3E%3Cellipse cx='21.4' cy='20.7' rx='2.2' ry='2.37' fill='url%28%23d%29'/%3E%3Cellipse cx='21.4' cy='20.89' rx='2.16' ry='2.32' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='20.70' cy='19.71' rx='0.66' ry='0.47' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 20.70 19.71%29'/%3E%3Cellipse cx='107.5' cy='54.8' rx='1.8' ry='1.83' fill='url%28%23d%29'/%3E%3Cellipse cx='107.5' cy='54.95' rx='1.76' ry='1.79' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='106.92' cy='54.03' rx='0.54' ry='0.37' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 106.92 54.03%29'/%3E%3Cellipse cx='118.6' cy='25.9' rx='1.4' ry='1.51' fill='url%28%23d%29'/%3E%3Cellipse cx='118.6' cy='26.02' rx='1.37' ry='1.48' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='118.15' cy='25.27' rx='0.42' ry='0.30' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 118.15 25.27%29'/%3E%3Cellipse cx='128.8' cy='37.9' rx='5.6' ry='7.56' fill='url%28%23d%29'/%3E%3Cellipse cx='128.8' cy='38.50' rx='5.49' ry='7.41' fill='none' stroke='url%28%23e%29' stroke-width='0.90'/%3E%3Cellipse cx='127.01' cy='34.72' rx='1.68' ry='1.51' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 127.01 34.72%29'/%3E%3Cellipse cx='129.81' cy='42.44' rx='2.35' ry='1.06' fill='%23fff' fill-opacity='.3'/%3E%3Cellipse cx='123.8' cy='51.1' rx='2.2' ry='2.09' fill='url%28%23d%29'/%3E%3Cellipse cx='123.8' cy='51.27' rx='2.16' ry='2.05' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='123.10' cy='50.22' rx='0.66' ry='0.42' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 123.10 50.22%29'/%3E%3Cellipse cx='14.4' cy='13.9' rx='1.8' ry='1.94' fill='url%28%23d%29'/%3E%3Cellipse cx='14.4' cy='14.06' rx='1.76' ry='1.90' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='13.82' cy='13.08' rx='0.54' ry='0.39' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 13.82 13.08%29'/%3E%3Cellipse cx='91.7' cy='19.0' rx='1.8' ry='1.83' fill='url%28%23d%29'/%3E%3Cellipse cx='91.7' cy='19.15' rx='1.76' ry='1.79' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='91.12' cy='18.23' rx='0.54' ry='0.37' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 91.12 18.23%29'/%3E%3Cellipse cx='140.4' cy='21.2' rx='1.8' ry='1.82' fill='url%28%23d%29'/%3E%3Cellipse cx='140.4' cy='21.35' rx='1.76' ry='1.79' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='139.82' cy='20.43' rx='0.54' ry='0.36' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 139.82 20.43%29'/%3E%3Cellipse cx='102.5' cy='5.3' rx='2.6' ry='2.41' fill='url%28%23d%29'/%3E%3Cellipse cx='102.5' cy='5.49' rx='2.55' ry='2.36' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='101.67' cy='4.29' rx='0.78' ry='0.48' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 101.67 4.29%29'/%3E%3Cellipse cx='102.97' cy='6.75' rx='1.09' ry='0.34' fill='%23fff' fill-opacity='.3'/%3E%3Cellipse cx='80.6' cy='52.2' rx='1.8' ry='1.70' fill='url%28%23d%29'/%3E%3Cellipse cx='80.6' cy='52.34' rx='1.76' ry='1.66' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='80.02' cy='51.49' rx='0.54' ry='0.34' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 80.02 51.49%29'/%3E%3Cellipse cx='44.1' cy='57.3' rx='1.4' ry='1.39' fill='url%28%23d%29'/%3E%3Cellipse cx='44.1' cy='57.41' rx='1.37' ry='1.36' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='43.65' cy='56.72' rx='0.42' ry='0.28' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 43.65 56.72%29'/%3E%3Cellipse cx='94.1' cy='60.4' rx='1.4' ry='1.29' fill='url%28%23d%29'/%3E%3Cellipse cx='94.1' cy='60.50' rx='1.37' ry='1.26' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='93.65' cy='59.86' rx='0.42' ry='0.26' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 93.65 59.86%29'/%3E%3Cellipse cx='84.9' cy='35.5' rx='4.6' ry='4.84' fill='url%28%23d%29'/%3E%3Cellipse cx='84.9' cy='35.89' rx='4.51' ry='4.75' fill='none' stroke='url%28%23e%29' stroke-width='0.74'/%3E%3Cellipse cx='83.43' cy='33.47' rx='1.38' ry='0.97' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 83.43 33.47%29'/%3E%3Cellipse cx='85.73' cy='38.41' rx='1.93' ry='0.68' fill='%23fff' fill-opacity='.3'/%3E%3Cellipse cx='153.7' cy='18.9' rx='2.6' ry='2.55' fill='url%28%23d%29'/%3E%3Cellipse cx='153.7' cy='19.10' rx='2.55' ry='2.50' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='152.87' cy='17.83' rx='0.78' ry='0.51' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 152.87 17.83%29'/%3E%3Cellipse cx='154.17' cy='20.43' rx='1.09' ry='0.36' fill='%23fff' fill-opacity='.3'/%3E%3Cellipse cx='63.3' cy='3.7' rx='1.8' ry='1.68' fill='url%28%23d%29'/%3E%3Cellipse cx='63.3' cy='3.83' rx='1.76' ry='1.64' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='62.72' cy='3.00' rx='0.54' ry='0.34' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 62.72 3.00%29'/%3E%3Cellipse cx='139.9' cy='4.2' rx='2.6' ry='2.48' fill='url%28%23d%29'/%3E%3Cellipse cx='139.9' cy='4.40' rx='2.55' ry='2.43' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='139.07' cy='3.16' rx='0.78' ry='0.50' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 139.07 3.16%29'/%3E%3Cellipse cx='140.37' cy='5.69' rx='1.09' ry='0.35' fill='%23fff' fill-opacity='.3'/%3E%3Cellipse cx='84.4' cy='25.3' rx='2.2' ry='2.25' fill='url%28%23d%29'/%3E%3Cellipse cx='84.4' cy='25.48' rx='2.16' ry='2.20' fill='none' stroke='url%28%23e%29' stroke-width='0.50'/%3E%3Cellipse cx='83.70' cy='24.36' rx='0.66' ry='0.45' fill='%23fff' fill-opacity='.85' transform='rotate%28-25 83.70 24.36%29'/%3E%3C/svg%3E");--wet-text-shadow:0 1px 2px rgba(0,0,0,.55)}
:root[data-theme="light"]{--wet-text-shadow:0 1px 1px rgba(255,255,255,.8)}
