:root {
  --blue: #0755a1;
  --navy: #082f50;
  --green: #73df48;
  --green-dark: #276b22;
  --background: #f3f7fb;
  --text: #172d40;
  --muted: #526577;
  --border: #dbe5ee;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.7;
}

a {
  color: var(--blue);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.12rem;
}

section,
article[id],
main {
  scroll-margin-top: 2rem;
}

.container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: white;
}

.header-inner,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-inner {
  min-height: 88px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.brand span {
  color: var(--green-dark);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}

nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.page-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 4rem;
  padding-block: 3.5rem;
}

.profile {
  position: sticky;
  top: 2rem;
  overflow: hidden;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--navy);
  color: white;
  border-top: 6px solid var(--green);
}

.avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 2rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--blue);
  font-size: 1.8rem;
  font-weight: 700;
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile .eyebrow,
.contact .eyebrow {
  color: var(--green);
}

.profile h1 {
  margin-bottom: 1rem;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
}

.profile-title {
  font-weight: 600;
  line-height: 1.6;
}

.profile-summary {
  color: #d0dfec;
  font-size: 0.93rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button-green {
  background: var(--green);
  color: var(--navy);
}

.button-blue {
  background: var(--blue);
  color: white;
}

.button:hover {
  filter: brightness(0.94);
}

.profile .button {
  width: 100%;
  margin-top: 0.7rem;
}

.profile-skills {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #41617b;
}

.profile-skills h2 {
  font-size: 0.85rem;
  letter-spacing: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tags li {
  padding: 0.3rem 0.6rem;
  border: 1px solid #57758d;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  color: #e0ebf4;
}

.intro {
  padding-block: 0.5rem 2.8rem;
}

.intro h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.intro h2 span {
  color: var(--blue);
}

.lead,
.section-intro {
  color: var(--muted);
  max-width: 65ch;
}

.lead {
  margin-block: 1.5rem;
  font-size: 1.05rem;
}

.section {
  padding-block: 2.8rem;
  border-top: 1px solid var(--border);
}

.service-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: white;
  color: var(--text);
  text-decoration: none;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgb(8 47 80 / 8%);
}

.card-category {
  margin-bottom: 1rem;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.service-card p,
.values-grid p {
  color: var(--muted);
  font-size: 0.92rem;
}

.card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.detail:last-child {
  border-bottom: 0;
}

.detail h3 {
  color: var(--blue);
}

.detail p,
.detail ul {
  margin-bottom: 0;
  color: var(--muted);
}

.detail ul {
  padding-left: 1.25rem;
}

.detail li + li {
  margin-top: 0.65rem;
}

.values-grid article {
  padding-left: 1rem;
  border-left: 3px solid var(--green);
}

.contact {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--navy);
  color: white;
}

.contact > p:not(.eyebrow) {
  color: #d0dfec;
}

.contact-email {
  margin: 1rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.profile :focus-visible,
.contact :focus-visible {
  outline-color: var(--green);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: white;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2rem;
  }

  .profile {
    padding: 1.5rem;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, 580px);
  }

  .header-inner {
    padding-block: 1rem;
    flex-wrap: wrap;
  }

  nav {
    gap: 1rem;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2rem;
  }

  .profile {
    position: static;
  }

  .intro h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: white;
  color: var(--text);
  text-decoration: none;
}

.project-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgb(8 47 80 / 8%);
}

.project-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.project-card-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

.project-card-body .project-tools {
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-card-body .card-link {
  margin-top: auto;
}

.project-page {
  max-width: 900px;
  padding-block: 3rem;
  overflow-wrap: anywhere;
}

.project-heading h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.045em;
}

.project-hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.screenshot-gallery {
  display: grid;
  gap: 2rem;
}

.project-screenshot {
  margin: 0;
}

.project-screenshot a {
  display: block;
}

.project-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.project-screenshot figcaption {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 960px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card-body h2 {
  font-size: 1.12rem;
  letter-spacing: normal;
}

.projects-browse {
  margin-top: 1.5rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: white;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--blue);
}

.pagination span {
  color: var(--muted);
  font-size: 0.9rem;
}