:root {
  color-scheme: light;
  --ink: #101a17;
  --paper: #faf4ec;
  --green: #105b2a;
  --sage: #eef2e1;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1280px; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #287548; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-family: var(--serif); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.8vw, 3.7rem); line-height: 1.05; text-wrap: balance; }
h3 { font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.12; }
p { line-height: 1.43; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem clamp(1rem, 4.4vw, 3.5rem) 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 750;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -.07em;
  text-decoration: none;
}

.brand-accent { color: #588867; }
.brand-mark {
  position: relative;
  width: .8em;
  height: .9em;
  transform: translateY(-.06em);
}
.brand-mark::before, .brand-mark::after {
  content: '';
  position: absolute;
  width: 86%;
  height: 36%;
  background: var(--green);
  transform: skewY(-29deg);
}
.brand-mark::before { top: .07em; right: 0; }
.brand-mark::after { bottom: .06em; left: 0; }

nav { display: flex; gap: clamp(1rem, 4vw, 3rem); font-family: var(--serif); }
nav a, .site-footer a { text-decoration: none; }
nav a:hover, .site-footer a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 10.625rem;
  max-width: 100%;
  height: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: .7rem;
  background: #5c785f;
  color: white;
  padding: .65em .75em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #48624b; }

main { padding-inline: clamp(.85rem, 2vw, 1.6rem); }

.hero {
  min-height: clamp(25rem, 47vw, 35rem);
  display: flex;
  align-items: center;
  border-radius: 1.55rem;
  background:
    linear-gradient(90deg, #faf4ec66 0%, #faf4ec00 60%),
    url('assets/stairway-hero-v2.webp') center / cover no-repeat,
    #faf4ec;
}

.hero-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  line-height: .99;
  letter-spacing: -.065em;
}
.hero p {
  margin-block: 1.25rem 1.8rem;
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  line-height: 1.18;
}

.workflows { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.section-intro { padding-inline: clamp(.2rem, 2vw, 1.5rem); margin-bottom: 1.8rem; }
.section-intro p { max-width: 68ch; margin-top: .9rem; font-size: clamp(1rem, 2.2vw, 1.4rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .solutions { background: var(--sage); border-radius: 1.45rem; }
.card { padding: clamp(1rem, 2.6vw, 2rem); }
.card:nth-child(2) { background: #f9eedb; }
.card p, .options p { margin-top: .75rem; font-size: clamp(1rem, 1.95vw, 1.3rem); }

.solutions { margin-top: 1.4rem; padding: clamp(1.3rem, 3.2vw, 2.6rem); }
.options { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.65rem; }
.options article:first-child { padding-right: clamp(1rem, 5vw, 4rem); }
.options article + article {
  border-left: 1px solid #d6ddcd;
  padding-left: clamp(1rem, 5vw, 4rem);
}

.contact {
  padding: clamp(2.2rem, 5vw, 4rem) clamp(.35rem, 2vw, 1.5rem);
  background:
    radial-gradient(ellipse 60% 90% at 92% 165%, #68956b55 99%, transparent 100%),
    radial-gradient(ellipse 42% 115% at 112% 170%, #96b78a66 99%, transparent 100%);
}
.contact h2 { text-wrap: initial; }
.contact .button { margin-top: 1.65rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4.4vw, 3.5rem);
  border-top: 1px solid #aebbae;
}

.home-page {
  --home-gutter: clamp(.85rem, 2vw, 1.6rem);
  max-width: none;
}

.home-page .site-header,
.home-page .site-footer {
  max-width: 1280px;
  margin-inline: auto;
}

.home-page main { padding-inline: 0; }
.home-page main > section:not(.hero) {
  width: calc(100% - 2 * var(--home-gutter));
  max-width: calc(1280px - 2 * var(--home-gutter));
  margin-inline: auto;
}

.home-page .hero {
  min-height: clamp(30rem, 43vw, 42rem);
  border-radius: 0;
}

.home-page .hero-copy {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; padding-bottom: 1rem; }
  .home-page .hero { min-height: 30rem; }
  nav { order: 1; width: 100%; }
  .hero {
    align-items: end;
    min-height: 30rem;
    background:
      linear-gradient(0deg, #faf4ec 42%, #faf4ec00 78%),
      url('assets/stairway-hero-v2.webp') top right / max(100%, 34rem) auto no-repeat,
      #faf4ec;
  }
  .desktop-break { display: none; }
  .cards, .options { grid-template-columns: 1fr; }
  .options article:first-child { padding-right: 0; }
  .options article + article {
    border-left: 0;
    border-top: 1px solid #d6ddcd;
    margin-top: 1.2rem;
    padding: 1.2rem 0 0;
  }
}
