@font-face { font-family: 'Merriweather'; src: url('../fonts/merriweather-latin.woff2') format('woff2'); font-weight: 300 900; font-style: normal; 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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Merriweather'; src: url('../fonts/merriweather-cyrillic.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD; }
@font-face { font-family: 'Merriweather'; src: url('../fonts/merriweather-italic-latin.woff2') format('woff2'); font-weight: 300 900; font-style: italic; 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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Merriweather'; src: url('../fonts/merriweather-italic-cyrillic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest-latin.woff2') format('woff2'); 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+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest-cyrillic.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD; }
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-cyrillic.woff2') format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JBMono'; src: url('../fonts/jbmono-latin.woff2') format('woff2'); font-weight: 400 600; font-display: swap;
  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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JBMono'; src: url('../fonts/jbmono-cyrillic.woff2') format('woff2'); font-weight: 400 600; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --void: #08090a;
  --void-deep: #040505;
  --panel: #141517;
  --panel-hi: #1f2022;
  --glass: rgba(20, 21, 23, .72);
  --glass-hi: rgba(36, 37, 40, .82);
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);

  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --text: #f3f3f5;
  --dim: #c7c8cb;
  --faint: #929396;

  --accent: #eeeff1;
  --on-accent: #121314;
  --orchid: #eeeff1;
  --live: #52ffb6;
  --red: #ff6b91;
  --gold: #ffd470;
  --blue: #65d0ff;

  --display: 'Merriweather', Georgia, serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent-font: 'Unbounded', 'Onest', system-ui, sans-serif;
  --mono: 'JBMono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 4rem);
  --maxw: min(100%, 76rem);
  --radius: 1.4rem;
  --bar-h: 4rem;

  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.05, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: clamp(15px, .45vw + 8.5px, 26px);
  overflow-x: clip;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, ul, ol, h1, h2, h3, h4, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.04;
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: .5rem; }
::selection { background: rgba(238, 239, 241, .22); color: #fff; }
html { scrollbar-color: rgba(255, 255, 255, .18) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; border: 3px solid var(--void); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--panel-hi); border: 1px solid var(--line-strong);
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow { font-size: .85rem; color: var(--faint); }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 var(--gutter);
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar[data-stuck] {
  background: rgba(8, 9, 10, .7);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; flex: none; }
.brand__mark { width: 1.6rem; height: 1.6rem; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }

.topbar__end { display: flex; align-items: center; gap: .5rem; flex: none; }

.langswitch {
  display: inline-flex; padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  font-size: .75rem; font-weight: 600;
}
.langswitch button { min-width: 2.2rem; padding: .3rem .55rem; border-radius: 999px; color: var(--faint); transition: color .2s, background .2s; }
.langswitch button:hover { color: var(--text); }
.langswitch button[aria-pressed="true"] { color: var(--text); background: var(--surface-3); }

.btn, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.6rem; padding: 0 1.1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease-spring), background .2s var(--ease), color .2s, border-color .2s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #ffffff; }
.ghost-btn, .btn--ghost {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ghost-btn:hover, .btn--ghost:hover { background: var(--surface-3); border-color: var(--line-strong); }
.btn:active, .ghost-btn:active { transform: scale(.95); }
.btn--icon { width: 2.6rem; padding: 0; color: var(--dim); background: var(--surface); }
.btn--icon:hover { color: var(--text); background: var(--surface-2); }
.btn svg, .ghost-btn svg { width: 1rem; height: 1rem; flex: none; }

.footer {
  position: relative; z-index: 2;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem;
  padding: 2.2rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.footer__brand { display: flex; align-items: center; gap: .75rem; }
.footer__brand .brand__mark { width: 1.5rem; height: 1.5rem; }
.footer__brand strong { font-family: var(--display); font-weight: 800; }
.footer__brand p { font-size: .82rem; color: var(--faint); }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .86rem; color: var(--dim); }
.footer__links a { padding: .25rem 0; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { grid-column: 1 / -1; font-size: .76rem; color: var(--faint); }

@media (max-width: 720px) {
  .footer { grid-template-columns: 1fr; }
}

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