:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #56635e;
  --paper: #f4f0e8;
  --surface: #fcfaf5;
  --accent: #d55031;
  --line: rgba(23, 32, 29, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.wordmark-company {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  min-height: 36rem;
  display: grid;
  align-content: center;
  justify-items: start;
  padding-block: clamp(5rem, 12vw, 9rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  max-width: 45rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.15rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

.services {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 19rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--surface);
}

.service-grid article p:last-child {
  color: var(--muted);
}

.service-number {
  margin: 0 0 4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact {
  margin-block: clamp(4rem, 10vw, 9rem);
  padding: clamp(2rem, 7vw, 5rem);
  background: var(--ink);
  color: var(--surface);
}

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

.email-link {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(1.25rem, 4vw, 2.2rem);
  font-weight: 750;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0;
}

@media (max-width: 46rem) {
  .site-header {
    align-items: flex-start;
  }

  .wordmark {
    display: block;
  }

  .wordmark-company {
    display: block;
    margin-top: 0.15rem;
  }

  nav {
    gap: 1rem;
  }

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

  .service-grid article {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 2.5rem;
  }

  footer {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
