:root {
  --blue: #0072bc;
  --orange: #f37021;
  --green: #7eac2a;
  --ink: #1c2430;
  --muted: #5c6773;
  --line: #e4e8ec;
  --paper: #f5f7f9;
  color: var(--ink);
  background: #fff;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--blue);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.top,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 6vw;
}

.top {
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--blue) 0 70%, var(--orange) 70% 88%, var(--green) 88% 100%) 1;
}

.brand img,
footer img {
  width: auto;
  height: 48px;
}

footer img {
  height: 32px;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

main {
  padding: 0 6vw 4rem;
}

.hero {
  max-width: 40rem;
  padding: 4.5rem 0 2rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.projects h2,
.contact h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid li {
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--paper);
  border-top: 3px solid var(--blue);
}

.grid li:nth-child(2),
.grid li:nth-child(5) {
  border-top-color: var(--orange);
}

.grid li:nth-child(3),
.grid li:nth-child(6) {
  border-top-color: var(--green);
}

.grid h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.grid p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.grid p + p {
  margin-top: 0.7rem;
}

.contact {
  max-width: 36rem;
  margin-top: 3rem;
}

.contact p + p {
  margin-top: 0.6rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
