:root {
  --bg: #fbf7f4; --surface: #ffffff; --text: #22181c; --muted: #6f6266; --line: #eadfe2;
  --accent: #e0577a; --accent-ink: #ffffff; --soft: #fde8ee;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141013; --surface: #1d171b; --text: #f3eaed; --muted: #b3a4aa; --line: #2f262b; --accent: #f07a98; --accent-ink: #1a0f13; --soft: #3a2029; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.top, main, .foot { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); font-size: 15px; }

.hero { padding: 64px 0 56px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.lead { margin: 0 0 28px; max-width: 560px; color: var(--muted); font-size: 18px; }
.button { display: inline-block; padding: 12px 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.button:hover { text-decoration: none; filter: brightness(1.05); }

h2 { margin: 0 0 20px; font-size: 24px; }
.projects, .about { padding: 32px 0; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0; font-size: 19px; }
.card p { margin: 10px 0 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.muted { color: var(--muted); font-size: 15px; }
.about p { max-width: 640px; margin: 0; }

.foot { padding-top: 32px; padding-bottom: 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; }
