:root {
  color-scheme: dark;
  --bg: #111214;
  --surface: #181a1e;
  --surface-strong: #202329;
  --text: #f5f6f7;
  --muted: #a7adb7;
  --line: #30343b;
  --brand: #ffd900;
  --brand-ink: #171300;
  --accent: #5ed0c0;
  --danger: #ff776d;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.topbar,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 100px;
  aspect-ratio: 1436 / 814;
  flex: 0 0 100px;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  width: 133.7%;
  height: auto;
  left: -16.4%;
  top: -77%;
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: 0;
}

.brand-name b {
  color: var(--brand);
}

.service-state {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.state-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #69707a;
}

.service-state[data-state="online"] {
  color: #b9f2e9;
}

.service-state[data-state="online"] .state-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 208, 192, .12);
}

.service-state[data-state="offline"] {
  color: #ffc0bb;
}

.service-state[data-state="offline"] .state-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 119, 109, .12);
}

.hero {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 780;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.primary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 760;
  text-decoration: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ffe53c;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.facts article {
  min-height: 240px;
  padding: 42px 32px 44px 0;
}

.facts article + article {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.fact-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.facts h2 {
  margin: 24px 0 12px;
  font-size: 21px;
  letter-spacing: 0;
}

.facts p,
.document p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer a,
.back-link,
.document a {
  color: var(--muted);
  text-underline-offset: 4px;
}

footer a:hover,
footer a:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.document a:hover,
.document a:focus-visible {
  color: var(--text);
}

.back-link {
  font-size: 14px;
}

.document {
  max-width: 840px;
  padding: 76px 0 90px;
}

.document h1 {
  font-size: clamp(36px, 6vw, 60px);
}

.document-date {
  margin-top: 18px;
  font-size: 14px;
}

.document section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.document h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    min-height: 68px;
  }

  .brand-mark {
    width: 82px;
    flex-basis: 82px;
  }

  .service-state {
    font-size: 0;
  }

  .hero {
    min-height: 440px;
    padding: 60px 0 52px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts article,
  .facts article + article {
    min-height: 0;
    padding: 32px 0;
    border-left: 0;
  }

  .facts article + article {
    border-top: 1px solid var(--line);
  }

  footer {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  footer nav {
    gap: 14px 18px;
  }

  .document {
    padding: 58px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
