/* Catppuccin-inspired palette */
:root[data-theme="dark"] {
  --bg: #1e1e2e;
  --surface: #313244;
  --text: #cdd6f4;
  --subtext: #a6adc8;
  --accent: #b4befe;
  --accent-hover: #cba6f7;
  --border: #45475a;
}

:root[data-theme="light"] {
  --bg: #eff1f5;
  --surface: #ccd0da;
  --text: #4c4f69;
  --subtext: #6c6f85;
  --accent: #7287fd;
  --accent-hover: #8839ef;
  --border: #bcc0cc;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: clamp(1rem, 0.5rem + 0.5vw, 1.35rem);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 640px;
  width: 100%;
  padding: 2rem;
}

header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 3rem;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

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

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: inline; }
[data-theme="light"] .icon-sun { display: inline; }
[data-theme="light"] .icon-moon { display: none; }

.headshot {
  width: clamp(100px, 10vw, 160px);
  height: clamp(100px, 10vw, 160px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.headshot:hover {
  border-color: var(--accent);
}

h1 {
  font-size: clamp(2rem, 1.5rem + 0.8vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--subtext);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.bio p {
  line-height: 1.7;
  color: var(--subtext);
  margin-bottom: 2.5rem;
}

.links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.links a:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  background: var(--surface);
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .links {
    gap: 0.75rem;
  }
}
