:root {
  --green: #2f6b4f;
  --green-dark: #173b2a;
  --orange: #e07a2f;
  --cream: #fffdf8;
  --ink: #1d2621;
  --muted: #5c6a62;
  --line: #d6e3db;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--cream); line-height: 1.65; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* hero banner */
.banner {
  color: #fff;
  background: linear-gradient(180deg, rgba(23,59,42,.88), rgba(47,107,79,.72) 60%, rgba(224,122,47,.45)), url(assets/mtnpix.png) center / cover;
}
.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: #ffc89a; }
.intro { text-align: center; padding-top: 32px; padding-bottom: 72px; }
.photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; outline: 3px solid #fff; outline-offset: 6px; }
h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(38px, 7vw, 60px); line-height: 1.05; margin: 28px 0 12px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.intro p { font-size: 19px; margin: 0 auto; max-width: 640px; color: #e8f2ec; }
.intro p b { color: #ffc89a; white-space: nowrap; }
.social { display: flex; justify-content: center; gap: 20px; margin-top: 24px; font-size: 20px; }
.social a:hover { color: #ffc89a; }

/* sections */
h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 32px; margin: 64px 0 24px; }
h2 small { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--orange); display: block; letter-spacing: .1em; text-transform: uppercase; }
section { scroll-margin-top: 16px; }

.timeline { list-style: none; margin: 0; position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--green); }
.timeline li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(224,122,47,.2); }
.when { font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: .05em; text-transform: uppercase; }
.timeline h3 { margin: 2px 0; font-size: 20px; }
.timeline p { margin: 4px 0 0; color: var(--muted); }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.projects > a, .projects > .card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .2s, box-shadow .2s; }
.projects > a:hover, .projects > .card:hover { border-color: var(--orange); box-shadow: 0 6px 18px rgba(47,107,79,.12); }
.card > a { display: block; text-decoration: none; }
.projects b { display: block; color: var(--green); font-size: 17px; }
.projects span { font-size: 13px; color: var(--orange); font-weight: 500; }
.projects p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.card .demo { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--green); }
.card .demo:hover { color: var(--orange); text-decoration: underline; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 20px; }
.skills h3 { margin: 0 0 8px; font-size: 14px; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.skills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skills li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14px; }

.cta { margin: 64px 0; padding: 32px 16px; border-radius: 16px; background: var(--green); color: #fff; text-align: center; }
.cta h2 { margin: 0 0 8px; }
.btn { display: inline-block; margin: 12px 6px 0; padding: 12px 20px; border-radius: 10px; background: var(--orange); text-decoration: none; font-weight: 700; }
.btn.alt { background: transparent; border: 2px solid #fff; }
.btn:hover { background: #fff; color: var(--green-dark); }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
