/* ---------- Design tokens ---------- */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --bg: #0d0d10;
  --surface: #16161a;
  --text: #f4f4f5;
  --text-muted: #9ca3af;
  --border: #27272a;
  --accent: #818cf8;
  --accent-soft: rgba(129, 140, 248, 0.12);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- Layout ---------- */
.container {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ---------- Hero ---------- */
.hero__eyebrow {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero__name {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero__role {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
}

.accent {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- About ---------- */
.about p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.link__arrow {
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.link:hover .link__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}

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