:root {
  --color-primary: #423f3b;
  --color-secondary: #9d6438;
  --color-accent: #b1907f;
  --color-light: #fff0f0;
  --color-greyish: #95a5a6;

  --primary-font: "PT Sans", sans-serif;
  --secondary-font: "Castoro", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--primary-font);
}

a {
  text-decoration: none;
}

ul li {
  list-style: none;
}

main {
  display: flex;
  height: 100vh;
  font-family: var(--primary-font);
  background-color: var(--color-light);
  color: var(--color-primary);
}
@media screen and (max-width: 1024px) {
  main {
    flex-direction: column;
  }
}

#home-jumbotron,
#home-content {
  height: 100%;
  width: 50%;
}
@media screen and (max-width: 1024px) {
  #home-jumbotron,
  #home-content {
    width: 100%;
  }
}

.jumbotron-image {
  display: inline-block;
  width: 100%;
  height: 100%;
  background-image: url(../assets/home-img1.jpg);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 0.3s ease-in-out;
}

#home-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}
@media screen and (max-width: 540px) {
  #home-content {
    padding: 2rem;
  }
}
@media screen and (max-width: 376px) {
  #home-content {
    padding: 1.5rem;
  }
}

header {
  margin-bottom: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#home-logo {
  text-transform: capitalize;
  font-size: 1.75rem;
  font-family: var(--secondary-font);
  color: var(--color-primary);
}
@media screen and (max-width: 540px) {
  #home-logo {
    font-size: 1.25rem;
  }
}

#menu {
  display: flex;
}

.menu-link:not(:last-child) {
  margin-right: 1.5rem;
}
.menu-link a {
  color: var(--color-secondary);
  font-size: 1.25rem;
  cursor: default;
}
.menu-link a:hover {
  color: var(--color-accent);
}
@media screen and (max-width: 540px) {
  .menu-link a {
    font-size: 1rem;
  }
}

#text {
  /* margin-top: auto; */
  margin-bottom: 3rem;
}
#text-desc {
  max-width: 90%;
  text-transform: capitalize;
  font-size: 3rem;
  font-family: var(--secondary-font);
  line-height: 1.2;
}
#text-desc span {
  font-family: var(--primary-font);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media screen and (max-width: 540px) {
  #text {
    margin-bottom: 2rem;
  }
  #text-desc {
    font-size: 2rem;
  }
  #text-desc span {
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 376px) {
  #text-desc {
    max-width: 100%;
  }
}

#subscription {
  margin-bottom: auto;
}
@media screen and (max-width: 540px) {
  #subscription {
    margin-bottom: 0;
  }
}

form {
  position: relative;
  max-width: 90%;
  display: flex;
  margin-bottom: 1rem;
}
form::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  display: inline-block;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: all 0.3s ease-in-out;
}
form:focus-within::after {
  width: 100%;
}
@media screen and (max-width: 540px) {
  form {
    margin-bottom: 0.5rem;
  }
}
@media screen and (max-width: 415px) {
  form {
    max-width: 100%;
  }
}

#email-field {
  width: 100%;
  background-color: #fff;
  color: var(--color-secondary);
  font-size: 1.125rem;
  padding: 12px;
  border: none;
  outline: none;
}
#email-field::placeholder {
  color: var(--color-greyish);
}
@media screen and (max-width: 540px) {
  #email-field {
    padding: 12px;
    font-size: 1rem;
  }
}
@media screen and (max-width: 376px) {
  #email-field {
    padding: 10px;
    font-size: 1rem;
  }
}

#btn-subs {
  min-width: fit-content;
  border: none;
  background-color: #fff;
  color: var(--color-secondary);
  padding: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: lowercase;
  cursor: pointer;
}
#btn-subs span {
  padding: 0 8px;
}
@media screen and (max-width: 376px) {
  #btn-subs {
    font-size: 0.875rem;
  }
  #btn-subs span {
    padding: 0 4px;
  }
}

#subs-detail {
  max-width: 90%;
  color: var(--color-accent);
  font-size: 0.825rem;
}
#subs-detail a {
  color: var(--color-secondary);
  font-weight: 700;
}
#subs-detail a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 540px) {
  #subs-detail {
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 415px) {
  #subs-detail {
    max-width: 100%;
  }
}
