:root {
  --text: #2b2b2b;
  --muted: #5a5a5a;
  --rule: #d9d7d0;
  --paper: #ffffff;
  --off-white: #f6f5f1;
  --field-border: #767676;
  --accent: #2f5d3a;
  --accent-dark: #234a2d;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
}

address {
  font-style: normal;
  margin: 0 0 1rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main .wrap {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.hero {
  background: var(--off-white);
  border-top: 6px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  padding: 4.5rem 0;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: 2.5rem;
}

.lead {
  font-size: 1.25rem;
  margin: 1rem 0 2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  padding: 0.65rem 1.4rem;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
}

.service {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.service-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 1.5rem;
  align-items: start;
}

.service-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}

.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.optional {
  color: var(--muted);
  font-weight: normal;
}

input,
textarea {
  display: block;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--field-border);
  border-radius: 2px;
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.65rem;
}

textarea {
  resize: vertical;
}

footer {
  background: var(--off-white);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 3rem;
  padding: 1.5rem 0 0.5rem;
}

@media (max-width: 640px) {
  .service-with-image {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .service-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .lead {
    font-size: 1.125rem;
  }
}
