:root {
  --bg: #F8F8F6;
  --text: #1D2430;
  --muted: #5B6472;
  --accent: #146B64;
  --border: #DEE1E6;

  --measure: 65ch;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-small: 0.8125rem;
  --fs-body: 1rem;
  --fs-h2: 1.25rem;
  --fs-title: clamp(1.5rem, 1.1rem + 1.5vw, 1.75rem);
  --fs-name: clamp(1.9rem, 1.2rem + 3vw, 2.25rem);
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
}

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

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap.wide {
  max-width: 760px;
}

.prose {
  max-width: var(--measure);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.site-title:hover { text-decoration: none; opacity: 0.8; }
.site-nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a.active, .site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

main.wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}
h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}
h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.3rem;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.about-meta .name {
  font-size: var(--fs-name);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.35rem;
}
.about-meta .title {
  margin: 0 0 0.3rem;
  color: var(--text);
  font-weight: 600;
}
.about-meta .location {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
}
.contact-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.contact-list svg {
  width: 20px;
  height: 20px;
}

.download-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.download-btn:hover { opacity: 0.9; text-decoration: none; }

.resume-embed {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 90vh;
}
.resume-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.resume-page h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem);
  margin-bottom: 0.5rem;
}
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.resume-updated {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.5rem;
}
.resume-page .resume-embed {
  margin-top: 1.5rem;
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: var(--fs-small);
}
.copyright { margin: 0; }
