@font-face {
  font-display: swap;
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 100 900;
  src: url("./assets/Orbitron-VariableFont_wght.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #fff;
  color: #1b1b1d;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(32px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
}

.masthead {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-inline: auto;
  max-width: 1312px;
  width: 100%;
}

.logo {
  display: block;
  filter: brightness(0);
  height: auto;
  width: 68px;
}

.status {
  color: #76767c;
  font-size: 12px;
  letter-spacing: 0.025em;
  line-height: 1.6;
  margin: 0;
}

.hero {
  align-self: center;
  justify-self: center;
  padding: 64px 0 72px;
  text-align: center;
  width: 100%;
}

h1 {
  margin: 0;
}

.wordmark {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.community {
  display: block;
  font-size: clamp(26px, 3.3vw, 40px);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-top: 18px;
}

.description {
  color: #76767c;
  font-size: 14px;
  letter-spacing: 0.025em;
  line-height: 1.7;
  margin: 18px 0 0;
}

.entry {
  margin: 44px 0 0;
}

.code {
  display: block;
  height: auto;
  margin-inline: auto;
  max-width: 100%;
  width: 232px;
}

figcaption {
  color: #6b6b71;
  font-size: 12px;
  letter-spacing: 0.015em;
  line-height: 1.7;
  margin-top: 22px;
}

.code-unavailable {
  align-content: center;
  color: #76767c;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 auto;
  min-height: 232px;
  max-width: 232px;
}

.footer nav {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: center;
}

.footer a {
  color: #76767c;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.5;
  min-height: 44px;
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer a:hover {
  color: #1b1b1d;
  text-decoration: underline;
}

.footer a:focus-visible {
  color: #1b1b1d;
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .page {
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }

  .logo {
    width: 56px;
  }

  .status {
    font-size: 11px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .community {
    margin-top: 16px;
  }

  .description {
    font-size: 13px;
    margin-top: 14px;
  }

  .entry {
    margin-top: 36px;
  }

  .code {
    width: 208px;
  }

  .code-unavailable {
    min-height: 208px;
  }

  figcaption {
    margin-top: 20px;
  }

  .footer nav {
    gap: 24px;
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  .hero {
    padding: 28px 0 30px;
  }

  .wordmark {
    font-size: 36px;
  }

  .community {
    margin-top: 12px;
  }

  .entry {
    margin-top: 28px;
  }

  .code {
    width: 192px;
  }

  .code-unavailable {
    min-height: 192px;
  }
}
