:root {
  --ink: #000;
  --muted: #4a5560;
  --blue: #1d75bc;
  --cyan: #00aeef;
  --line: #d9e6f1;
  --paper: #fff;
  --wash: #f2f8fd;
  --font: "Outfit", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Ring motif drawn from the logo, the one decorative element */
.rings {
  position: absolute;
  top: -6rem;
  right: -10rem;
  width: min(48rem, 90vw);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
.rings svg { display: block; width: 100%; height: auto; }

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 64rem);
  margin-inline: auto;
}

.site-header { padding-top: 2.5rem; }
.logo { display: block; width: clamp(9rem, 22vw, 13rem); height: auto; }

.hero { padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.25rem, 6.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34em;
  margin: 1.75rem 0 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 300;
  color: var(--muted);
}

h2 {
  margin: 0 0 .75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.work {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 2px solid var(--blue);
}

.work-intro { max-width: 36em; margin: 0 0 2.5rem; color: var(--muted); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 0;
}
.services.two { grid-template-columns: repeat(2, 1fr); }
.services dt {
  margin-bottom: .5rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--blue);
}
.services dd { margin: 0; font-size: 1.0625rem; max-width: 24em; }

.work + .work { margin-top: 0; }

.contact {
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--wash);
  border-left: 4px solid var(--cyan);
}
.contact p { max-width: 34em; margin: 0 0 1.5rem; }

.button {
  display: inline-block;
  padding: .8rem 1.5rem;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .15s ease;
}
.button:hover { background: #155a93; }

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

@media (max-width: 52rem) {
  .services, .services.two { grid-template-columns: 1fr; gap: 1.75rem; }
  .rings { top: -3rem; right: -14rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
