:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --text: #1a1c20;
  --text-muted: #565b66;
  --border: #e2e4e9;
  --accent: #1f4fd8;
  --accent-text: #ffffff;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1b1e24;
    --text: #edeef1;
    --text-muted: #a3a8b4;
    --border: #2b2f37;
    --accent: #6d93ff;
    --accent-text: #0b0d10;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.site-header nav a {
  margin-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 72px 0 56px;
}
.eyebrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 16px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 28px;
}
.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 {
  font-size: 1.5rem;
  margin: 0 0 24px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.project-body { padding: 20px; }
.project-body h3 { margin: 0 0 4px; font-size: 1.1rem; }
.project-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.project-tags {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
}
.project-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.project-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.skills-grid h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.skills-grid p {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
