@font-face {
  font-family: Poppins;
  src: url("assets/poppins-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("assets/poppins-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --footer-height: 80px;
  color-scheme: light;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  color: #000;
  background: #e7e7e7;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--footer-height);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 16px 16px 0;
  overflow: hidden;
}

main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(24px, 0.75fr) auto;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 48px 40px;
  border-radius: 48px;
  background: #fff;
}

.intro {
  grid-row: 2;
  width: 64%;
  max-width: 960px;
  padding-top: 32px;
  text-align: center;
}

.brand {
  margin: 0;
  font-size: inherit;
  line-height: 1;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 162px;
  object-fit: contain;
}

.message {
  margin: 48px 0 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: pretty;
}

.message span {
  display: block;
}

.services {
  grid-row: 4;
  max-width: 960px;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.contact {
  display: grid;
  place-items: center;
  padding: 0 8px;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.contact a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.contact a:hover {
  text-decoration: underline;
}

.contact a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.accent {
  display: block;
  width: 88.125px;
  height: 11.25px;
  margin: 52px auto 0;
  background: #ff9598;
}

::selection {
  color: #000;
  background: #ffc4c5;
}

@media (min-width: 1600px) {
  .message,
  .services {
    font-size: 38px;
  }

  .contact {
    font-size: 24px;
  }

  .accent {
    width: 85.05px;
    height: 10.86px;
  }
}

@media (max-width: 1100px) {
  .intro {
    width: 80%;
  }

  .message,
  .services {
    font-size: 24px;
  }

  .accent {
    width: 86.77px;
    height: 11.08px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px 12px 0;
  }

  main {
    grid-template-rows: minmax(0, 1fr) auto minmax(24px, 0.5fr) auto;
    padding: 32px 24px;
    border-radius: 28px;
  }

  .intro {
    width: 100%;
    padding-top: 0;
  }

  .message {
    margin: 36px 0 0;
    font-size: 18px;
    line-height: 1.6;
  }

  .services {
    font-size: 18px;
  }

  .contact {
    font-size: 14px;
  }

  .message-second {
    margin-top: 12px;
  }

  .accent {
    width: 57.6px;
    height: 7.2px;
    margin-top: 36px;
  }
}

@media (max-height: 700px) {
  main {
    grid-template-rows: minmax(0, 1fr) auto minmax(20px, 0.65fr) auto;
    padding: 24px 24px;
  }

  .intro {
    padding-top: 0;
  }

  .brand img {
    max-height: 120px;
  }

  .message {
    margin-top: 24px;
    line-height: 1.4;
  }

  .accent {
    margin-top: 24px;
  }
}

@media (max-height: 540px) {
  main {
    grid-template-rows: minmax(0, 1fr) auto minmax(16px, 0.65fr) auto;
    padding-block: 16px;
  }

  .brand img {
    max-height: 80px;
  }

  .message,
  .services {
    font-size: 18px;
  }

  .message {
    margin-top: 20px;
  }

  .accent {
    margin-top: 20px;
  }
}

@media (max-height: 420px) {
  main {
    grid-template-rows: minmax(0, 1fr) auto minmax(8px, 0.65fr) auto;
    padding-inline: 20px;
  }

  .brand img {
    max-height: 56px;
  }

  .message,
  .services {
    font-size: 14px;
  }

  .message {
    margin-top: 12px;
  }

  .message-second {
    margin-top: 4px;
  }

  .accent {
    width: 46px;
    height: 6px;
    margin-top: 12px;
  }
}

@media (max-height: 320px) {
  main {
    grid-template-rows: minmax(0, 1fr) auto minmax(6px, 0.65fr) auto;
    padding: 8px 16px;
  }

  .brand img {
    max-height: 32px;
  }

  .message,
  .services {
    font-size: 12px;
  }

  .message {
    margin-top: 8px;
  }

  .message-second {
    margin-top: 0;
  }

  .accent {
    width: 36px;
    height: 4px;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: appear 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .brand {
    animation-delay: 0.1s;
  }

  .message-first {
    animation-delay: 0.45s;
  }

  .message-second {
    animation-delay: 0.7s;
  }

  .accent {
    animation-delay: 1s;
  }

  .services {
    animation-delay: 1.2s;
  }

  .contact {
    animation-delay: 1.4s;
  }

  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
