:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --accent: #2f5d50;
  --border: #e6e6e6;
  --radius: 10px;
  --max-width: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1b1e23;
    --text: #eaeaea;
    --text-muted: #a3a3a3;
    --accent: #7fd6b8;
    --border: #2a2d33;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

nav .brand {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

nav .links {
  display: flex;
  gap: 24px;
}

nav .links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav .links a:hover,
nav .links a.active {
  color: var(--accent);
}

main {
  flex: 1 0 auto;
  padding: 56px 0 96px;
}

h1 {
  font-size: 2rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.3rem;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

h2:first-of-type {
  margin-top: 40px;
}

p.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 24px;
}

p {
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.hero {
  text-align: center;
}

.hero .tagline {
  margin-left: auto;
  margin-right: auto;
}

.hero p:not(.tagline) {
  max-width: 620px;
  margin: 0 auto 32px;
}

.avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #6fb3a0);
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

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

ul.bullets {
  margin: 6px 0 0;
  padding-left: 20px;
}

ul.bullets li {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.project-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.project-card .project-tag {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-card ul.bullets {
  margin-top: 10px;
}

.project-card .project-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.project-card .project-link:hover {
  text-decoration: underline;
}

.blog-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.blog-hero h2 {
  margin-top: 0;
}

.blog-hero .btn {
  display: inline-block;
  margin-top: 20px;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.blog-hero .btn:hover {
  opacity: 0.9;
}

footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
