/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role=list],
ol[role=list] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  text-decoration: none;
}

/* Make images easier to work with */
img,
picture,
svg,
video {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Custom fonts */
@font-face {
  font-family: "Public Sans";
  font-weight: 300;
  src: url("../fonts/PublicSans-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Public Sans";
  font-weight: 400;
  src: url("../fonts/PublicSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Public Sans";
  font-weight: 600;
  src: url("../fonts/PublicSans-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Public Sans";
  font-weight: 700;
  src: url("../fonts/PublicSans-Bold.ttf") format("truetype");
}
/* Style variables */
:root,
::after,
::before {
  --container-width: 1110px;
  --clr-dark-blue: hwb(233 18% 70%);
  --clr-lime-green: hsl(136, 65%, 51%);
  --clr-bright-cyan: hsl(192, 70%, 51%);
  --clr-lime-green-light: #80e49b;
  --clr-bright-cyan-light: #7cd5e5;
  --clr-grayish-blue: hsl(233, 8%, 62%);
  --clr-light-grayish-blue: hsl(220, 16%, 96%);
  --clr-very-light-gray: hsl(0, 0%, 98%);
  --clr-white: hsl(0, 0%, 100%);
  --grad-100: linear-gradient(to right, var(--clr-lime-green), var(--clr-bright-cyan));
  --grad-200: linear-gradient(to right, var(--clr-lime-green-light), var(--clr-bright-cyan-light));
  --ff-primary: "Public Sans", sans-serif;
  --fw-300: 300;
  --fw-400: 400;
  --fw-600: 600;
  --fw-700: 700;
  --5px: 0.277rem;
  --10px: 0.555rem;
  --12px: 0.666rem;
  --13px: 0.722rem;
  --14px: 0.777rem;
  --15px: 0.833rem;
  --16px: 0.888rem;
  --18px: 1rem;
  --20px: 1.111rem;
  --22px: 1.222rem;
  --24px: 1.333rem;
  --25px: 1.388rem;
  --26px: 1.444rem;
  --30px: 1.666rem;
  --32px: 1.777rem;
  --33px: 1.833rem;
  --34px: 1.888rem;
  --35px: 1.944rem;
  --40px: 2.222rem;
  --42px: 2.333rem;
  --50px: 2.777rem;
  --54px: 3rem;
  --56px: 3.111rem;
  --60px: 3.333rem;
  --64px: 3.555rem;
  --65px: 3.611rem;
  --72px: 4rem;
  --80px: 4.444rem;
  --85px: 4.722rem;
  --90px: 5rem;
  --100px: 5.555rem;
  --120px: 6.666rem;
  --105px: 5.833rem;
  --170px: 9.444rem;
  --290px: 16.111rem;
  --460px: 25.555rem;
  --transition: all 200ms ease;
}

html {
  font-size: 18px;
}

body {
  background-color: var(--clr-very-light-gray);
  font-family: var(--ff-primary);
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--clr-dark-blue);
  font-weight: var(--fw-300);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: var(--24px);
}

h1 {
  font-size: var(--56px);
}

h2 {
  font-size: var(--40px);
}

h3 {
  font-size: var(--26px);
}

p {
  color: var(--clr-grayish-blue);
  margin-bottom: var(--40px);
  line-height: 1.6;
}

.container {
  --padding: 1rem;
  margin-inline: auto;
  position: relative;
  width: min(var(--container-width), 100% - var(--padding) * 2);
  z-index: 1;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.top {
  background-color: var(--clr-white);
  position: relative;
  z-index: 2;
}
.top .container {
  height: var(--80px);
}
.top .flex > * {
  flex-grow: 1;
  align-self: center;
}
.top .flex > *:last-child {
  display: flex;
  justify-content: flex-end;
}
.top nav ul {
  display: flex;
  justify-content: space-evenly;
}
.top nav ul a {
  display: inline-block;
  line-height: 1;
  padding: var(--33px) 0;
  position: relative;
}
.top nav ul a::after {
  background: var(--grad-100);
  bottom: 0;
  content: "";
  height: 4px;
  position: absolute;
  right: 0;
  width: 0;
  transition: var(--transition);
}
.top nav ul a:hover::after, .top nav ul a:focus::after {
  width: 100%;
}

nav ul {
  font-size: var(--14px);
  list-style: none;
}
nav ul a {
  color: var(--clr-grayish-blue);
  transition: var(--transition);
}
nav ul a:hover, nav ul a:focus {
  color: var(--clr-dark-blue);
}

.button {
  border-radius: var(--30px);
  color: var(--clr-white);
  display: inline-block;
  font-weight: var(--fw-600);
  font-size: var(--14px);
  line-height: 1;
  overflow: hidden;
  padding: var(--15px) var(--35px);
  position: relative;
  transition: var(--transition);
  z-index: 1;
}
.button::before, .button::after {
  content: "";
  background: var(--grad-100);
  border-radius: var(--30px);
  bottom: 0;
  height: 100%;
  left: 0;
  opacity: 1;
  position: absolute;
  top: 0;
  transition: var(--transition);
  width: 100%;
  z-index: -2;
}
.button::after {
  background: var(--grad-200);
  z-index: -1;
  opacity: 0;
}
.button:hover::after, .button:focus::after {
  opacity: 1;
}

header {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
}
.hero::before {
  background: 470px -260px url(../images/bg-intro-desktop.svg) no-repeat;
  bottom: 0;
  content: "";
  height: 100%;
  left: calc((100% - var(--container-width)) / 2 - 15px);
  position: absolute;
  width: 2000px;
}
.hero .container {
  padding: var(--170px) 0;
}
.hero .grid {
  grid-template-columns: var(--460px) 1fr;
}
.hero .phones {
  position: absolute;
  right: -300px;
  top: -120px;
  z-index: -1;
}

.features {
  background-color: var(--clr-light-grayish-blue);
}
.features .container {
  padding: var(--105px) 0 var(--65px);
}
.features .grid {
  gap: var(--30px);
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.features .feature-list {
  list-style: none;
  padding-top: var(--30px);
}
.features .feature-list p {
  font-size: var(--16px);
}
.features .feature-list img {
  display: block;
  height: var(--72px);
  margin-bottom: var(--40px);
}

.articles .container {
  padding: var(--90px) 0 var(--65px);
}
.articles .grid {
  gap: var(--30px);
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.articles .article-list {
  list-style: none;
  padding-top: var(--25px);
}
.articles .article-list li {
  background-color: var(--clr-white);
  border-radius: var(--5px);
}
.articles .article-list h3 {
  font-size: var(--20px);
  margin-bottom: var(--10px);
}
.articles .article-list a {
  color: var(--clr-dark-blue);
  transition: var(--transition);
}
.articles .article-list a:hover, .articles .article-list a:focus {
  color: var(--clr-lime-green);
}
.articles .article-list p {
  font-size: var(--13px);
  line-height: 1.4;
  margin: 0;
}
.articles .article-list .thumb {
  background-size: cover;
  border-radius: var(--5px) var(--5px) 0 0;
  padding-top: 78.45%;
}
.articles .article-list .excerpt {
  padding: var(--25px);
}
.articles .article-list .author {
  display: block;
  font-size: var(--10px);
  color: var(--clr-grayish-blue);
  margin-bottom: var(--10px);
}

footer {
  background-color: var(--clr-dark-blue);
  padding: var(--50px) 0;
}
footer > .flex > * {
  flex-grow: 1;
}
footer nav ul {
  flex-flow: column wrap;
  max-height: var(--100px);
  gap: var(--18px);
}
footer nav a:hover {
  color: var(--clr-lime-green);
}
footer .left {
  max-width: var(--290px);
  gap: var(--56px);
  flex-flow: column wrap;
}
footer .left ul {
  list-style: none;
  gap: var(--18px);
}
footer .left li img {
  transition: var(--transition);
}
footer .left li a:hover img, footer .left li a:focus img {
  filter: sepia(100%) saturate(3000%) hue-rotate(70deg) brightness(90%) contrast(100%);
}
footer .right {
  text-align: right;
}
footer .right .button {
  margin-bottom: var(--25px);
}
footer .right p {
  font-size: var(--14px);
  margin: 0;
}

.mobile {
  display: none;
}

.menu-toggle {
  bottom: 0;
  height: var(--32px);
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  transition: var(--transition);
  width: var(--32px);
}
.menu-toggle::after, .menu-toggle::before {
  content: "";
  position: absolute;
  background-color: var(--clr-dark-blue);
  display: block;
  width: 100%;
  height: 2px;
  transition: 200ms all;
}
.menu-toggle::after {
  top: 7px;
}
.menu-toggle::before {
  bottom: 7px;
}
.menu-toggle span {
  background-color: var(--clr-dark-blue);
  bottom: 0;
  display: block;
  height: 2px;
  margin: auto;
  position: absolute;
  top: 0;
  transition: var(--transition);
  width: var(--32px);
}
.menu-toggle span::after, .menu-toggle span::before {
  background-color: var(--clr-dark-blue);
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  transition: var(--transition);
  width: var(--32px);
}

.open {
  overflow: hidden;
}
.open .menu-toggle::after, .open .menu-toggle::before {
  background-color: transparent;
}
.open .menu-toggle span {
  background-color: transparent;
}
.open .menu-toggle span::before {
  transform: rotate(45deg);
  top: 0;
}
.open .menu-toggle span::after {
  transform: rotate(-45deg);
  top: 0;
}
.open .top nav {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

@media screen and (max-width: 64em) {
  .container {
    --padding: var(--25px);
  }
}
@media screen and (max-width: 60em) {
  .hero::before {
    background-position: 520px -260px;
  }
  .hero .phones {
    right: -300px;
    width: 80%;
  }
  .hero .container {
    padding: var(--120px) 0;
  }
  .features .grid,
  .articles .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 48em) {
  .desktop {
    display: none;
  }
  .mobile {
    display: block;
  }
  .top .container {
    height: var(--64px);
  }
  .top nav {
    background-color: rgba(45, 49, 77, 0.2);
    position: absolute;
    height: 100vh;
    height: 100dvh;
    margin: 0 calc(var(--25px) * -1);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    top: var(--64px);
    visibility: hidden;
    width: 100vw;
    width: 100dvw;
  }
  .top nav ul {
    background-color: var(--clr-white);
    border-radius: 5px;
    box-shadow: 0 0 200px 50px rgb(45, 49, 77);
    display: block;
    margin: auto;
    padding: var(--25px) var(--25px) var(--15px);
    position: absolute;
    right: var(--25px);
    text-align: center;
    top: var(--20px);
    width: 375px;
  }
  .top nav ul li {
    padding: var(--13px) 0;
  }
  .top nav ul a {
    color: var(--clr-dark-blue);
    font-size: var(--18px);
    padding: 0 0 var(--5px);
  }
  .hero::before {
    background: right -150px url(../images/bg-intro-mobile.svg) no-repeat;
    background-size: contain;
    width: 100%;
    left: 0;
  }
  .hero .container.grid {
    display: block;
    padding-top: 0;
    padding-bottom: var(--100px);
  }
  .hero .absolute-container {
    margin-bottom: var(--35px);
    padding-top: 87%;
    position: relative;
  }
  .hero .phones {
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
  }
  .hero-content {
    text-align: center;
  }
  .features {
    text-align: center;
  }
  .features .feature-list img {
    margin: 0 auto var(--40px);
  }
  .articles h2 {
    text-align: center;
  }
  footer {
    padding: var(--35px) 0;
  }
  footer .container.flex {
    display: block;
  }
  footer .left {
    align-items: center;
    gap: var(--30px);
    margin-bottom: var(--35px);
    max-width: 100%;
  }
  footer nav ul {
    align-items: center;
    margin-bottom: var(--35px);
    text-align: center;
  }
  footer nav ul li {
    margin-bottom: var(--10px);
  }
  footer nav ul a {
    color: var(--clr-white);
  }
  footer .right {
    text-align: center;
  }
}
@media screen and (max-width: 30rem) {
  h1,
  h2,
  h3,
  h4,
  h5 {
    margin-bottom: var(--20px);
  }
  h1 {
    font-size: var(--40px);
  }
  h2 {
    font-size: var(--34px);
  }
  h3 {
    font-size: var(--22px);
  }
  p {
    font-size: var(--16px);
    margin-bottom: var(--25px);
  }
  .top nav ul {
    left: var(--25px);
    width: auto;
  }
  .hero::before {
    background-position: right -80px;
  }
  .hero .container.grid {
    padding-bottom: var(--80px);
  }
  .hero .absolute-container {
    margin-bottom: var(--25px);
  }
  .features .grid,
  .articles .grid {
    grid-template-columns: 1fr;
  }
  .features .container {
    padding: var(--60px) 0 var(--40px);
  }
  .features .grid {
    gap: var(--10px);
  }
  .features .feature-list img {
    margin-bottom: var(--30px);
  }
  .articles .grid {
    gap: var(--25px);
  }
  .articles .article-list {
    padding-top: var(--10px);
  }
  .articles .article-list .thumb {
    padding-top: 62%;
  }
  footer nav ul {
    max-height: unset;
  }
  footer nav .flex {
    display: block;
  }
}

/*# sourceMappingURL=style.css.map */
