:root {
  --bg: #fff;
  --surface: #fafafa;
  --surface-hover: #f2f2f2;
  --line: #e7e7e7;
  --line-hover: #d3d3d3;
  --text: #16181d;
  --focus: #a8a8a8;
  --brand-github: #181717;
  --brand-steam: #1b2838;
  --brand-modrinth: #00af5c;
  --radius: 12px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --surface: #0c0c0c;
    --surface-hover: #131313;
    --line: #1e1e1e;
    --line-hover: #303030;
    --text: #ededed;
    --focus: #4a4a4a;
    --brand-github: #e6e6e6;
    --brand-steam: #c7d5e0;
    --brand-modrinth: #1bd96a;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.4 "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

/* only helps light-on-dark; on a white page it thins the text out */
@media (prefers-color-scheme: dark) {
  body { -webkit-font-smoothing: antialiased; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: 480px; }

.name {
  margin: 0 0 28px;
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 700;
  letter-spacing: -.03em;
  text-align: center;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, 1fr);
  grid-auto-flow: column;
  gap: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.link:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: var(--line-hover);
}

.link:active { transform: translateY(-1px); }

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

/* box stays fixed so labels line up; --scale evens out the optical weight */
.icon {
  width: 19px;
  height: 19px;
  flex: none;
  fill: var(--brand, currentColor);
  transform: scale(var(--scale, 1));
}

@media (max-width: 460px) {
  .links {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

@media (hover: none) {
  .link:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
  .link:hover, .link:active { transform: none; }
}
