@font-face {
  font-family: "Mojang";
  src: url("/assets/fonts/Mojang-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mojang";
  src: url("/assets/fonts/Mojang-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0c0b0b;
  --panel: #100e0e;
  --text: #f1ece5;
  --muted: #a29a92;
  --line: #2a2626;
  --red: #d92b2b;
  --red-bright: #ee3535;
  --font: "Mojang", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: inherit;
}

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

/* ---------- header ---------- */

.site-header {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mark {
  display: block;
  width: 38px;
  height: 38px;
}

.coming-soon {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- stage ---------- */

.stage {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 56px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wordmark {
  margin: 0;
  line-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.wordmark img {
  display: block;
  width: min(84vw, 820px, 90svh);
  height: auto;
}

/* ---------- address ---------- */

.address-block {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label {
  margin: 0;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.address-block .label {
  margin-bottom: 10px;
}

.address {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 54px;
  padding: 0 8px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.address code {
  font-family: var(--font);
  font-size: 19px;
  line-height: 1;
  color: var(--text);
}

#copy-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease;
}

#copy-btn:hover,
#copy-btn[data-copied="true"] {
  color: var(--red-bright);
}

#copy-btn .icon-check {
  display: none;
}

#copy-btn[data-copied="true"] .icon-copy {
  display: none;
}

#copy-btn[data-copied="true"] .icon-check {
  display: block;
}

/* ---------- socials ---------- */

.socials {
  margin-top: 40px;
}

.social-links {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.social-links li {
  display: flex;
  align-items: center;
}

.social-links li + li::before {
  content: "/";
  margin: 0 16px;
  color: var(--line);
}

.social-links a {
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.social-links a:hover {
  color: var(--red-bright);
}

/* ---------- utility ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--text);
  text-decoration-color: var(--red);
}

@media (max-width: 560px) {
  .site-header {
    padding: 18px 20px 0;
  }

  .mark {
    width: 34px;
    height: 34px;
  }

  .coming-soon {
    font-size: 13px;
  }

  .stage {
    padding-left: 20px;
    padding-right: 20px;
  }

  .wordmark img {
    width: min(100%, 90svh);
  }

  .address-block {
    margin-top: 30px;
  }

  .address {
    height: 50px;
    padding-left: 18px;
  }

  .address code {
    font-size: 17px;
  }

  #copy-btn {
    width: 36px;
    height: 36px;
  }

  .socials {
    margin-top: 34px;
  }

  .social-links {
    row-gap: 12px;
  }

  .social-links li + li::before {
    margin: 0 12px;
  }

  footer {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 11px;
  }
}
