:root {
  --navy: #20241f;       /* heading ink, sampled from resume */
  --navy-light: #3a3f33;
  --accent: #856b3c;     /* rust/bronze accent, sampled from resume */
  --accent-light: #a3875a;
  --ink: #20241f;
  --grey: #757266;
  --grey-light: #9a9587;
  --bg: #f9f7f3;
  --bg-alt: #f1ece2;
  --border: #dcd5c4;
  --radius: 12px;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 243, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1 1 auto; }

.hero-photo {
  flex: 0 0 auto;
  width: min(300px, 60vw);
  aspect-ratio: 334 / 500;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.1;
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero-summary {
  color: var(--grey);
  max-width: 50ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.email-link { position: relative; }

.copy-toast {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.copy-toast::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: var(--bg);
}
.btn-primary:hover { background: var(--navy-light); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 28px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.about-text {
  max-width: 68ch;
  color: var(--grey);
  margin: 0 0 18px;
}

/* Experience */
.job {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.job:last-child { border-bottom: none; }

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 6px;
}

.job-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.job-org {
  font-weight: 500;
  color: var(--grey);
}

.job-note {
  display: block;
  color: var(--grey-light);
  font-size: 0.82rem;
  font-style: italic;
  margin-top: 2px;
}

.job-dates {
  color: var(--grey-light);
  font-size: 0.88rem;
  white-space: nowrap;
}

.job p {
  margin: 0;
  color: var(--grey);
  max-width: 68ch;
}

.job ul {
  margin: 8px 0 0;
  padding-left: 1.1em;
  color: var(--grey);
}
.job ul li { margin-bottom: 6px; max-width: 68ch; }

.earlier-heading {
  margin: 32px 0 12px;
  color: var(--navy);
  font-size: 1.1rem;
}

/* Earlier career table */
.earlier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}
.earlier-table td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.earlier-table td:first-child { color: var(--ink); font-weight: 600; }
.earlier-table td:nth-child(2) { color: var(--grey); }
.earlier-table td:last-child {
  color: var(--grey-light);
  text-align: right;
  white-space: nowrap;
}

/* Skills */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.skill-group h3 {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 14px;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.tag-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.section:not(.section-alt) .tag-list li { background: var(--bg-alt); }

/* Testimonial */
.testimonial {
  margin: 0;
  max-width: 68ch;
}
.testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 14px;
}
.testimonial cite {
  font-style: normal;
  color: var(--grey);
  font-weight: 600;
}

/* Contact */
.contact-inner { text-align: center; }
.contact-inner .section-title::after { left: 50%; transform: translateX(-50%); }
.contact-inner .about-text { margin-left: auto; margin-right: auto; }
.contact-inner .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.site-footer p {
  margin: 0;
  color: var(--grey-light);
  font-size: 0.85rem;
  text-align: center;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ede9e0;
    --grey: #c3bdac;
    --grey-light: #948d7a;
    --bg: #1b1a16;
    --bg-alt: #242220;
    --border: #38352c;
    --navy: #f3efe6;
    --navy-light: #ffffff;
    --accent: #c9a86a;
    --accent-light: #dcbf8c;
  }
  .site-header { background: rgba(27, 26, 22, 0.88); }
  .btn-primary { color: #1b1a16; }
  .nav-toggle span { background: var(--navy); }
}

/* Responsive */
@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-photo { width: min(240px, 65vw); margin: 0 auto; }
  .hero-summary { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero h1 { font-size: 2.1rem; }

  .job-head { flex-direction: column; align-items: flex-start; }

  .earlier-table { font-size: 0.85rem; }
  .earlier-table td:last-child { text-align: left; }
}
