:root {
  --paper: #f7f5ef;
  --paper-deep: #eeefe9;
  --ink: #16201d;
  --muted: #4e5752;
  --moss: #1e3c2e;
  --terracotta: #ad4d30;
  --rule: #cfd1ca;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 94rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  height: 6rem;
  margin: auto;
  padding: 0 var(--gutter);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.75rem);
}

nav a {
  font-size: 0.96rem;
  text-underline-offset: 0.35rem;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  transition: text-decoration-color 150ms ease;
}

nav a:hover,
nav a:focus-visible {
  text-decoration-color: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(22rem, 0.88fr) minmax(30rem, 1.12fr);
  min-height: min(47rem, 86vh);
  max-width: var(--max);
  margin: auto;
  padding-top: 6rem;
}

.hero-copy {
  align-self: center;
  padding: clamp(3.5rem, 8vw, 8rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 5.2vw, 5.7rem);
  line-height: 0.98;
}

.hero-copy > p {
  max-width: 35rem;
  margin: 2rem 0 1.8rem;
  color: #27302c;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: var(--terracotta);
  color: #fff;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.button:hover,
.button:focus-visible {
  background: #8f3e27;
  transform: translateY(-1px);
}

.hero-image {
  min-height: 34rem;
  background-image: url("/assets/property-exterior.webp");
  background-position: 58% center;
  background-size: cover;
}

.wrap {
  max-width: var(--max);
  margin: auto;
  padding-inline: var(--gutter);
}

.section-label {
  margin: 0 0 0.75rem;
  color: #466357;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 9rem);
  padding-block: clamp(5rem, 9vw, 9rem);
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 1.02;
}

.about-copy {
  align-self: center;
  max-width: 38rem;
  margin: 1rem 0 0;
  padding: 0 0 0 clamp(2rem, 5vw, 5rem);
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.process {
  padding-block: clamp(4.5rem, 8vw, 8rem);
  background: var(--paper-deep);
}

.process h2 {
  max-width: 16ch;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.2rem, 6vw, 7rem);
  margin: clamp(3.8rem, 6vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
}

.step-number {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--terracotta);
  font-family: var(--display);
  font-size: 1.25rem;
}

h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

.process-list p {
  max-width: 27rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max);
  margin: auto;
}

.contact-copy {
  align-self: center;
  padding: clamp(4.5rem, 8vw, 8rem) var(--gutter);
}

.contact-copy > p:not(.section-label) {
  max-width: 38rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.contact-copy > a {
  color: var(--terracotta);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.contact img {
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
  object-position: 55% center;
}

footer {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 2rem;
  max-width: var(--max);
  margin: auto;
  padding: 3rem var(--gutter);
  background: var(--moss);
  color: #f3f1e9;
}

footer .wordmark {
  font-size: 1.65rem;
}

footer p {
  justify-self: end;
  margin: 0;
  color: #d9dfd9;
  font-size: 0.86rem;
  line-height: 1.7;
  text-align: right;
}

:focus-visible {
  outline: 3px solid #d27858;
  outline-offset: 4px;
}

@media (max-width: 850px) {
  .site-header {
    position: relative;
    height: auto;
    padding-block: 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .hero-copy {
    padding-block: clamp(4rem, 15vw, 7rem);
  }

  .hero-image {
    min-height: 27rem;
    background-position: 63% center;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-copy {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .process-list {
    gap: 2.5rem;
  }

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

  .contact img {
    height: auto;
    min-height: 25rem;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-header .wordmark {
    max-width: 8ch;
    line-height: 1.04;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem 1.2rem;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.25rem);
  }

  .hero-image {
    min-height: 21rem;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
  }

  .contact img {
    min-height: 20rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer p {
    justify-self: start;
    text-align: left;
  }
}

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

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