:root {
  --background: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f8f9fa;
  --text: #202122;
  --muted: #54595d;
  --accent: #3366cc;
  --accent-dark: #0645ad;
  --border: #d8dee4;
  --border-soft: #eaecf0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 1040px;
  padding: 12px 28px;
  position: relative;
}

.brand {
  border: 2px solid transparent;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  left: 28px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: border-color 160ms ease;
  width: 44px;
}

.brand:hover,
.brand:focus-visible {
  border-color: var(--accent);
  outline: none;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  padding: 8px 10px 6px;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1040px;
  padding: 44px 28px 56px;
}

.hero,
.page-intro {
  border-bottom: 1px solid var(--border);
  max-width: none;
}

.hero {
  padding: 24px 0 34px;
}

.about-page {
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) 340px;
  padding: 24px 0 34px;
}

.about-main {
  min-width: 0;
}

.about-copy {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.about-copy p {
  margin-bottom: 22px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-sidebar {
  padding-top: 6px;
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  transform: rotate(2deg);
  width: 100%;
}

.about-link-list {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.about-link-list a {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-weight: 600;
  gap: 16px;
}

.about-link-list a:hover,
.about-link-list a:focus-visible {
  color: var(--accent-dark);
  outline: none;
  text-decoration: none;
}

.about-link-list svg {
  color: var(--muted);
  fill: currentColor;
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.about-email {
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
}

.page-intro {
  padding-bottom: 30px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 720;
  line-height: 1.08;
  margin-bottom: 14px;
}

h2 {
  border-bottom: 1px solid var(--border-soft);
  font-size: 1.28rem;
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-bottom: 6px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 4px;
}

.lede,
.page-intro p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: border-color 160ms ease, color 160ms ease;
  width: 38px;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  outline: none;
  text-decoration: none;
}

.social-links svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.content-grid,
.home-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.home-stack {
  display: grid;
  gap: 28px;
}

.content-grid article,
.home-stack article,
.work-card,
.project-card,
.resume-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
}

.work-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.home-card-header,
.work-card-header {
  align-items: center;
  display: flex;
  gap: 14px;
}

.home-card-header svg,
.work-card-header svg {
  color: #8b8f9a;
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.home-card-header h2,
.work-card-header h2 {
  flex: 1;
  margin-bottom: 0;
}

.work-list {
  display: grid;
  gap: 18px;
}

.work-item {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
}

.work-logo {
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 750;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

.work-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.work-logo img.logo-contain {
  height: 65%;
  object-fit: contain;
  width: 65%;
}

.work-item h3 {
  font-size: 1.08rem;
  margin-bottom: 2px;
}

.work-item p,
.work-dates {
  color: var(--muted);
}

.work-item p {
  margin: 0;
}

.work-dates {
  font-size: 0.98rem;
  white-space: nowrap;
}

.work-card-link {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-weight: 650;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
  padding: 14px 18px;
}

.work-card-link:hover,
.work-card-link:focus-visible {
  border-color: var(--accent);
  outline: none;
  text-decoration: none;
}

.work-card-link svg {
  fill: #8b8f9a;
  height: 18px;
  width: 18px;
}

.project-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.project-card {
  border-left: 4px solid var(--border);
  display: grid;
  gap: 20px;
  grid-template-columns: 90px minmax(0, 1fr);
}

.project-card:hover {
  border-left-color: var(--accent);
}

.project-card a {
  display: inline-block;
  font-weight: 700;
  margin-top: 6px;
}

.project-image {
  align-self: center;
  display: block;
  height: auto;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.project-body {
  min-width: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 4px;
  padding: 0;
}

.project-tech li {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
}

.project-heading {
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.project-heading h2 {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-status {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 3px 8px;
}

.resume-section {
  margin-top: 26px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.contact-list a,
.contact-list span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
}

.contact-list svg {
  fill: currentColor;
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.skill-groups p {
  margin-bottom: 8px;
}

.skill-groups p:last-child,
.resume-item ul,
.resume-item p:last-child {
  margin-bottom: 0;
}

.resume-item {
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: 18px;
  grid-template-columns: 230px 1fr;
  padding-top: 18px;
}

.resume-section > .resume-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.resume-item ul {
  padding-left: 20px;
}

.resume-item li + li {
  margin-top: 8px;
}

.resume-item + .resume-item {
  margin-top: 20px;
}

.muted {
  color: var(--muted);
}

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

.skill-list li {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 11px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin: 0 auto;
  max-width: 1040px;
  padding: 20px 28px 28px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 680px) {
  .nav {
    align-items: center;
    min-height: 72px;
    padding: 14px 20px;
  }

  .brand {
    left: 20px;
  }

  .nav-links {
    justify-content: center;
    padding-left: 56px;
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  main {
    padding: 30px 20px 44px;
  }

  .hero {
    padding: 12px 0 28px;
  }

  .content-grid,
  .home-grid,
  .about-page,
  .resume-item {
    grid-template-columns: 1fr;
  }

  .about-page {
    gap: 34px;
  }

  .about-sidebar {
    padding-top: 0;
  }

  .about-photo {
    max-width: 360px;
  }

  .about-link-list {
    margin-top: 30px;
  }

  .work-item {
    align-items: flex-start;
    grid-template-columns: 48px 1fr;
  }

  .work-dates {
    grid-column: 2;
  }

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

}
