/* ── Custom properties ────────────────────────────── */
:root {
  --bg: #f9f9f7;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #4a6fa5;
  --border: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #e8e8e6;
    --text-muted: #8a8a88;
    --accent: #6b8fc7;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: #1e1e1e;
  }
}

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

/* ── Base ─────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Layout ───────────────────────────────────────── */
main {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  padding: 6rem 0 4rem;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  margin-bottom: 5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero h1::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background-color: var(--accent);
  margin-top: 0.75rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Projects ─────────────────────────────────────── */
.projects h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .project-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

.project-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
}

footer a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}
