@font-face {
  font-family: 'Tektur';
  src: url('/assets/fonts/tektur-cyrillic-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Tektur';
  src: url('/assets/fonts/tektur-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 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: 'Parsec Interface';
  src: url('/assets/landing/parsec-interface.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070e17;
  --surface: #0b1622;
  --chrome: #080e17;
  --line: #233744;
  --text: #eff5fa;
  --copy: #cbd8e4;
  --muted: #afbfcd;
  --accent: #85e7ee;
  --display-font: 'Tektur', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --site-width: 1200px;
  font-family:
    'Parsec Interface',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
}

p {
  margin: 0 0 1.25em;
  color: var(--copy);
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-wrap {
  width: min(var(--site-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 2;
  inset: -100px auto auto var(--gutter);
  background: var(--bg);
  padding: 12px;
}

.skip:focus {
  top: 12px;
}

.site-header,
.site-footer {
  background: var(--chrome);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 74px;
  gap: 5px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 750 20px/1.12 var(--display-font);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(14px, 2.4vw, 36px);
}

.site-nav a,
.language {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font: 560 14px/1.25 var(--display-font);
}

.site-nav a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}

.language {
  padding-inline: 4px;
}

.site-footer {
  margin-block-start: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-bar,
.footer-links,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bar {
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 26px;
}

.footer-links,
.footer-contact {
  gap: 0 18px;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.document-page {
  --site-width: 880px;
  padding-block: clamp(38px, 6vw, 80px) clamp(58px, 7vw, 92px);
}

.document-heading {
  position: relative;
  display: grid;
  gap: 5px;
  margin-block-end: clamp(25px, 4vw, 38px);
  padding: clamp(14px, 3vw, 29px) clamp(12px, 3.6vw, 38px);
  border-block: 1px solid var(--line);
  border-inline-start: 2px solid var(--accent);
  background:
    linear-gradient(90deg, #102734, #0b1622bb),
    linear-gradient(90deg, #45687736 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(#45687736 1px, transparent 1px) 0 0 / 24px 24px,
    var(--surface);
}

.document-heading::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.document-heading h1 {
  margin: 0;
  font-size: clamp(23px, 6.8vw, 60px);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.document-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  color: var(--muted);
  font: 560 14px/1.35 var(--display-font);
}

.document-context a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.document-body {
  max-width: 74ch;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.document-body h2 {
  margin: 30px 0 11px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 640;
  line-height: 1.25;
}

.document-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.document-body strong {
  color: var(--text);
}

.document-body p:last-child {
  margin-bottom: 0;
}

.document-lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.document-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 34px;
}

.document-platform,
.document-home {
  border: 1px solid var(--line);
  text-decoration: none;
}

.document-platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  min-height: 108px;
  padding: clamp(16px, 2.6vw, 25px);
  background: linear-gradient(145deg, #102334, var(--surface));
}

.document-platform:hover,
.document-home:hover {
  border-color: var(--accent);
}

.document-platform-name {
  color: var(--text);
  font: 640 26px/1.15 var(--display-font);
}

.document-platform small {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-size: 14px;
}

.document-platform-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--accent);
  font-size: 22px;
}

.document-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
  background: var(--surface);
  font: 600 15px/1.3 var(--display-font);
}

@media (max-width: 700px) {
  .header-bar {
    grid-template-columns: 1fr auto;
    padding-block: 13px 3px;
    gap: 5px 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 0 6px;
  }

  .site-nav a {
    font-size: clamp(12px, 3.4vw, 14px);
  }

  .document-cards {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    gap: 4px 20px;
  }
}
