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

:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --text: #f4f1e8;
  --text-soft: rgb(244 241 232 / 70%);
  --line: rgb(244 241 232 / 20%);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Oxanium", system-ui, sans-serif;
}

.stage {
  display: grid;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 5vw, 2rem);
}

.thread-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.74;
  pointer-events: none;
}

.brand {
  display: grid;
  position: relative;
  z-index: 1;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  justify-items: center;
}

.wordmark {
  display: grid;
  justify-items: end;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(4rem, 16vw, 12rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: center;
}

.wordmark p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transform: translateX(calc(clamp(0.15rem, 0.55vw, 0.35rem) * -1));
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.45rem, 1.4vw, 0.75rem);
  justify-content: center;
}

.social-link {
  display: grid;
  position: relative;
  width: clamp(2.125rem, 5vw, 2.75rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.social-link--pending {
  cursor: default;
}

.social-link--pending:hover {
  border-color: rgb(244 241 232 / 36%);
  background: rgb(244 241 232 / 5%);
  color: var(--text);
  transform: translateY(-1px);
}

.social-link--pending::after {
  content: "";
  position: absolute;
  left: 13%;
  top: 50%;
  width: 74%;
  height: 2px;
  background: currentColor;
  opacity: 0.9;
  transform: rotate(-45deg);
  transform-origin: center;
}

.social-link svg {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 480px) {
  .brand {
    gap: 1.35rem;
  }

  .socials {
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thread-field {
    display: none;
  }
}
