:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #15181d;
  --muted: #5b6472;
  --accent: #2f6df6;
  --accent-soft: #e7eeff;
  --border: #e3e6eb;
  --radius: 14px;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --bg-alt: #161a21;
    --text: #e9ecf1;
    --muted: #a0a9b8;
    --accent: #6f9bff;
    --accent-soft: #1c2740;
    --border: #252b35;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
}
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(900px 320px at 15% -10%, var(--accent-soft), transparent 70%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 320px; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-alt); }

.hero-avatar { flex: 0 0 auto; margin-inline: auto; }

.avatar-ring {
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #a855f7);
}

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  margin: 0 0 28px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 40px;
}
.about-grid p { margin: 0 0 12px; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
}

.fact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--bg);
}
.fact dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.fact dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.skills li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .92rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
  transition: transform .14s ease, border-color .14s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .96rem; }
.card .tags {
  margin: 0;
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .02em;
}

.contact p { color: var(--muted); margin-top: 0; }

.contact-email {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 10px 0 22px !important;
}
.contact-email a { text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }

.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.links a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.links a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .avatar { width: 128px; height: 128px; font-size: 2rem; }
}
