:root {
  --paper: #FAF8F3;
  --ink: #1D1B16;
  --muted: #6E685B;
  --line: #E4DED1;
  --accent: #2E5B3E;
  --accent-deep: #234830;
  --card: #FFFFFF;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 1.75rem; }

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

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

/* ---------- hero ---------- */
.hero { padding: 6.5rem 0 5rem; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.7rem, 6.5vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

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

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  background: transparent;
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- sections ---------- */
section { padding: 3.5rem 0; }

.section-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.prose p { margin-bottom: 1.25rem; color: #3A372E; }
.prose-narrow { color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.skills li {
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: #3A372E;
}

/* ---------- projects ---------- */
.project {
  border-top: 1px solid var(--line);
  padding: 2.1rem 0;
  transition: transform 0.2s ease;
}

.project:last-of-type { border-bottom: 1px solid var(--line); }

.project:hover { transform: translateX(4px); }

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.project h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
}

.project-year {
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project p { color: #3A372E; margin-bottom: 1rem; max-width: 38rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tags li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  background: #E9EFE6;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
}

.project-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- certifications ---------- */
.certs { list-style: none; }

.certs li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

.certs li:last-child { border-bottom: 1px solid var(--line); }

.cert-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.cert-issuer {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- contact ---------- */
.contact-head {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.socials {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.socials a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.socials a:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.75rem 0 2.5rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .nav-links { gap: 1.15rem; }
  .foot { flex-direction: column; gap: 0.25rem; }
}
