:root {
  --paper: #f5f1e8;
  --paper-2: #fbf9f4;
  --ink: #17191c;
  --muted: #686a6d;
  --accent: #223a5e;
  --accent-soft: #dde5ef;
  --rule: #cfc9bd;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .93rem;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--rule);
  background: transparent;
  padding: .55rem .75rem;
  font: inherit;
}
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a {
  text-decoration: none;
  font-size: .94rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

main { min-height: 70vh; }
.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 92px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: 72px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  margin-top: 0;
}
h1 { font-size: clamp(3.1rem, 7vw, 6.7rem); letter-spacing: -.045em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }
.lede {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.48;
  color: #31343a;
  margin: 0;
}
.hero-aside {
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}
.meta-list { list-style: none; padding: 0; margin: 0; }
.meta-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.meta-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }

.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 42px;
  margin-bottom: 42px;
}
.section-heading p { margin: 0; max-width: 750px; color: var(--muted); }

.interests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.interest {
  min-height: 170px;
  background: var(--paper-2);
  padding: 28px;
}
.interest span { display: block; color: var(--accent); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 40px; }
.interest h3 { margin-bottom: 0; }

.timeline { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.timeline-item time { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item p { margin: 0; color: var(--muted); }

.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  background: var(--accent);
  color: white;
}
.callout h2 { margin-bottom: 8px; }
.callout p { margin: 0; opacity: .82; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1rem;
  text-decoration: none;
  border: 1px solid currentColor;
  font-weight: 650;
  font-size: .92rem;
}
.button.primary { background: var(--ink); color: white; border-color: var(--ink); }
.button.light { background: white; color: var(--accent); border-color: white; }
.button:hover { transform: translateY(-1px); }

.page-hero { padding: 82px 0 44px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.4rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.15rem; }

.prose { max-width: 820px; }
.prose p { font-size: 1.08rem; }
.prose h2 { margin-top: 2.4rem; }
.note {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #28364a;
}

.cv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.pdf-frame {
  width: 100%;
  height: 1050px;
  border: 1px solid var(--rule);
  background: white;
}
.cv-fallback { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
}
.contact-card {
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.contact-card a { text-underline-offset: 4px; }

.site-footer {
  padding: 36px 0;
  background: var(--ink);
  color: #efeee9;
}
.footer-inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #efeee9; text-underline-offset: 4px; }
.small { font-size: .88rem; color: #b9b9b5; }

@media (max-width: 820px) {
  .header-inner { min-height: 66px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 8px 0; }
  .hero, .section-heading, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 64px; }
  .hero-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
  .interests { grid-template-columns: 1fr 1fr; }
  .callout { align-items: flex-start; flex-direction: column; }
  .pdf-frame { height: 760px; }
}

@media (max-width: 560px) {
  .container, .footer-inner { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { padding: 0 16px; }
  h1 { font-size: 3.4rem; }
  .section { padding: 54px 0; }
  .interests { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .pdf-frame { height: 560px; }
}
