:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --surface: #171412;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --line: #292524;
    --accent: #2dd4bf;
    --accent-soft: #134e4a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.95rem;
}
.top .brand { font-weight: 600; color: var(--text); }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 48px 0 40px;
}
.hero img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.hero h1 { margin: 0; font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.02em; }
.role { margin: 6px 0 0; color: var(--accent); font-weight: 500; }
.meta { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 500;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Sections */
section { padding: 36px 0; border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
p { margin: 0 0 14px; }

/* Stack */
.stack { display: grid; gap: 12px; margin: 0; }
.stack div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.stack dt { color: var(--muted); font-size: 0.92rem; }
.stack dd { margin: 0; }

/* Projects */
.projects { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.project h3 { margin: 0 0 4px; font-size: 1.05rem; }
.project p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.links { display: flex; gap: 16px; font-size: 0.9rem; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

@media (max-width: 560px) {
  .hero { flex-direction: column; text-align: center; padding-top: 24px; }
  .actions { justify-content: center; }
  .stack div { grid-template-columns: 1fr; gap: 0; }
  .top nav { gap: 14px; }
}
