:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --separator: rgba(60, 60, 67, 0.12);
  --accent: #0071e3;
  --icon-bg: #f2f2f7;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989d;
    --separator: rgba(84, 84, 88, 0.6);
    --accent: #2997ff;
    --icon-bg: #2c2c2e;
    --shadow: none;
  }
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.47;
}

main {
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: fade-in 0.6s ease-out both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

/* Profile */
.avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #a1a1a6, #6e6e73);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.subtitle {
  margin-top: 6px;
  font-size: 19px;
  color: var(--muted);
}

/* Inset grouped list (iOS Settings style) */
.list {
  margin-top: 36px;
  list-style: none;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.list a:hover { background: var(--icon-bg); }
.list a:active { opacity: 0.7; }

.list li + li a { position: relative; }
.list li + li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 62px;
  right: 0;
  border-top: 0.5px solid var(--separator);
}

.icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
}
.icon svg { width: 18px; height: 18px; }
.icon.linkedin { background: #0a66c2; }
.icon.mail     { background: #1e90ff; }
.icon.phone    { background: #34c759; }

.label { flex: 1; min-width: 0; }
.label small { display: block; font-size: 13px; color: var(--muted); }
.label span  { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chevron { flex: none; color: var(--muted); opacity: 0.6; }

/* Home */
.links {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 17px;
}
.links a { color: var(--accent); text-decoration: none; }
.links a:hover { text-decoration: underline; }

footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
}
