:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --ink: #0c1a33;
  --muted: #4a587a;
  --line: #c9d1e2;
  --blue: #1747b0;
  --yellow: #f5d90a;
  --on-yellow: #0c1a33;
  --on-blue: #ffffff;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1325;
    --surface: #101c36;
    --ink: #eef2fb;
    --muted: #9fb0d4;
    --line: #243456;
    --blue: #2f63d6
  }
}

:root[data-theme="dark"] {
  --bg: #0a1325;
  --surface: #101c36;
  --ink: #eef2fb;
  --muted: #9fb0d4;
  --line: #243456;
  --blue: #2f63d6
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body)
}

a {
  color: inherit
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px
}

.batt {
  height: 48px;
  background: conic-gradient(from 90deg, var(--blue) 25%, var(--yellow) 0 50%, var(--blue) 0 75%, var(--yellow) 0) 0 0/48px 48px
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0
}

.logo {
  font: 800 28px/1 var(--head);
  letter-spacing: .04em;
  text-decoration: none
}

.logo span {
  color: var(--blue)
}

nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500
}

nav a {
  text-decoration: none
}

nav ul a:hover {
  text-decoration: underline
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  font: 700 20px/1 var(--head);
  letter-spacing: .03em;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 4px
}

.btn.main {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow)
}

.btn.main:hover {
  filter: brightness(.93)
}

.btn.alt:hover {
  background: var(--ink);
  color: var(--bg)
}

.hero {
  padding: 64px 0 72px
}

.hero h1 {
  font: 800 clamp(64px, 15vw, 168px)/.85 var(--head);
  margin: 0 0 24px;
  letter-spacing: .01em
}

.hero h1 b {
  color: var(--blue);
  font-weight: 800
}

.hero p {
  max-width: 34em;
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 30px
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.status {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 2px solid var(--ink);
  margin-top: 44px;
  border-radius: 4px;
  background: var(--surface)
}

.status div {
  flex: 1 1 150px;
  padding: 14px 18px;
  border-right: 1px solid var(--line)
}

.status div:last-child {
  border: 0
}

.status small {
  display: block;
  color: var(--muted);
  font-size: 14px
}

.status strong {
  font: 700 26px/1.1 var(--head)
}

section {
  padding: 64px 0
}

h2 {
  font: 800 clamp(36px, 6vw, 56px)/1 var(--head);
  margin: 0 0 12px
}

.lead {
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 32px
}

.depts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px
}

.dept {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 10px solid var(--c);
  padding: 20px 22px;
  border-radius: 4px
}

.dept h3 {
  font: 700 28px/1 var(--head);
  margin: 0 0 8px
}

.dept p {
  margin: 0;
  color: var(--muted);
  font-size: 16px
}

.rules {
  background: var(--surface);
  border-block: 1px solid var(--line)
}

ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: r;
  max-width: 44em
}

ol li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line)
}

ol li::before {
  content: counter(r);
  font: 800 32px/1 var(--head);
  color: var(--blue)
}

ol b {
  display: block;
  font-weight: 600
}

ol span {
  color: var(--muted);
  font-size: 16px
}

.join {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px
}

.step {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--surface)
}

.step h3 {
  font: 700 26px/1 var(--head);
  margin: 0 0 8px
}

.step p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px
}

footer {
  padding: 0 0 40px
}

footer .wrap {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 15px
}

@media (max-width:640px) {
  nav ul {
    display: none
  }

  .hero {
    padding: 40px 0 48px
  }

  section {
    padding: 48px 0
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}