/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
    2. Remove default margin
  */
* {
  margin: 0;
}
/*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}
/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/*
    8. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

@font-face {
  font-family: "Chivo";
  src: url("assets/fonts/subset-Chivo-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Chivo";
  src: url("assets/fonts/subset-Chivo-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

:root {
  --clr-accent-green: hsl(157, 74%, 62%);

  --clr-neutral-100: hsl(0, 0%, 100%);
  --clr-neutral-200: hsl(225, 40%, 83%);
  --clr-neutral-300: hsl(225, 21%, 45%);
  --clr-neutral-400: hsl(225, 26%, 23%);
  --clr-neutral-500: hsl(224, 35%, 11%);

  --clr-shadow: rgba(84, 230, 175, 0.5);

  --ff-primary: "Chivo", "sans-serif";

  --fw-light: 300;
  --fw-regular: 400;
}

body {
  font-family: var(--ff-primary);
  font-weight: var(--fw-light);
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--clr-neutral-400);
  background-image: url(assets/images/mobile/image-host.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
}
.page {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

header {
  display: grid;
  place-items: center;
}

.header__image {
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  max-width: 8.5rem;
}

.page__title {
  text-align: center;
  color: var(--clr-accent-green);
  font-weight: var(--fw-light);
  text-transform: uppercase;
  line-height: 1.46154;
}

.page__title--white {
  color: var(--clr-neutral-100);
}

.page__paragraph {
  color: var(--clr-neutral-200);
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.66667;
}

.page__company-list {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.7;
}

.page__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 2;
  font-weight: var(--fw-regular);
  font-size: 0.875rem;
}

.page__input {
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 1.75rem;
  background-color: var(--clr-neutral-400);
  color: var(--clr-neutral-100);
}

.page__input::placeholder {
  color: var(--clr-neutral-100);
  font-size: 0.875rem;
  opacity: 0.5;
}

.page__submit {
  padding: 0.5rem 0;
  border: none;
  border-radius: 1.75rem;
  background-color: var(--clr-accent-green);
  color: var(--clr-neutral-500);
  box-shadow: 0px 25px 20px -20px var(--clr-shadow);
}

.page__submit:is(:hover, :focus-visible) {
  background: #b3ffe2;
}

.page__error {
  margin-left: 2rem;
  color: #fb3e3e;
  font-size: 0.75rem;
}

@media (min-width: 40rem) {
  body {
    background-blend-mode: normal;
    background: url(assets/images/tablet/bg-pattern-dots.svg) no-repeat bottom
        left 2rem,
      var(--clr-neutral-500) url(assets/images/tablet/image-host.jpg) no-repeat
        top right / 492px 797px;
    padding-left: 2.5rem;
  }

  main {
    flex-grow: 1;
  }

  .page {
    padding-top: 3rem;
    max-width: 42rem;
    background-color: var(--clr-neutral-500);
    justify-items: start;
    gap: 2rem;
  }

  .header__image {
    /* margin-bottom: 9rem; */
    justify-self: start;
  }

  .page__title {
    /* margin-top: 4rem; */
    font-size: 3rem;
    line-height: 1.16667;
    text-align: left;
  }

  .page__paragraph {
    font-size: 1.125rem;
    line-height: 1.555;
    text-align: left;
    margin-right: 10rem;
  }

  .page__company-list {
    grid-row: 4 / 5;
  }

  .page__form {
    width: max-content;
    flex-direction: row;
    border-radius: 1.75rem;
    background-color: var(--clr-neutral-400);
    padding: 0.25rem;
  }

  .page__submit {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .page__error {
    position: absolute;
    margin-left: 2rem;
    margin-top: 3.25rem;
  }
}

@media (min-width: 64rem) {
  body {
    background: url(assets/images/tablet/bg-pattern-dots.svg) no-repeat bottom
        4rem right,
      var(--clr-neutral-500) url(assets/images/desktop/image-host.jpg) no-repeat
        center right;
    padding-left: 10rem;
  }
}
