:root {
  color-scheme: dark;
  --surface: #222a2a;
  --surface-deep: #141414;
  --text: #f5f5f4;
  --muted: #d7dada;
  --page-gutter: clamp(20px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Poppins", "Avenir Next", Avenir, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 750;
  line-height: 1.2;
}

p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}

.wide-feature {
  background: var(--surface);
}

.wide-feature--space {
  background: var(--surface-deep);
}

.wide-feature__copy {
  padding: clamp(26px, 3.2vw, 48px) var(--page-gutter) 32px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  padding: 8px;
  background: #fff;
  border-radius: 15px;
  object-fit: contain;
}

.wide-feature h1,
.wide-feature h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 2.4vw, 36px);
  text-transform: uppercase;
}

.wide-feature h1 + h2,
.wide-feature h2 + h3 {
  margin-top: 24px;
}

.wide-feature h1 + h2 {
  font-size: clamp(21px, 2vw, 28px);
}

.wide-feature h3 {
  margin-bottom: 18px;
  font-size: clamp(21px, 2.2vw, 28px);
}

.wide-feature__image {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: cover;
  object-position: center;
}

.feature-list {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  padding: clamp(48px, 6vw, 88px) var(--page-gutter);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
}

.feature-row__image {
  width: 100%;
  max-height: 500px;
  border-radius: 24px;
  object-fit: cover;
}

.feature-row__copy {
  padding-block: 8px;
}

.feature-row h2 {
  margin-bottom: 20px;
  font-size: clamp(25px, 2.7vw, 38px);
  text-transform: uppercase;
}

.feature-row h3 {
  margin-bottom: 18px;
  font-size: clamp(20px, 2vw, 28px);
}

.feature-row .feature-icon {
  margin-bottom: 24px;
}

.feature-row--reverse .feature-row__copy {
  grid-column: 1;
  grid-row: 1;
}

.feature-row--reverse .feature-row__image {
  grid-column: 2;
  grid-row: 1;
}

@media (min-width: 1500px) {
  .wide-feature__copy {
    padding-inline: max(var(--page-gutter), calc((100vw - 1440px) / 2));
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 22px;
  }

  .wide-feature__copy {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
  }

  .wide-feature h1,
  .wide-feature h2 {
    margin-bottom: 14px;
  }

  .wide-feature h1 + h2,
  .wide-feature h2 + h3 {
    margin-top: 20px;
  }

  .wide-feature__image {
    min-height: 250px;
    max-height: 65vh;
    object-fit: cover;
  }

  .feature-list {
    gap: 52px;
    padding-block: 52px;
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .feature-row__copy,
  .feature-row--reverse .feature-row__copy {
    grid-column: 1;
    grid-row: 1;
  }

  .feature-row__image,
  .feature-row--reverse .feature-row__image {
    grid-column: 1;
    grid-row: 2;
    max-height: 420px;
    border-radius: 18px;
  }

  .feature-row h2 {
    margin-bottom: 14px;
  }

  .feature-row h3 {
    margin-bottom: 14px;
  }
}

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