/* ==========================================================================
   D-SERV design system — tokens and base element styles.
   Colour tokens are defined per theme in themes.css; everything here is
   theme-independent (layout, type, shape, depth, motion).
   ========================================================================== */
/* Text: Exo 2 (variable, 100-900; Latin + Cyrillic). Headings: Chakra Petch (600/700; Latin).
   Both are self-hosted under the SIL Open Font License (see OFL.txt beside the files). */
@font-face{font-family:"Exo 2";src:url("/assets/fonts/exo-2/exo-2-latin-wght-normal.woff2") format("woff2");font-style:normal;font-weight:100 900;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:"Exo 2";src:url("/assets/fonts/exo-2/exo-2-latin-ext-wght-normal.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Exo 2";src:url("/assets/fonts/exo-2/exo-2-cyrillic-wght-normal.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Exo 2";src:url("/assets/fonts/exo-2/exo-2-cyrillic-ext-wght-normal.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Chakra Petch";src:url("/assets/fonts/chakra-petch/chakra-petch-latin-600-normal.woff2") format("woff2");font-style:normal;font-weight:600;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:"Chakra Petch";src:url("/assets/fonts/chakra-petch/chakra-petch-latin-ext-600-normal.woff2") format("woff2");font-style:normal;font-weight:600;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Chakra Petch";src:url("/assets/fonts/chakra-petch/chakra-petch-latin-700-normal.woff2") format("woff2");font-style:normal;font-weight:700;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:"Chakra Petch";src:url("/assets/fonts/chakra-petch/chakra-petch-latin-ext-700-normal.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  color-scheme:dark;

  /* Layout */
  --w-wide:1240px;          /* marketing + catalogue */
  --w-content:1080px;       /* product, cart, account */
  --w-narrow:760px;         /* reading, auth */
  --gutter:clamp(16px,4vw,32px);
  --section:clamp(56px,7vw,96px);
  --section-tight:clamp(40px,5vw,64px);
  --gap-xs:8px;--gap-s:12px;--gap:16px;--gap-m:24px;--gap-l:32px;--gap-xl:48px;

  /* Typography */
  --font:"Exo 2",system-ui,sans-serif;
  --font-display:"Chakra Petch","Exo 2",system-ui,sans-serif;
  --font-mono:ui-monospace,"SFMono-Regular","Cascadia Mono",Consolas,monospace;
  --fs-display:clamp(38px,4.6vw,62px);
  --fs-h1:clamp(30px,3.2vw,42px);
  --fs-h2:clamp(24px,2.3vw,32px);
  --fs-h3:20px;
  --fs-card:18px;
  --fs-body:16px;
  --fs-body-2:14px;
  --fs-meta:13px;
  --fs-label:11px;
  --fs-button:14px;
  --lh-tight:1.12;--lh-head:1.25;--lh-body:1.7;
  --measure:66ch;

  /* Shape */
  --r-xs:3px;--r-s:6px;--r-m:10px;--r-l:14px;
  --control:44px;--control-s:36px;

  /* Depth */
  --shadow-1:0 1px 0 rgb(255 255 255 / .03) inset,0 10px 30px -18px rgb(0 0 0 / .7);
  --shadow-2:0 24px 60px -30px rgb(0 0 0 / .85);

  /* Motion */
  --ease:cubic-bezier(.2,.7,.2,1);
  --t-fast:.18s;--t:.3s;

  --header-h:68px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 24px);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;font-family:var(--font);font-size:var(--fs-body);line-height:var(--lh-body);color:var(--text);background:var(--bg);
  background-image:radial-gradient(1200px 700px at 12% -10%,var(--glow-a),transparent 60%),radial-gradient(1000px 700px at 100% 30%,var(--glow-b),transparent 60%),linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 45%,var(--bg) 100%);
  background-attachment:fixed;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
img{max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure{margin-top:0}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--text);line-height:var(--lh-head);letter-spacing:-.005em;font-weight:600}
h1{font-size:var(--fs-h1);letter-spacing:-.01em;font-weight:700}
h2{font-size:var(--fs-h2)}
h3{font-size:var(--fs-h3);font-weight:600}
p{color:var(--text-2)}
strong{color:var(--text);font-weight:600}
code{font-family:var(--font-mono);font-size:.9em}
::selection{background:var(--accent);color:var(--on-accent)}
:focus-visible{outline:2px solid var(--accent-3);outline-offset:3px;border-radius:var(--r-xs)}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}
.muted{color:var(--text-2)}
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;padding:10px 14px;border-radius:var(--r-s);background:var(--accent);color:var(--on-accent);font-weight:600}
.skip-link:focus{top:12px}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
