/* martinvb.com/home — simple link aggregator */

:root {
  --bg: #ffffff;
  --ink: #2b2b2b;
  --accent: #FF69B4;
  --button-bg: rgba(255, 105, 180, 0.12);
  --button-bg-hover: rgba(255, 105, 180, 0.28);
  --button-border: rgba(255, 105, 180, 0.4);
  --avatar-size: 160px;
  --content-width: 420px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 10vh 20px 8vh;
  display: flex;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: var(--content-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Avatar ------------------------------------------------------------- */

.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;          /* circular mask */
  object-fit: cover;           /* non-square images are cropped, not squashed */
  display: block;
  background: rgba(255, 105, 180, 0.08);
}

/* --- Name / slogan ------------------------------------------------------ */

.name {
  margin: 18px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.slogan {
  margin: 6px 0 32px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* --- Links -------------------------------------------------------------- */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* All buttons fade in together, once, on load. */
  animation: fade-in 450ms ease-out 80ms both;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--button-border);
  border-radius: 12px;
  background: var(--button-bg);
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 150ms ease, transform 150ms ease;
}

.link:hover,
.link:focus-visible {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.link:active { transform: translateY(0); }

.link-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.link-label {
  flex: 1 1 auto;
  text-align: center;
  /* Keep the label optically centred despite the left-hand icon. */
  padding-right: 36px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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