:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --border: #e8e4dc;
  --text: #1a1915;
  --muted: #7a7670;
  --accent: #2d5a27;
  --accent-light: #e8f0e6;
  --mono: 'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 max(2rem, calc((100% - 720px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

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

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

/* MAIN CONTAINER */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HERO */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.6s ease both;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-bio {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #1e3e1a; }

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

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

/* SECTIONS */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.6s ease both;
}

section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* EXPERIENCE */
.experience-item {
  margin-bottom: 40px;
}

.experience-item:last-child { margin-bottom: 0; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.exp-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
}

.exp-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
}

.exp-company {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-company a {
  color: inherit;
  text-decoration: none;
}

.exp-company a:hover { text-decoration: underline; }

.exp-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--accent-light);
  color: var(--accent);
  letter-spacing: 0.04em;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-bullets li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
  font-size: 12px;
}

.exp-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.skill-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* EDUCATION */
.edu-item {
  margin-bottom: 28px;
}

.edu-item:last-child { margin-bottom: 0; }

.edu-school {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2px;
}

.edu-degree {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.edu-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* FOOTER */
footer {
  padding: 40px 2rem;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* DIVIDER */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

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

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }

/* MOBILE */
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  main { padding: 0 1.25rem; }
  .hero { padding: 56px 0 48px; }
  h1 { font-size: 2rem; }
  .nav-links { gap: 1.2rem; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  footer { padding: 32px 1.25rem; }
}
