*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1a1a18;
  --muted: #6b6b67;
  --subtle: #9a9a95;
  --border: #e5e5e0;
  --accent: #1a1a18;
  --tag-bg: #f0f0eb;
  --tag-text: #4a4a46;
  --link: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1c1c1a;
    --text: #f0efe8;
    --muted: #9a9a95;
    --subtle: #6b6b67;
    --border: #2a2a27;
    --accent: #f0efe8;
    --tag-bg: #232320;
    --tag-text: #b0b0aa;
    --link: #60a5fa;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 56px;
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 48px;
  background: var(--border);
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--muted);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

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

/* ── DIVIDER ── */
.section-divider {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  border-top: 1px solid var(--border);
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 2rem;
}

/* ── ABOUT ── */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-text p {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.about-text p:last-child { margin-bottom: 0; }

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.skill-name { color: var(--muted); font-weight: 400; }

.skill-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
}

/* ── PROJECTS ── */
.projects {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

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

.project-item:hover .project-arrow { transform: translate(3px, -3px); }

.project-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

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

.project-arrow {
  font-size: 18px;
  color: var(--subtle);
  transition: transform 0.2s;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── CONTACT ── */
.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 7rem;
}

.contact-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
}

.contact h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.contact-sub {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 360px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 12px;
  color: var(--subtle);
  font-family: 'DM Mono', monospace;
}

/* ── SVG ICON UTIL ── */
.icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero-eyebrow { animation-delay: 0.1s; }
.hero h1      { animation-delay: 0.2s; }
.hero-desc    { animation-delay: 0.3s; }
.hero-cta     { animation-delay: 0.4s; }
