:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --border: #21262d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #4c8dff;
  --accent-dim: #3b7ae0;
  --link: #58a6ff;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-soft: #f6f8fa;
    --border: #d0d7de;
    --text: #1f2328;
    --muted: #59636e;
    --accent: #0969da;
    --accent-dim: #0a5cc0;
    --link: #0969da;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 32px 56px;
}

h1 {
  font-size: clamp(3rem, 9vw, 4.75rem);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.surname { color: var(--accent); }

.role {
  font-family: var(--mono);
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin: 0 0 36px;
}

.bio {
  color: var(--text);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 44px;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

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

.location {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.infra-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  transition: color 0.12s ease;
}
.infra-badge:hover { color: var(--text); }
.infra-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

@media (max-width: 560px) {
  .hero { padding-top: 56px; }
  footer { flex-direction: column; align-items: flex-start; }
}
