
:root {
  --palette-1: #8DA668;
  --palette-2: #65734F;
  --palette-3: #848C72;
  --palette-4: #73573F;
  --palette-5: #F7F7F7;

  --bg: var(--palette-5);
  --surface: #ffffff;
  --ink: var(--palette-4);
  --muted: var(--palette-3);
  --border: var(--palette-4);
  --accent: var(--palette-1);
  --accent-strong: var(--palette-2);
  --soft: #eef2e8;
  --link: var(--palette-2);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  height: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  background: var(--accent);
  color: var(--ink);
  border-radius: 3px;
}

a:focus-visible,
video:focus-visible {
  outline: 4px solid var(--link);
  outline-offset: 3px;
}

nav {
  background: var(--surface);
  border-bottom: 3px solid var(--border);
}

nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  color: var(--ink);
  background: var(--accent);
  text-decoration: none;
  padding: 4px 14px;
  border: 3px solid var(--border);
  border-radius: 10px;
  font-weight: 800;
}

nav ul {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul a,
.links a,
.project,
.brand {
  transition: transform .12s ease, background-color .12s ease, color .12s ease, border-color .12s ease;
}

nav ul a {
  display: block;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 14px;
  border: 3px solid transparent;
  border-radius: 10px;
}

nav ul a:hover,
nav ul a:active,
.links a:hover,
.links a:active,
.project:hover {
  transform: translate(-2px, -2px);
}

nav ul a:hover,
nav ul a:active {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--border);
}

nav ul a[aria-current] {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--border);
}

main {
  flex: 1;
  padding-bottom: 72px;
}

footer {
  margin-top: auto;
}

h1 {
  font-size: clamp(3rem, 1vw, 7rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .95;
  margin: 56px 0 28px;
}

h2 {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 56px 0 20px;
  border-bottom: 6px solid var(--accent-strong);
}

.lead {
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 36rem;
  margin: 0 0 24px;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 48px 0 0;
  padding: 0 0 0 40px;
  max-width: 720px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-strong));
}

.timeline li {
  position: relative;
  padding: 20px 20px 18px 24px;
  margin-bottom: 28px;
  background: var(--soft);
  border: 3px solid var(--border);
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.timeline li:hover {
  transform: translateX(4px);
  border-color: var(--accent-strong);
  background: #f3f6ee;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--border);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline .when {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

.timeline .role {
  margin: 0 0 8px;
  font-size: 1.4rem;
  border: 0;
  display: block;
}

.timeline .org {
  margin: 0 0 10px;
  font-weight: 700;
}

.timeline .desc {
  margin: 0 0 12px;
}

.timeline .points {
  margin: 0;
  padding-left: 18px;
}

.timeline .points li {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.timeline .points li::before {
  display: none;
}

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

.facts div,
.edu li,
.certs li,
.project {
  background: var(--soft);
  border: 3px solid var(--border);
  border-radius: 14px;
}

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

.links a {
  color: var(--ink);
  background: var(--accent);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 16px;
  border: 3px solid var(--border);
  border-radius: 10px;
}

.links a:hover {
  background: var(--soft);
  border-radius: 12px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px;
  margin: 0;
  max-width: 720px;
}

.facts div {
  padding: 12px 18px;
  background: var(--soft);
}

.facts dt {
  color: var(--muted);
  font-size: .9rem;
}

.facts dd {
  margin: 0;
  font-weight: 800;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.skill-break {
  flex-basis: 100%;
  height: 0;
}

.skills a {
  color: var(--ink);
  background: var(--soft);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 16px;
  border: 3px solid var(--border);
  border-radius: 10px;
}

.edu,
.certs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edu {
  max-width: 720px;
}

.edu li {
  padding: 16px 20px;
  margin-bottom: 24px;
}

.edu strong {
  display: block;
}

.edu span {
  display: block;
  color: var(--muted);
}

.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.certs li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.certs img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex: none;
}

.project {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: 20px;
  margin-bottom: 32px;
}

.project h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  border: 0;
}

.project h2 a {
  color: var(--ink);
  text-decoration: none;
}

.project p {
  margin: 0 0 8px;
}

img,
video {
  max-width: 100%;
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--border);
  border-radius: 10px;
}

figure img,
video {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--border);
  border-radius: 10px;
}

.post { max-width: 720px; }

.post li { margin-bottom: 8px; }

figure {
  margin: 32px auto;
  max-width: 620px;
  text-align: center;
}

figcaption {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 12px;
  text-align: center;
}

pre {
  overflow-x: auto;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

footer {
  background: var(--accent);
  color: var(--ink);
  border-top: 3px solid var(--border);
  padding: 28px 0 44px;
  font-size: .9rem;
}

footer a {
  color: var(--ink);
  font-weight: 600;
}

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

.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.foot ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 700px) {
  .project { grid-template-columns: 1fr; }
}

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