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

:root {
  --bg: #15171a;
  --bg-soft: #1b1e22;
  --fg: #f2f3f4;
  --muted: #8b9299;
  --muted-dim: #5c636b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.22);
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.055);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% -10%, #1c2025 0%, var(--bg) 55%) fixed;
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

/* skip link (acessibilidade) */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 16px;
  top: 16px;
}

#container {
  width: 100%;
  max-width: 460px;
  padding: 72px 24px 48px;
  display: flex;
  flex-direction: column;
}

/* ---------- Profile ---------- */
#profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#profile h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tagline {
  color: #b3b9bf;
  font-size: 15px;
}

.eyebrow {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ---------- Links ---------- */
#links {
  margin-top: 44px;
}

#links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#links a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "tag   arrow"
    "label arrow"
    "meta  arrow";
  align-items: center;
  column-gap: 12px;

  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.link-tag {
  grid-area: tag;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.link-label {
  grid-area: label;
  font-weight: 500;
  font-size: 15px;
}

.status {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.link-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 2px;
}

.arrow {
  grid-area: arrow;
  color: var(--muted-dim);
  font-size: 18px;
  transition: transform 0.18s ease, color 0.18s ease;
}

#links a:hover,
#links a:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  outline: none;
}

#links a:hover .arrow,
#links a:focus-visible .arrow {
  transform: translateX(4px);
  color: var(--fg);
}

#links a:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line-strong);
}

/* ---------- Footer / social ---------- */
footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#social {
  display: flex;
  gap: 8px;
}

#social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}

#social a:hover,
#social a:focus-visible {
  color: var(--fg);
  background: var(--surface-hover);
  outline: none;
}

#social a:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line-strong);
}

.copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
}

/* ---------- Load animation ---------- */
#profile,
#links li,
footer {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.5s ease forwards;
}
#profile { animation-delay: 0.05s; }
#links li:nth-child(1) { animation-delay: 0.12s; }
#links li:nth-child(2) { animation-delay: 0.18s; }
#links li:nth-child(3) { animation-delay: 0.24s; }
#links li:nth-child(4) { animation-delay: 0.30s; }
#links li:nth-child(5) { animation-delay: 0.36s; }
footer { animation-delay: 0.28s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #profile,
  #links li,
  footer {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .arrow,
  #links a,
  #social a {
    transition: none;
  }
}

@media (max-width: 400px) {
  #container {
    padding: 56px 18px 40px;
  }
}
