:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f6f7f4;
  color: #151815;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
nav a,
footer a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 20px;
  color: #4b5148;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #2f7d5f;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.summary {
  max-width: 580px;
  margin-bottom: 28px;
  color: #555d52;
  font-size: 19px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  background: #151815;
  color: #ffffff;
}

.button--ghost {
  color: #151815;
  border: 1px solid #cfd5cb;
}

.hero__visual {
  position: relative;
  min-height: 560px;
}

.room {
  position: absolute;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  width: 72%;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgb(21 24 21 / 16%);
  background-size: cover;
  background-position: center;
}

.room::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 55%), transparent 58%);
}

.room span {
  position: relative;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.room--before {
  left: 0;
  top: 86px;
  background:
    linear-gradient(135deg, rgb(130 118 99 / 58%), rgb(53 56 50 / 50%)),
    url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=900&q=80");
}

.room--after {
  right: 0;
  top: 0;
  background:
    linear-gradient(135deg, rgb(47 125 95 / 18%), rgb(10 16 21 / 26%)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=900&q=80");
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section__heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid #dbe0d7;
  border-radius: 8px;
  background: #ffffff;
}

article p,
.section--split p,
footer p {
  color: #5d645a;
  line-height: 1.6;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #dbe0d7;
}

footer p {
  margin: 8px 0 0;
}

footer a {
  font-weight: 800;
}

@media (max-width: 820px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .section--split {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 420px;
  }

  .room {
    min-height: 320px;
  }

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