:root {
  --bg: #0b0f14;
  --bg2: #0f151d;
  --card: #131b25;
  --card2: #18222e;
  --text: #e6edf3;
  --muted: #8b98a9;
  --line: #1f2a37;
  --accent: #4fd1c5;
  --accent2: #7c6cf0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at top, var(--bg2), var(--bg));
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  padding: 48px 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

main {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0b0f14;
  box-shadow: 0 10px 50px rgba(124, 108, 240, 0.35);
  margin-bottom: 18px;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
  text-align: center;
}

p.tagline {
  color: var(--muted);
  margin: 0 0 32px;
  text-align: center;
  font-size: 0.95rem;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Reserves roughly the height of the current link list so the async
     fetch-and-render in script.js doesn't shift the page (CLS). Bump this
     if the list in links.json grows past ~12 entries. */
  min-height: 760px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--card2);
}

.link-card .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card .label {
  font-weight: 600;
  font-size: 1rem;
}

footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

footer a {
  color: var(--accent);
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}
