/* fonts are served from the site itself (Latin subset): no third party, and
   "block" keeps the text hidden for a moment instead of flashing a system font */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: block;
  src: url(/fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: block;
  src: url(/fonts/open-sans-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/fonts/jetbrains-mono-latin-400.woff2) format("woff2");
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #7a7a7a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  /* a web font, so phones and PCs render the same letters */
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px 84px; /* room for the fixed contact line at the bottom */
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.sound {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 10;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #8a8a8a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, transform .15s ease;
}

.sound svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.sound .wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.sound:focus-visible { color: #d4d4d4; outline: none; }
.sound:active { transform: scale(.92); }

/* hover only on devices that really hover, or a tap leaves it stuck on phones */
@media (hover: hover) {
  .sound:hover { color: #d4d4d4; }
}

.sound[data-on="true"] .ico-off,
.sound[data-on="false"] .ico-on { display: none; }

.logo {
  font-weight: 700;
  font-size: clamp(56px, 13vw, 132px);
  line-height: 1;
  letter-spacing: -.03em;
  word-spacing: -.03em;
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

.tld {
  margin-top: .05em;
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1;
  animation: rise 1.6s .35s cubic-bezier(.2, .7, .2, 1) both;
}

.kinds {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  animation: rise 1.6s .65s cubic-bezier(.2, .7, .2, 1) both;
}

.kinds li {
  padding: 7px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: #bdbdbd;
  font: 400 13px/1 "JetBrains Mono", ui-monospace, monospace;
}

.kinds li::before { content: "#"; color: var(--muted); margin-right: 2px; }

.cta {
  margin-top: 32px;
  padding: 13px 30px;
  border: 1px solid #bdbdbd;
  border-radius: 999px;
  color: var(--fg);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
  animation: rise 1.6s .95s cubic-bezier(.2, .7, .2, 1) both;
}

.cta:focus-visible {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
  outline: none;
}

@media (hover: hover) {
  .cta:hover {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
  }
}

.cta:active { transform: scale(.97); }

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  padding: 0 16px;
  text-align: center;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  animation: rise 1.6s 1.25s cubic-bezier(.2, .7, .2, 1) both;
}

.foot a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: #555;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}

.foot a:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

@media (hover: hover) {
  .foot a:hover { text-decoration-color: var(--fg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
