/* Samvara brand foundation v1 (28 Nov 2026). Read brand/BRAND.md before changing anything here.
   One typeface family on every samvara.in site: Geist for all text, Geist Mono for figures, codes and small labels.
   Fonts are self-hosted at /fonts/ (SIL OFL 1.1, see /fonts/OFL.txt). No serif, no handwriting, no Google Fonts.
   Product colours live in each site's own CSS, mapped onto the semantic names documented in BRAND.md. */

@font-face{font-family:"Geist";src:url("/fonts/geist-v19.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Geist Mono";src:url("/fonts/geist-mono-v19.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  /* Type families */
  --sv-font:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --sv-mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;

  /* Type scale: fluid between a 390px phone and a 1440px desktop */
  --sv-display:clamp(44px,3.6vw + 30px,84px);
  --sv-h1:clamp(36px,2.9vw + 25px,68px);
  --sv-h2:clamp(27px,1.45vw + 21px,42px);
  --sv-h3:clamp(19px,.48vw + 17px,24px);
  --sv-h4:18px;
  --sv-text-lg:clamp(17px,.2vw + 16px,19px);
  --sv-text:16px;
  --sv-text-sm:14px;
  --sv-text-xs:12.5px;
  --sv-label:11.5px;

  /* Tracking: tighter as size grows. Labels in mono are opened up. */
  --sv-track-display:-.042em;
  --sv-track-h1:-.036em;
  --sv-track-h2:-.028em;
  --sv-track-h3:-.016em;
  --sv-track-body:-.006em;
  --sv-track-label:.08em;

  /* Line heights */
  --sv-lh-display:1;
  --sv-lh-h1:1.04;
  --sv-lh-h2:1.1;
  --sv-lh-h3:1.25;
  --sv-lh-body:1.6;
  --sv-lh-tight:1.4;

  /* Weights (variable font: use these, nothing else) */
  --sv-w-body:400;
  --sv-w-ui:500;
  --sv-w-strong:600;
  --sv-w-heading:600;

  /* Spacing: 4px base */
  --sv-s1:4px;--sv-s2:8px;--sv-s3:12px;--sv-s4:16px;--sv-s5:24px;--sv-s6:32px;--sv-s7:48px;--sv-s8:64px;--sv-s9:96px;--sv-s10:128px;

  /* Radius */
  --sv-r-sm:6px;--sv-r-md:10px;--sv-r-lg:14px;--sv-r-xl:20px;--sv-r-pill:999px;

  /* Motion */
  --sv-ease:cubic-bezier(.2,.7,.2,1);
  --sv-ease-out:cubic-bezier(.16,1,.3,1);
  --sv-fast:140ms;--sv-med:220ms;--sv-slow:420ms;

  /* Status colours, shared by every product (AA on light paper) */
  --sv-ok:#1f7a4d;--sv-warn:#9a5b00;--sv-error:#b42318;--sv-info:#2a4572;
}

/* Base rendering. Sites opt in by loading this file before their own CSS. */
html{font-family:var(--sv-font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-synthesis-weight:none;font-kerning:normal}
body{font-family:var(--sv-font);letter-spacing:var(--sv-track-body)}
button,input,select,textarea{font:inherit;letter-spacing:inherit}
h1,h2,h3,h4{font-family:var(--sv-font);font-weight:var(--sv-w-heading);text-wrap:balance}
p,li{text-wrap:pretty}
code,kbd,samp,pre{font-family:var(--sv-mono);font-size:.92em;letter-spacing:0}

/* Helpers */
.sv-num{font-variant-numeric:tabular-nums}
.sv-label{font-family:var(--sv-mono);font-size:var(--sv-label);font-weight:var(--sv-w-ui);letter-spacing:var(--sv-track-label);text-transform:uppercase}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
