:root {
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --rule: #e5e0d6;
  --bg: #faf8f3;
  --bg-alt: #f3efe4;
  --accent: #1e3a5f;
  --accent-ink: #ffffff;
  --max: 760px;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", "Palatino", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 58, 95, 0.25);
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--accent); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: none;
}
.nav {
  display: flex;
  gap: 20px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a {
  color: var(--muted);
  border-bottom: none;
}
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.lede {
  font-size: 20px;
  line-height: 1.6;
  color: #2a2a2a;
  margin: 0 0 28px;
  max-width: 640px;
}
.hero-meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero-meta .dot { color: var(--rule); }
.hero-meta a { color: var(--accent); }

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.section-alt { background: var(--bg-alt); }

h2 {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 40px;
  font-weight: 700;
}

.prose p {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.7;
}
.prose p:last-child { margin-bottom: 0; }

/* ---------- Experience ---------- */
.role {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.role:first-of-type { border-top: none; padding-top: 0; }
.role:last-child { padding-bottom: 0; }
.role h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.role .org {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 4px;
  font-style: italic;
}
.role .meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 14px;
}
.role ul {
  margin: 0;
  padding-left: 20px;
}
.role ul li { margin: 0 0 8px; }
.role ul li:last-child { margin-bottom: 0; }
.role p { margin: 0; }

/* ---------- Education ---------- */
.edu {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.edu:first-of-type { border-top: none; padding-top: 0; }
.edu h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.edu .meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
}

/* ---------- Languages ---------- */
.langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 0;
}
.langs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px dotted var(--rule);
  gap: 16px;
}
.langs .lang {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}
.langs .lvl {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ---------- Honors ---------- */
.honors-list,
.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.honors-list li,
.skills-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
}
.honors-list li:last-child,
.skills-list li:last-child { border-bottom: none; }

.skills-head {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 44px 0 12px;
}

/* ---------- Contact ---------- */
.contact p { margin: 0 0 14px; font-size: 18px; }
.contact-links {
  font-family: var(--sans);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.contact-links .dot { color: var(--rule); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .nav { gap: 14px; font-size: 11px; }
  .langs { grid-template-columns: 1fr; }
  .lede { font-size: 18px; }
  .role h3 { font-size: 20px; }
}

@media (max-width: 420px) {
  .nav { display: none; }
  .header-inner { justify-content: center; }
}
