:root {
  --bg: #fbfaf7;
  --ink: #0e0e0c;
  --muted: #555149;
  --rule: #d4cfc1;
  --accent: #9a3a14;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 44rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
}
a:hover { text-decoration-color: var(--accent); }

.lede-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.lede-row .lede { margin: 0; }

.avatar {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

@media (max-width: 540px) {
  .lede-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .avatar { width: 5.5rem; height: 5.5rem; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: 1.05rem;
  color: #1c1c1a;
  margin: 0 0 2rem;
}

.links {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.links span { margin: 0 0.4rem; color: var(--rule); }

section {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
}

.subhead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 3rem 0 1.25rem;
  color: var(--muted);
}

.role, .project {
  margin-bottom: 2.5rem;
}

.role header { margin-bottom: 0.6rem; }

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.005em;
}
.role-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--muted);
}

.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0;
}
li { margin-bottom: 0.45rem; }
li::marker { color: var(--rule); }

.project p:not(.meta) { margin: 0.4rem 0 0; }

.links-row {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.55rem !important;
  letter-spacing: 0.01em;
}

.awards { list-style: none; padding: 0; }
.awards li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
}
.awards li:last-child { border-bottom: none; }

.skills {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.9;
}

footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 540px) {
  main { padding: 3rem 1.25rem 4rem; }
  section { margin-top: 3.5rem; padding-top: 2.25rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --ink: #eae6dc;
    --muted: #8a8579;
    --rule: #2a2823;
    --accent: #e08a5a;
  }
  .lede { color: #d2cec3; }
}
