* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: #26211f;
  background:
    linear-gradient(135deg, rgb(55 119 107 / 12%) 0 28%, transparent 28% 100%),
    #f8f1e7;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

main {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 26px;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 410px);
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
}

.eyebrow {
  margin: 0 0 10px;
  color: #316a61;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(58px, 10vw, 118px);
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 580px;
  margin: 22px 0 0;
  color: #4b403b;
  font-size: clamp(21px, 2.9vw, 32px);
  line-height: 1.12;
}

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

.actions {
  margin-top: 30px;
}

a {
  color: inherit;
  text-decoration: none;
}

.primary,
.secondary,
.phone a,
.downloads a {
  border: 1px solid rgb(35 31 32 / 16%);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(35 31 32 / 7%);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.primary,
.secondary {
  min-width: 134px;
  padding: 12px 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.primary {
  background: #2f6f64;
  color: white;
}

.secondary {
  background: #fffaf2;
}

.primary:hover,
.secondary:hover,
.phone a:hover,
.downloads a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgb(35 31 32 / 12%);
}

a:focus-visible {
  outline: 3px solid #f0b84b;
  outline-offset: 4px;
}

.domino {
  width: 100%;
  max-height: min(56vh, 520px);
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgb(35 31 32 / 18%));
}

.phone a,
.downloads a {
  flex: 1 1 220px;
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 18px;
  background: #fffaf2;
}

.phone a {
  min-height: 122px;
  background: #2f6f64;
  color: white;
}

.downloads span {
  color: #316a61;
  font-size: 18px;
  font-weight: 800;
}

.downloads strong {
  font-size: 22px;
  line-height: 1.05;
}

.downloads small {
  color: #6f625a;
  font-size: 15px;
  font-weight: 700;
}

.phone span {
  font-size: 20px;
  font-weight: 800;
}

.phone strong {
  font-size: 32px;
  line-height: 1;
}

.phone small {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.25;
}

.project-link {
  margin: -10px 0 0;
  text-align: center;
  font-size: 15px;
}

.project-link a {
  color: #6f625a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  main {
    align-content: start;
    gap: 18px;
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .domino {
    grid-row: 1;
    width: min(58vw, 260px);
    margin: 0 auto;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(48px, 18vw, 74px);
  }

  .actions,
  .phone,
  .downloads {
    gap: 10px;
  }

  .primary,
  .secondary,
  .phone a,
  .downloads a {
    flex-basis: 100%;
  }

  .primary,
  .secondary {
    width: 100%;
  }
}

@media (max-width: 420px) {
  main {
    width: min(100% - 24px, 1100px);
  }

  .phone strong {
    font-size: 28px;
  }
}
