:root {
  --bg: #050504;
  --text: #f7e39c;
  --text-muted: #9a8b4a;
  --sand: #f7e39c;
  --visor: #00e205;
  --hat: #c02010;
  --steel: #c8c8d4;
  --max: 460px;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 42% at 50% 12%, rgba(247, 227, 156, 0.18), transparent 62%),
    radial-gradient(ellipse 36% 24% at 50% 16%, rgba(0, 226, 5, 0.12), transparent 58%),
    radial-gradient(ellipse 28% 18% at 62% 10%, rgba(192, 32, 16, 0.1), transparent 55%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 52px 20px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.hero-pfp {
  width: min(44vw, 172px);
  height: min(44vw, 172px);
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: var(--sand);
  margin-bottom: 22px;
  clip-path: polygon(
    8px 0, calc(100% - 8px) 0, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%,
    0 calc(100% - 8px), 0 8px
  );
  box-shadow:
    0 0 0 1px rgba(247, 227, 156, 0.45),
    0 0 36px rgba(0, 226, 5, 0.18),
    0 0 64px rgba(247, 227, 156, 0.12);
}

.hero-name {
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 6px;
}

.hero-handle {
  color: var(--visor);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(0, 226, 5, 0.35);
}

.hero-handle:hover {
  color: #7cff7a;
}

.hero-copy {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 22rem;
  color: var(--sand);
}

.links {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.link-card {
  --tone: var(--visor);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 118px;
  padding: 22px 12px 18px;
  text-decoration: none;
  color: var(--tone);
  background:
    linear-gradient(180deg, rgba(247, 227, 156, 0.06), rgba(0, 0, 0, 0.2)),
    #0b0b0a;
  clip-path: polygon(
    10px 0, calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%,
    0 calc(100% - 10px), 0 10px
  );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--tone) 38%, transparent),
    0 0 0 1px rgba(247, 227, 156, 0.12);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--tone) 18%, transparent) 50%, transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0 2px,
      rgba(0, 0, 0, 0.18) 2px 3px
    );
  opacity: 0.45;
  z-index: -1;
}

.link-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--tone);
  box-shadow: 0 0 12px var(--tone);
}

.link-card[data-tone="visor"] { --tone: var(--visor); }
.link-card[data-tone="sand"] { --tone: var(--sand); }
.link-card[data-tone="hat"] { --tone: #e03420; }
.link-card[data-tone="steel"] { --tone: var(--steel); }

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px var(--tone),
    0 0 0 1px color-mix(in srgb, var(--tone) 50%, transparent),
    0 12px 32px color-mix(in srgb, var(--tone) 22%, transparent);
  outline: none;
}

.link-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: inherit;
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  clip-path: polygon(
    6px 0, calc(100% - 6px) 0, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%,
    0 calc(100% - 6px), 0 6px
  );
}

.link-icon svg {
  display: block;
}

.link-label {
  font-family: Orbitron, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .page {
    padding-top: 40px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .link-card {
    min-height: 108px;
  }

  .link-label {
    font-size: 0.64rem;
  }
}
