*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1c2030;
  --muted: #5b6275;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --border: #e3e6ef;
  --radius: 14px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1220;
    --surface: #171b2c;
    --text: #e9ecf5;
    --muted: #a2a9bf;
    --accent: #8b87ff;
    --accent-soft: #232845;
    --border: #2a3050;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1220;
  --surface: #171b2c;
  --text: #e9ecf5;
  --muted: #a2a9bf;
  --accent: #8b87ff;
  --accent-soft: #232845;
  --border: #2a3050;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Layout ---------- */

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#resume_content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 0;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

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

/* ---------- Content ---------- */

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  word-break: break-word;
}

.contact-list i {
  font-size: 1.25rem;
  color: var(--accent);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 32px var(--gutter);
}

.site-footer p {
  margin: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .actions {
    justify-content: center;
  }

  .chips {
    justify-content: center;
  }

  .card {
    padding: 22px;
  }

  .site-header nav {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
