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

:root {
  --warm-white: #fdfcfa;
  --ink: #1a1814;
  --ink-light: #4a4540;
  --ink-muted: #8a8278;
  --line: rgba(26, 24, 20, 0.12);
  --content-max: 1296px;
  --type-display: clamp(54px, 6vw, 82px);
  --type-heading: 30px;
  --type-intro: 20px;
  --type-body: 17px;
  --type-small: 13px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--site-font);
  background: var(--warm-white);
  color: var(--ink);
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.services-main {
  padding: 158px 60px 0;
  background: var(--warm-white);
}

.services-shell {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

/* Hero */
.services-hero {
  max-width: 840px;
}

.services-hero h1 {
  max-width: 820px;
  font-family: var(--site-font);
  font-size: var(--type-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.services-hero p {
  max-width: 620px;
  margin-top: 30px;
  font-size: var(--type-intro);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-light);
}

.services-hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 60px;
  border-radius: 8px;
}

/* Quick list */
.services-quick-list {
  max-width: 760px;
  margin-top: 78px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.services-quick-list ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-quick-list a {
  display: inline-block;
  padding: 8px 18px;
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--ink-light);
  border: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--site-font);
}

.services-quick-list a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Service items */
.service-item {
  max-width: 760px;
  margin-top: 120px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.service-item h2 {
  font-size: var(--type-heading);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}

.service-item p {
  max-width: 620px;
  font-size: var(--type-body);
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink-light);
}

/* CTA */
.services-cta {
  max-width: 760px;
  margin-top: 120px;
  padding: 48px 0 132px;
  border-top: 1px solid var(--line);
}

.services-cta p {
  font-size: var(--type-heading);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.services-cta a {
  display: inline-block;
  margin-top: 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 5px;
}

.services-cta a:hover {
  text-decoration: none;
  opacity: 0.7;
}

@media (max-width: 1080px) {
  .services-main {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --type-display: clamp(48px, 13vw, 64px);
    --type-heading: 24px;
    --type-intro: 18px;
    --type-body: 16px;
  }

  .services-main {
    padding: 128px 24px 0;
  }

  .service-item,
  .services-cta {
    margin-top: 80px;
  }

  .services-cta {
    padding-bottom: 88px;
  }
}
