:root {
  --bg: #f4f1ec;
  --card: #ffffff;
  --text: #1c1b19;
  --muted: #6b675f;
  --accent: #2f5d50;
  --accent-text: #ffffff;
  --border: #e4dfd6;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --card: #1e1d1b;
    --text: #f0ede7;
    --muted: #a19c92;
    --accent: #7fbfa8;
    --accent-text: #0f1a16;
    --border: #2e2c29;
  }
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 24px 24px;
  animation: rise 0.5s ease-out both;
}

/* Profile */
.profile { text-align: center; }

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 2px var(--accent);
  background: var(--border);
}

h1 { font-size: 1.6rem; margin-top: 16px; }

.tagline { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

.intro { color: var(--muted); margin: 12px auto 0; max-width: 38ch; }

/* Links */
.links { display: grid; gap: 12px; margin-top: 28px; }

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.link svg { width: 20px; height: 20px; fill: currentColor; }

.link:hover { transform: translateY(-2px); opacity: 0.92; }
.link:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

/* Showcase */
.showcase { margin-top: 32px; }

.showcase h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--border);
  transition: transform 0.2s ease;
}

.gallery img:hover { transform: scale(1.03); }

/* Footer */
.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.share {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 12px;
  cursor: pointer;
}

.share:hover { border-color: var(--accent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
