:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #123b32;
  --muted: #74817d;
  --rule: #cbd2ce;
  --lime: #cbe86b;
  --page-gutter: clamp(22px, 3.8vw, 58px);
  --font-ui: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  padding: 0 var(--page-gutter);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 14px;
  text-decoration: none;
}

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

.site-header {
  display: flex;
  align-items: center;
  min-height: 81px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 30px;
  font-weight: 720;
  letter-spacing: -1.4px;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 29px;
  height: 36px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4.1vw, 62px);
  margin-left: clamp(72px, 7vw, 108px);
}

.nav-link {
  position: relative;
  padding: 9px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.3;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-current {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: flex;
  min-height: 588px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(53%, 660px);
  padding: 18px 0 30px 22px;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 6vw, 88px);
  font-weight: 740;
  letter-spacing: -0.075em;
  line-height: 1.06;
}

.hero-copy > p {
  max-width: 565px;
  margin: 29px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 23px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.48;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 17px;
  font-weight: 520;
  line-height: 1.35;
  text-decoration: none;
  transition: gap 180ms ease, border-color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  gap: 22px;
  border-color: var(--lime);
}

.text-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.hero-art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -1.2%;
  bottom: 0;
  width: min(68%, 930px);
  pointer-events: none;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.services {
  padding: 38px 4px 30px;
}

.services h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 47px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.16;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-row {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 28px;
}

.service-name,
.service-state {
  font-size: 16px;
  font-weight: 450;
  line-height: 1.4;
}

.service-name {
  color: var(--ink);
}

.service-state {
  color: var(--muted);
  text-align: right;
}

.site-footer {
  display: flex;
  min-height: 69px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

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

@media (max-width: 860px) {
  .hero {
    min-height: 540px;
  }

  .hero-copy {
    width: 58%;
    padding-left: 8px;
  }

  .hero h1 {
    font-size: clamp(52px, 7vw, 68px);
  }

  .hero-art {
    right: -2%;
    width: 66%;
  }
}

@media (max-width: 620px) {
  :root {
    --page-gutter: 20px;
  }

  .site-header {
    min-height: 69px;
    justify-content: space-between;
    gap: 14px;
  }

  .brand {
    gap: 8px;
    font-size: 24px;
    letter-spacing: -1.2px;
  }

  .brand-mark {
    width: 23px;
    height: 30px;
  }

  .primary-nav {
    gap: clamp(10px, 3.3vw, 18px);
    margin-left: 0;
  }

  .nav-link {
    font-size: 11px;
    letter-spacing: -0.025em;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 59px;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(48px, 13vw, 70px);
    line-height: 1.02;
  }

  .hero-copy > p {
    max-width: 410px;
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.5;
  }

  .text-link {
    gap: 13px;
    margin-top: 30px;
    font-size: 15px;
  }

  .hero-art {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: calc(100% + 20px);
    height: clamp(250px, 78vw, 360px);
    margin: 8px -20px 0;
  }

  .hero-art img {
    object-position: center bottom;
  }

  .services {
    padding: 31px 0 24px;
  }

  .services h2 {
    max-width: 360px;
    margin-bottom: 11px;
    font-size: 34px;
    line-height: 1.12;
  }

  .service-row {
    min-height: 61px;
  }

  .service-name,
  .service-state {
    font-size: 14px;
  }

  .site-footer {
    min-height: 61px;
    font-size: 10px;
  }
}

@media (max-width: 350px) {
  :root {
    --page-gutter: 16px;
  }

  .primary-nav {
    gap: 8px;
  }

  .nav-link {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 45px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
