@font-face {
  font-family: 'Geom Graphic';
  src: url('/fonts/GeomGraphic-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Geom Graphic';
  src: url('/fonts/GeomGraphic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Blinker';
  src: url('/fonts/blinker-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Blinker';
  src: url('/fonts/blinker-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Blinker';
  src: url('/fonts/blinker-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #13111c;
  --sunken: #0e0c16;
  --panel: #1b1828;
  --raise: #252137;
  --line: #2f2a43;
  --line-strong: #463f60;
  --text: #efedf8;
  --muted: #b1abc9;
  --faint: #8e88aa;
  --accent: #33dcff;
  --on-accent: #03161d;
  --discord: #5865f2;
  --display: 'Geom Graphic', 'Arial Black', Arial, sans-serif;
  --body: 'Blinker', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: max(32px, env(safe-area-inset-left, 0px));
}

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

html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}

@media (max-width: 599px) {
  :root {
    --gutter: max(16px, env(safe-area-inset-left, 0px));
  }
  .wrap {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

.top {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: auto;
  height: 20px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: -12px;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  font: 600 14px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms ease;
}

@media (hover: hover) {
  .top nav a:hover {
    color: var(--text);
  }
}

@media (max-width: 480px) {
  .brand img {
    height: 16px;
  }
  .top .wrap {
    gap: 12px;
  }
  .top nav {
    margin-right: -8px;
  }
  .top nav a {
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .top nav .opt {
    display: none;
  }
}

.h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
  letter-spacing: 0.005em;
}

.h1 {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.98;
}

@media (max-width: 360px) {
  .h1 {
    font-size: 30px;
  }
}

main {
  flex: 1;
}

.foot {
  border-top: 1px solid var(--line);
  background: var(--sunken);
  padding-block: 40px max(40px, env(safe-area-inset-bottom, 0px));
}

.foot .wrap {
  display: grid;
  gap: 28px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 0 -10px;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  transition: color 150ms ease;
}

.socials svg {
  width: 22px;
  height: 22px;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 0;
  color: var(--faint);
  font-size: 15px;
}

.partners a,
.legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  color: var(--faint);
  font-size: 15px;
}

@media (hover: hover) {
  .socials a:hover,
  .partners a:hover,
  .legal a:hover {
    color: var(--text);
  }
}

.doc {
  padding-block: clamp(48px, 7vw, 96px);
}

.doc .wrap {
  display: grid;
  gap: 16px;
}

.doc .wrap > * {
  min-width: 0;
}

.doc article {
  max-width: 76ch;
  margin-top: 24px;
  color: #dcd8ec;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.doc article h2 {
  margin: 2.2em 0 0.6em;
  font: 700 22px/1.2 var(--display);
  text-transform: uppercase;
  color: var(--text);
  scroll-margin-top: 24px;
}

.doc article h3 {
  margin: 1.8em 0 0.5em;
  font: 700 18px/1.3 var(--body);
  color: var(--text);
  scroll-margin-top: 24px;
}

.doc article p {
  margin: 0 0 1em;
}

.doc article ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.doc article li {
  margin-bottom: 0.4em;
}

.doc article li::marker {
  color: var(--accent);
}

.doc article a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.doc article strong {
  color: var(--text);
}

.doc .table {
  overflow-x: auto;
  margin: 0 0 1.4em;
}

.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.doc td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.doc tr:first-child td {
  background: var(--panel);
}

.doc .updated {
  margin: 0;
  color: var(--faint);
}
