:root {
  color-scheme: light;
  --ink: #20211f;
  --paper: #f3f0e8;
  --line: rgba(32, 33, 31, 0.18);
  --accent: #e05a3f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.small-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.small-link {
  border-bottom: 1px solid currentColor;
}

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 950px;
  margin-bottom: 32px;
  font-size: clamp(4rem, 10vw, 8.4rem);
  line-height: 0.86;
}

.intro {
  max-width: 620px;
  margin-bottom: 36px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 15px 19px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.work {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 44px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
}

.card-warm {
  background: #d9a44b;
}

.card-cool {
  background: #aac4b2;
}

.card-number {
  font-size: 0.76rem;
  font-weight: 600;
}

.card h3 {
  margin-bottom: 10px;
  font-family: "Newsreader", serif;
  font-size: 2.3rem;
  font-weight: 500;
}

.card p:last-child {
  max-width: 350px;
  margin-bottom: 0;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 50px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 78vh;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.5rem);
  }

  .section-heading {
    display: block;
  }

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

  .card {
    min-height: 340px;
  }
}
