:root {
  --paper: #f7f4ee;
  --paper-light: #fffdf9;
  --ink: #292929;
  --navy: #17324d;
  --muted: #626262;
  --rule: #c9c2b6;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover, a:focus { color: #285c87; }
.container { width: min(92%, var(--max-width)); margin: 0 auto; }
.narrow { max-width: 900px; }

.site-header {
  padding: 3.5rem 0 2rem;
  background: var(--paper-light);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.headshot {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--navy);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}
h1 { margin-bottom: 1.4rem; font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: normal; letter-spacing: .02em; }
h2 { margin-bottom: 2rem; padding-bottom: .65rem; border-bottom: 1px solid var(--rule); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: normal; }
h3 { margin-bottom: .25rem; font-size: 1.45rem; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.4rem; margin-bottom: 1.5rem; }
nav a { font-size: .9rem; font-weight: bold; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.header-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.3rem; }
.button-link { padding: .55rem .9rem; border: 1px solid var(--navy); text-decoration: none; }
.button-link:hover, .button-link:focus { background: var(--navy); color: white; }

.section { padding: 4.5rem 0; scroll-margin-top: 1rem; }
.alternate { background: var(--paper-light); border-top: 1px solid #e1dcd3; border-bottom: 1px solid #e1dcd3; }
.summary-list li, .resume-entry li { margin-bottom: .65rem; }
.resume-entry { padding: 0 0 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.last-entry { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.entry-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.organization { margin: 0; color: var(--muted); font-weight: bold; }
.dates { margin: .2rem 0 0; color: var(--muted); font-weight: bold; white-space: nowrap; }

.project {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.project:first-of-type { padding-top: 0; }
.project:last-child { border-bottom: 0; }
.project:nth-of-type(even) .project-images { order: 2; }
.project-images img { width: 100%; max-height: 430px; object-fit: contain; background: white; border: 1px solid var(--rule); }
.project-copy h3 { font-size: 1.8rem; }
.project-copy p { margin-bottom: 0; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 2.5rem; padding-left: 1.3rem; }
.subsection-heading { margin-top: 4rem; }
.technology-list { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; list-style: none; }
.technology-list li { padding: .45rem .75rem; background: var(--paper); border: 1px solid var(--rule); }
.contact-section { text-align: center; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.4rem; }
footer { padding: 1.4rem 0; background: var(--navy); color: white; }
footer .container { display: flex; justify-content: space-between; gap: 1rem; }
footer p { margin: 0; }
footer a { color: white; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { padding-top: 2.5rem; }
  .headshot { width: 150px; height: 150px; margin-bottom: 1.25rem; }
  .section { padding: 3.2rem 0; }
  .entry-heading { display: block; }
  .dates { margin-top: .35rem; }
  .project { grid-template-columns: 1fr; gap: 1.5rem; }
  .project:nth-of-type(even) .project-images { order: 0; }
  .skills-grid { grid-template-columns: 1fr; }
  footer .container { display: block; text-align: center; }
  footer p { margin-bottom: .4rem; }
}
