:root {
  --clr-accent-400: hsl(12, 88%, 59%);
  --clr-accent-100: hsl(13, 100%, 96%);

  --clr-primary-400: hsl(228, 39%, 23%);

  --clr-neutral-100: hsl(233, 12%, 13%);
  --clr-neutral-900: hsl(0, 0%, 98%);

  --ff-primary: "Be Vietnam Pro", sans-serif;

  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-primary);

  --fw-regular: 400;
  --fw-semi-bold: 500;
  --fw-bold: 700;

  --fs-400: 1.2rem;
  --fs-500: 1.5rem;
  --fs-600: 1.875rem;
  --fs-700: 2.5rem;
  --fs-750: 2.8rem;
  --fs-800: 8rem;
}

@media (min-width: 35rem) {
  :root {
    --fs-800: 5rem;
    --fs-750: 2.8rem;
    --fs-600: 1.5rem;
    --fs-500: 1rem;
    --fs-400: 1.4rem;
  }
}

@media (min-width: 44rem) {
  :root {
    /* --fs-800: 6.25rem; */
    --fs-750: 5rem;
    --fs-600: 1.5rem;
    --fs-500: 1.25rem;
    --fs-400: 1.6rem;
  }
}

@media (min-width: 75rem) {
  :root {
    /* font-sizes */
    --fs-750: 7rem;
    --fs-700: 3rem;
    --fs-600: 2rem;
    --fs-500: 1.75rem;
    --fs-400: 4rem;
  }
}

/* https://piccalil.li/blog/a-modern-css-reset/ */

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

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

/* 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 {
  height: 100%;
  font-size: 62.5%;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: var(--ff-primary);
  font-size: 1.4rem;
  overflow-x: hidden;
  min-height: 110vh;
  /* max-width: 1440px; */
}

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

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

a {
  text-decoration: none;
}

/* 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;
  }
}

/* utilities */
.container {
  margin: 1.25rem 1rem;
}

.flex {
  display: flex;
  gap: var(--gap, 1rem);
}

.d-block {
  display: block;
}

/* screen reader */

/* text color */
.text-accent-400 {
  color: var(--clr-accent-400);
}
.text-accent-100 {
  color: var(--clr-accent-100);
}
.text-primary {
  color: var(--clr-primary-400);
}
.text-neutral-100 {
  color: var(--clr-neutral-100);
}
.text-neutral-900 {
  color: var(--clr-neutral-900);
}

.bg-light {
  background-color: var(--clr-accent-400);
}
.bg-dark {
  background-color: var(--clr-primary-400);
}

.central {
  color: var(--clr-accent-400);
}

/* font weights */
.fw-regular {
  font-weight: var(--fw-regular);
}
.fw-semi-bold {
  font-weight: var(--fw-semi-bold);
}
.fw-bold {
  font-weight: var(--fw-bold);
}

/* font sizes */
.fs-300 {
  font-size: var(--fs-300);
}
.fs-400 {
  font-size: var(--fs-400);
}
.fs-500 {
  font-size: var(--fs-500);
}
.fs-600 {
  font-size: var(--fs-600);
}
.fs-700 {
  font-size: var(--fs-700);
}
.fs-750 {
  font-size: var(--fs-750);
}
.fs-800 {
  font-size: var(--fs-800);
}

/* navbar */

/* primary header */

.logo {
  margin: 2rem;
  font-size: 3rem;
}

.primary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2rem;

  width: 100%;
}

.primary-navigation {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-link {
  margin-right: 2rem;
  font-size: 1.8rem;
}

.btn-outline .nav-link:hover {
  transform: scale(1.1);
  transition: 0.3s;
  letter-spacing: 3px;
}

.mobile-nav-toggle {
  display: none;
}

/* btns */
.login {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.8rem;
  letter-spacing: 4px;
}

.btn-signup {
  padding: 1rem 2rem;
  border-radius: 8px;
  letter-spacing: 4px;
  font-size: 1rem;
}
.btn-login {
  padding: 1rem 2rem;
  border-radius: 8px;
  letter-spacing: 4px;
  background: var(--clr-accent-400);
  font-size: 1rem;
}
.hero-container {
  margin: 2rem;
}

/* hero section */
.hero-container {
  border-radius: 8px;

  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row-reverse;
  width: 95%;
  margin: 1rem;
}
h1 {
  /* text-align: right; */
  padding-top: 2rem;
}

.banner-img {
  display: block;
  width: 50%;

  object-fit: contain;
}

/* Footer Section */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: space-between;
  padding: 5rem 3rem 5rem 2.5rem;
  margin-top: 5rem;
  /* min-height: 42%; */
}

.footer-logo {
  display: block;
  margin: 0;
  padding-top: 0;
  font-size: 3.5rem;
}

.footer-box {
  display: flex;
  flex-direction: column;
}

.footer-box a {
  font-size: 2rem;
  margin-bottom: 6.5rem;
}

.footer-title {
  opacity: 0.5;
  font-size: 2.4rem;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  margin-bottom: 5.5rem;
}
.attribution {
  color: lightgrey;
}

/* Larger Screens */
@media only screen and (min-width: 1441px) and (max-width: 2000px) {
  body {
    width: 100%;
  }

  .logo {
    font-size: 6rem;
  }

  .nav-link {
    font-size: 2.4rem;
  }

  .primary-header {
    padding-right: 0;
  }

  .login {
    margin-left: 3rem;
  }

  .btn-signup,
  .btn-login {
    font-size: 1.6rem;
    padding: 2rem 3rem;
  }
}

/* Tablets */
@media only screen and (min-width: 752px) and (max-width: 1200px) {
  .logo {
    font-size: 2rem;
  }

  .nav-link {
    font-size: 1.4rem;
  }

  .btn-logout {
    display: block;
    border: 0;
    padding: 2rem 1rem 3rem 1rem;
    font-size: 1.8rem;
    text-align: center;
  }

  .footer {
    display: flex;
    margin-top: 3rem;
    min-height: 42vh;
  }

  .footer-title {
    margin-block: 0 4.5rem;
  }

  .footer-box {
    display: flex;
  }
  .footer-box a {
    margin-bottom: 4rem;
  }
}

/* Mobile Devices */
@media only screen and (max-width: 48rem) {
  .primary-header {
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .logo {
    margin: 0 0 0 1rem;
    font-size: 2rem;
  }
  .primary-navigation {
    position: fixed;
    z-index: 1000;
    --gap: 2rem;
    inset: 0 0 0 30%;
    flex-direction: column;
    padding: min(30vh, 10rem) 2rem;
    background: hsl(228 39% 23% / 0.8);
    -webkit-backdrop-filter: blur(1rem);
    backdrop-filter: blur(1rem);
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
  }
  .nav-link {
    color: var(--clr-accent-100);
  }

  .nav-link {
    margin-right: 0;
  }

  .login {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;
    background: url("../images/icon-menu.svg");
    background-repeat: no-repeat;
    z-index: 9999;
    width: 2.6rem;
    aspect-ratio: 1;
    top: 1.2%;
    right: 3%;
    border: 0;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background-image: url("../images/icon-close-menu.svg");
  }
  .mobile-nav-toggle[aria-expanded="false"] {
    background-image: url("../images/icon-menu.svg");
  }

  /* Footer */
  .footer {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding: 2.5rem 2.5rem 5rem 2.5rem;
    font-size: 0.875rem;
  }

  .footer > section {
    margin-bottom: 2.5rem;
  }

  .footer-logo {
    font-size: 2rem;
    padding-block: 0 2rem;
  }

  .footer-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1.8rem;
  }

  .footer-box a {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .footer-box:last-child {
    margin-bottom: 0;
  }

  .footer-title {
    margin-bottom: 1rem;
    opacity: 0.5;
    font-size: 1.5rem;
    text-transform: uppercase;
  }
}
