/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #FFFCF0;
  --text:    #100F0F;
  --muted:   #6F6E69;
  --border:  #E6E4D9;
  --surface: #F2F0E5;
  --radius:  10px;
}

:root.dark {
  --bg:      #100F0F;
  --text:    #CECDC3;
  --muted:   #878580;
  --border:  #282726;
  --surface: #1C1B1A;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Layout ── */
.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avatar-wrapper {
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  display: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--text);
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--bg);
}

.hero h1 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Sections ── */
section h2 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 16px;
}

section p {
  color: var(--text);
  margin-bottom: 10px;
}

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

/* ── Projects ── */
.projects {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.project:first-child { border-top: 1px solid var(--border); }

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.project-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.project-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.project-link:hover { color: var(--text); }

.project p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
}

/* ── Social Links ── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.15s;
}

.social-btn svg, .social-btn i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: flex;
}

.social-btn:hover { border-color: #999; }

/* ── Footer ── */
footer {
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Theme Picker ── */
.theme-picker {
  position: relative;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.theme-btn:hover { border-color: var(--muted); }

.theme-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.theme-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  list-style: none;
  min-width: 110px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 10;
}

.theme-menu.open { display: block; }

.theme-menu li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.theme-menu li svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.theme-menu li:hover { background: var(--surface); color: var(--text); }
.theme-menu li.active { color: var(--text); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .container { padding: 40px 20px 72px; gap: 36px; }
}
