:root {
  --paper: #f4f1ea;
  --ink: #16211c;
  --muted: #5c6861;
  --accent: #c84b31;
  --line: #c8cbc3;
  --card: #ebe7dd;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
.site-header, main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
  text-decoration: none;
}
nav { display: flex; gap: clamp(16px, 3vw, 36px); }
nav a { font-size: .9rem; font-weight: 650; text-decoration: none; }
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .7fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 820px; margin-bottom: 20px; font-family: Georgia, serif; font-size: clamp(3.2rem, 6vw, 5.8rem); font-weight: 500; }
h2 { max-width: 780px; margin-bottom: 0; font-family: Georgia, serif; font-size: clamp(2.3rem, 4.5vw, 4.3rem); font-weight: 500; }
h3 { font-size: 1.45rem; }
.lede { max-width: 700px; margin: 0 0 32px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { padding: 11px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.button.primary { background: var(--ink); color: var(--paper); }
.button:hover { border-color: var(--accent); background: var(--accent); color: white; }
.portrait-wrap { display: block; position: relative; }
.portrait-wrap::before { content: ""; position: absolute; inset: 8% -7% -7% 8%; border: 1px solid var(--accent); border-radius: 48% 52% 45% 55%; z-index: -1; }
.portrait { display: block; width: 100%; height: auto; border-radius: 50% 50% 46% 54%; filter: grayscale(18%); }
.section { padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.section-heading { display: block; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 36px; }
.timeline { display: grid; gap: 0; }
.role { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.role-meta h3 { margin-bottom: 5px; }
.role-meta p, .role-meta time { display: block; margin: 0; color: var(--muted); font-size: .9rem; }
.role-details > p:first-child, .experience-project:first-child h4 { margin-top: 0; }
.role-details p { color: #39443e; }
.experience-project + .experience-project { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.experience-project h4 { margin: 0 0 12px; font-size: 1.05rem; letter-spacing: -.01em; }
.experience-project p { margin: 0 0 14px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project { min-height: 285px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(26px, 3vw, 36px); background: var(--card); }
.project.featured { grid-column: 1 / -1; min-height: 300px; background: var(--ink); color: var(--paper); }
.project h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 500; }
.project p { max-width: 760px; }
.project-number, .project-footer p { color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.featured .project-number, .featured .project-footer p { color: #aeb8b2; }
.project-footer { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.project-footer p { margin: 0; }
.project-footer a { flex: none; font-weight: 700; }
.about { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; }
.about-copy { max-width: 730px; font-size: 1.12rem; }
.about-copy > p:first-child { margin-top: 0; }
.skill-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.skill-list span { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 700; }
footer { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .88rem; }
footer div { display: flex; gap: 24px; }
@media (max-width: 720px) {
  .site-header { min-height: 74px; }
  nav { gap: 15px; }
  nav a:nth-child(3) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 50px 0; }
  .hero-copy { order: 2; }
  .portrait-wrap { width: 170px; }
  .section-heading, .role, .about { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { margin-bottom: 32px; }
  .project-grid { grid-template-columns: 1fr; }
  .project.featured { grid-column: auto; }
  .project-footer { display: block; }
  .project-footer p { margin-bottom: 15px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
