:root {
  color-scheme: light;
  --bg: #f8f9f5;
  --text: #19201d;
  --muted: #5c665f;
  --line: #d8ded5;
  --accent: #1b6b54;
  --accent-dark: #104735;
  --surface: #ffffff;
  --warm: #f3e5c8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(27, 107, 84, 0.35);
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 249, 245, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 12vw, 132px) clamp(20px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(243, 229, 200, 0.9), rgba(248, 249, 245, 0.7) 48%, rgba(210, 230, 220, 0.75)),
    var(--bg);
}

.hero.compact {
  min-height: auto;
  padding-bottom: clamp(48px, 7vw, 80px);
}

.hero.split {
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: clamp(28px, 7vw, 88px);
  align-items: center;
}

.profile-image {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border: 8px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 22px 70px rgba(16, 71, 53, 0.18);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  max-width: 840px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.section {
  padding: clamp(48px, 8vw, 96px) clamp(20px, 8vw, 120px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section.dense {
  padding-top: clamp(42px, 7vw, 80px);
  padding-bottom: clamp(42px, 7vw, 80px);
}

.section.alt {
  background: #eef4ee;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item,
.project,
.timeline-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.item p,
.project p,
.timeline-item p,
li {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 26px;
}

.section-actions {
  margin-top: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p,
.project-card li {
  font-size: 0.95rem;
}

.project-card ul {
  margin: 0;
  padding-left: 18px;
}

.project-type {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.project-links a {
  border-bottom: 1px solid rgba(27, 107, 84, 0.35);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.project span,
.tag-list span {
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
  background: var(--warm);
}

.contact-links {
  display: grid;
  gap: 10px;
}

.resume-section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 12px;
}

.timeline-item + .timeline-item {
  margin-top: 32px;
}

.muted {
  color: var(--muted);
}

footer {
  padding: 28px clamp(20px, 8vw, 120px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .site-header,
  .contact,
  .hero.split {
    display: block;
  }

  nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    margin-top: 18px;
  }

  .profile-image {
    margin-top: 28px;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
