@font-face {
  font-family: "Ioskeley Mono NL";
  src: url("../fonts/IoskeleyMonoNL-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Ioskeley Mono NL";
  src: url("../fonts/IoskeleyMonoNL-Bold.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Ioskeley Mono NL";
  src: url("../fonts/IoskeleyMonoNL-Italic.woff2") format("woff2");
  font-style: italic;
}

:root {
  --bg: rgb(28, 8, 66);
  --fg: rgb(220, 220, 220);
  --accent: rgb(180, 253, 190);
  --accent-soft: rgba(180, 253, 190, 0.08);
  --line: rgba(180, 253, 190, 0.14);
  --line-strong: rgba(180, 253, 190, 0.45);
  --shadow: rgb(10, 3, 24);
}

html {
  background:
    repeating-linear-gradient(
      0deg,
      rgb(0 0 0 / 0.064) 0 1px,
      transparent 1px 3px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.28' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed;
  color: rgb(255, 255, 255);
  scrollbar-width: thin;
  scrollbar-color: rgb(116, 150, 138) rgba(28, 8, 66, 0.55);
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Ioskeley Mono NL", ui-monospace, monospace;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 62ch;
  padding: 2rem;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--accent);
  color: var(--bg);
  text-shadow: none;
}

h1,
h2 {
  line-height: 1.2;
  text-wrap: balance;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main {
  padding: 3rem 0 4rem;
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.nav {
  display: flex;
  gap: 2ch;
  list-style: none;
  margin: 0;
  padding: 0;
}

#socials {
  gap: 0.25em;

  ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  a {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;

    &:hover .icon {
      opacity: 1;
    }
  }
}

.icon {
  width: 1.2rem;
  height: 1.2rem;
  background: currentColor;
  opacity: 0.75;
  mask: var(--icon) center / contain no-repeat;
}

.icon-discord {
  --icon: url("../img/discord.svg");
}

.icon-mastodon {
  --icon: url("../img/mastodon.svg");
}

.icon-matrix {
  --icon: url("../img/matrix.svg");
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo-icon {
  width: 2rem;
  aspect-ratio: 211 / 173;
  background: currentColor;
  mask: url("../img/favicon.svg") center / contain no-repeat;
}

.hero {
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

.join {
  margin: 0 0 2.75rem;
}

.join-copy {
  position: relative;
  padding: 0.45em 0.85em;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  text-shadow: none;
  cursor: pointer;

  &:is(:hover, :focus-visible, [data-copied]) {
    color: transparent;
  }

  &::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--accent);
  }

  &:is(:hover, :focus-visible)::after {
    content: "copy";
  }

  &[data-copied]::after {
    content: "copied";
  }
}

#rules {
  margin-top: 3rem;

  ol {
    margin: 0;
    padding-left: 2.5ch;

    li {
      padding-left: 0.75ch;

      & + li {
        margin-top: 0.75em;
      }
    }
  }
}
