:root {
  color-scheme: light;
  --paper: #fdfbf7;
  --ink: #0b172b;
  --green: #5c785f;
  --muted: #415d45;
  --rule: #deddd5;
  --gutter: clamp(1.5rem, 3vw, 2.5rem);
  --column: 70rem;
  --section-space: clamp(4rem, 6vw, 5rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
}

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

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  font-size: clamp(1.0625rem, 1.3vw, 1.125rem);
  line-height: 1.6;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: inherit; color: var(--ink); }
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.04em;
  text-wrap: balance;
}
h3 {
  font-size: 1.3125rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.025em;
}
p { line-height: 1.6; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: var(--gutter);
  z-index: 2;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.hero-copy,
main > section:not(.hero),
.site-footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--column));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .55rem;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.07em;
  text-decoration: none;
}
.brand-accent { color: var(--green); }
.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;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  font-size: 1.0625rem;
  line-height: 1.5;
}
nav a {
  padding-block: .5rem;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: .65em;
}
.site-header nav { justify-content: center; }
.site-header > .button { justify-self: end; }

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

main { padding: 0; }
main > section { scroll-margin-top: 1.5rem; }
.hero {
  display: flex;
  align-items: center;
  min-height: clamp(30rem, 43vw, 42rem);
  border-radius: 0;
  background:
    linear-gradient(90deg, #faf4ec66 0%, #faf4ec00 60%),
    url('assets/stairway-hero-v2.webp') center / cover no-repeat,
    #faf4ec;
}
.hero-copy { padding-block: 3rem; }
.hero h1 {
  font-size: clamp(3rem, 6.7vw, 5.6rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.hero p {
  margin-block: 1.4rem 1.8rem;
  max-width: 32ch;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.5;
}

.workflows { padding-block: var(--section-space); }
.section-intro { margin-bottom: 2rem; }
.section-intro p {
  max-width: 65ch;
  margin-top: 1.2rem;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: #fff;
}
.card p, .options p {
  margin-top: .75rem;
  color: var(--muted);
}

.solutions {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}
.solutions h2 { max-width: 15ch; text-wrap: initial; }
.options { min-width: 0; }
.options article + article {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}
.contact h2 { text-wrap: initial; }
.contact .button { justify-self: end; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--rule);
}
.site-footer small { font-size: .9375rem; }
.site-footer nav { gap: .5rem 1.5rem; font-size: 1rem; }
.site-footer a { overflow-wrap: anywhere; }

@media (max-width: 47.5rem) {
  :root { --section-space: clamp(2.5rem, 6.3vw, 3rem); }
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1rem;
    padding-block: 1.25rem;
  }
  .brand { justify-self: center; }
  .site-header nav { gap: 1.5rem; font-size: 1rem; }
  .site-header > .button { display: none; }
  .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;
  }
  .hero-copy { padding-block: 2.5rem; }
  .hero p { margin-block: 1.25rem 1.5rem; }
  .desktop-break { display: none; }
  .section-intro { margin-bottom: 1.5rem; }
  .cards, .solutions, .contact { grid-template-columns: minmax(0, 1fr); }
  .cards { gap: 1rem; }
  .solutions, .contact { gap: 1.75rem; }
  .solutions h2 { max-width: 21ch; }
  .contact .button { justify-self: start; }
  .site-footer { align-items: start; gap: .75rem; }
  .site-footer nav { width: 100%; gap: .25rem 1.5rem; }
}
