:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #eef2f1;
  --text: #17201d;
  --muted: #64706b;
  --line: #d9dfdc;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a,
.button,
.template-switcher a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .7);
  color: var(--muted);
}

.nav a:hover,
.button:hover,
.template-switcher a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.template-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.template-switcher a {
  background: var(--surface-2);
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 62px 0 74px;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .97;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 21px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.profile-card {
  display: grid;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(23, 32, 29, .08);
}

.headshot-slot {
  aspect-ratio: 1;
  display: grid;
  align-content: center;
  place-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed rgba(15, 118, 110, .36);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .18), rgba(15, 118, 110, .04)),
    var(--surface-2);
  text-align: center;
}

.headshot-slot span {
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 900;
}

.headshot-slot small {
  color: var(--muted);
  font-size: 13px;
}

.profile-card dl {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.profile-card div {
  display: grid;
  gap: 3px;
  padding: 14px;
  background: var(--surface);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd,
.copy,
.contact p,
.card p,
.timeline-row p,
.project-card p,
.project-card li,
.skill-grid p {
  color: var(--muted);
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card,
.project-card,
.skill-grid article {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card span,
.project-card span {
  color: var(--accent);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
}

.copy {
  display: grid;
  gap: 16px;
  font-size: 18px;
}

.timeline {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background: var(--surface);
}

.date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-row div {
  display: grid;
  gap: 8px;
}

.project-grid,
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  align-content: start;
}

.project-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.contact {
  padding-bottom: 86px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-grid a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
}

.contact-grid a:hover {
  color: var(--text);
  border-color: var(--accent);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding-top: 42px;
  }

  .profile-card {
    max-width: 420px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .timeline-row,
  .project-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }
}
