:root {
  color-scheme: light;
  --accent: #f32f67;
  --ink: #101014;
  --muted: #6d6d73;
  --hairline: #e7e7ea;
  --page: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 650;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  width: min(100%, 1536px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 88px 88px;
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(420px, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "intro product"
    "footer product";
  column-gap: 0;
  overflow: hidden;
}

.intro {
  grid-area: intro;
  align-self: center;
  padding-left: 64px;
  transform: translateY(-22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--accent);
  font-size: 78px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.message {
  margin-top: 60px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 80px;
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.061em;
}

h1 span {
  color: inherit;
}

.message p {
  max-width: 520px;
  margin: 34px 0 0;
  color: #45454b;
  font-size: 30px;
  font-weight: 430;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.product-shot {
  grid-area: product;
  align-self: center;
  justify-self: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.phone-frame {
  width: min(100%, 420px);
  padding: 10px;
  border: 1px solid #cfcfd4;
  border-radius: 57px;
  background: #050506;
  box-shadow:
    0 38px 78px rgba(18, 18, 24, 0.2),
    0 8px 22px rgba(18, 18, 24, 0.12),
    0 24px 72px rgba(243, 47, 103, 0.12);
  margin: 0 auto;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 47px;
}

footer {
  grid-area: footer;
  align-self: end;
  padding-left: 64px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 1200px) and (min-width: 901px) {
  .page {
    padding-inline: 40px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  }

  .intro,
  footer {
    padding-left: 24px;
  }

  .intro {
    transform: none;
  }

  .brand {
    gap: 18px;
    font-size: 54px;
  }

  .brand-mark {
    width: 104px;
    height: 104px;
  }

  h1 {
    font-size: clamp(58px, 6.7vw, 76px);
  }

  .message p {
    font-size: 26px;
  }

  .phone-frame {
    width: min(100%, 380px);
  }
}

@media (max-width: 900px) {
  .page {
    min-height: auto;
    padding: 34px 24px 30px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "intro"
      "product"
      "footer";
    row-gap: 46px;
    overflow: visible;
  }

  .intro {
    padding-left: 0;
    transform: none;
  }

  .brand {
    gap: 12px;
    font-size: 27px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .message {
    margin-top: 58px;
  }

  h1 {
    font-size: clamp(48px, 13.5vw, 64px);
    line-height: 1;
  }

  .message p {
    max-width: 340px;
    margin-top: 28px;
    font-size: 21px;
  }

  .product-shot {
    width: 100%;
    padding: 0;
  }

  .phone-frame {
    width: min(82vw, 330px);
    margin: 0 auto;
    border-radius: 49px;
  }

  .phone-frame img {
    border-radius: 39px;
  }

  footer {
    padding-left: 0;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .page {
    padding-inline: 20px;
  }

  h1 {
    letter-spacing: -0.055em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
