p {
  font-size: 16px;
  font-weight: 300;
}

h3 {
  font-weight: 500;
  font-size: 22px;
  padding-bottom: 10px;
  padding-top: 20px;
}

button {
  display: inline-block;
  border: none;
  padding: 1rem 2rem;
  margin: 0;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background 250ms ease-in-out, transform 150ms ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: normal;
  height: auto;
}

button:hover,
button:focus {
  background: #D74344;
}

section {
  margin-bottom: 64px;
}

#farmers-splash {
  background: url('../img/farmers_banner.png');
  position: relative;
  text-align: center;
  background-color: #F2F2F2;
  background-position: center;
  width: 100vw;
  padding: 72px 32px;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.farmers-fold {
  margin-bottom: 64px;
}

.title {
  margin: 1.5rem auto;
}

.banner_title {
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.banner_body {
  font-family: Roboto;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 22px;

  text-align: center;
  color: #FFFFFF;
}

.section_title {
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
  letter-spacing: -0.02em;
  color: #222222;
}

.subtitle_body {
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 140%;
  text-align: center;
  color: #222222;
}

#cards-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.cards-header {
  text-align: center;
}

.farm-card {
  position: relative;
  margin: 32px 0;
  text-align: left;
}

.farmer-img {
  width: 100%;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  margin-bottom: 16px;
}

.farm-card .farmer-img {
  aspect-ratio: 1 / 1;
}

.story-wrapper .farmer-img {
  object-fit: cover;
  /* same as most of the imgs */
  aspect-ratio: 414 / 237;
}

.card_title {
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.standards-container .card_title {
  font-size: 18px;
  line-height: 21px;
  font-weight: 700;
  margin: 0.5rem 0;
}

.standards-container p {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  margin: 0;
}

.story-link {
  cursor: pointer;
}

.highlight-text {
  font-style: normal;
  font-weight: bold;
  font-size: 20px;
  text-decoration-line: underline;
  color: #D74344;
  cursor: pointer;
}

.farm-location {
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  line-height: 32px;
  margin-bottom: 16px;
}

.farm-location img {
  height: 16px;
  width: 16px;
  margin-right: 2%;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  padding: 16px 24px;
  background: #D74344;
  border-radius: 8px;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  color: #FFFFFF;
}

.standards-container {
  margin: 1.2rem 0 0;
  padding: 30px 15px;
  box-shadow: 0px 2px 7px rgb(0 0 0 / 15%);
  border-radius: 16px;
  max-width: 450px;
}

#our-standards img {
  width: 76px;
  height: 57px;
  object-fit: contain;
}

.farm-map {
  display: block;
  margin: 0 auto;
  margin-top: 32px;
  width: 100%;
}

#learn .btn-primary {
  display: block;
  margin: 0 auto;
}

.story-wrapper .banner_title {
  color: #222222;
  margin-bottom: 16px;
  padding-bottom: 0px;
}

.story-wrapper p {
  text-align: left;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}

.location-subheader {
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 140%;
  color: #222222;
  margin-bottom: 40px;
  display: block;
}

.bold-text {
  font-weight: 500;
}

.story-wrapper {
  display: none;
}

.story-wrapper .btn-primary {
  display: block;
  text-align: left;
}

.back-to-farms {
  text-align: left;
  display: block;
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  line-height: 32px;
  color: #D74344;
  cursor: pointer;
  font-weight: 700;
}

.back-to-farms span {
  text-decoration: underline;
}

#customers-reviews {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

#customers-reviews p {
  margin: 0;
}

.stories-header .banner_title {
  margin: 1rem 0;
}

.standards-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tablet Queries */
@media (min-width: 768px) {
  .farm-card {
    max-width: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #cards-container {
    justify-content: space-evenly;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .stories-header {
    text-align: left;
  }

  .story-wrapper .banner_title {
    text-align: left;
  }

  .cards-header {
    text-align: center;
    flex-basis: 100%;
  }
}

@media (min-width: 960px) {
  #farmers-splash {
    background: url('../img/farmers_banner.png');
    position: relative;
    text-align: center;
    background-color: #F2F2F2;
    background-position: bottom;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    width: 100vw;
    padding: 7% 23%;
  }

  .standards-container {
    flex: 1 1 31%;
    justify-content: space-around;
    margin: 1%;
    height: 350px;
  }

  #our-standards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  #our-standards .section_title {
    flex-basis: 100%;
  }

  #our-standards .card_title {
    margin-bottom: 16px;
    padding-bottom: 0px;
  }

  .section_title {
    font-size: 36px;
  }

  .subtitle_body {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    margin: 1rem 2rem;
  }

  .banner_title {
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: -0.02em;
    margin: 1rem;
  }

  .banner_body {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    margin: 1rem 2rem;
  }

  .cards-header {
    text-align: center;
    flex-basis: 100%;
  }

  .standards-cards-container {
    flex-direction: row;
  }
}

#how-it-works p {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  margin: 0;
}

#how-it-works h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: -0.02em;
}

.fold {
  padding: 36px 50px;
}

a.item_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: #D74344;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0px 4px 20px rgba(255, 255, 255, 0.25);
  margin: 8px auto;
  border: 1px solid #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.05em;
  width: max-content;
}

/* avoid horizontal scrollbar */
body {
  overflow-x: hidden;
  text-align: center;
}

/* change background for specific articles */
#plans,
#faq {
  background-color: #F2F2F2;
}

/* all articles inside the #how-it-works main element should fill 100% vw */
#how-it-works article {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

#how-it-works article>* {
  max-width: 960px;
  margin: 0 auto;
}

/* splash article */
#splash {
  position: relative;
  text-align: center;
  background: url('../img/membership_splash.JPG');
  background-size: cover;
  background-position: right;
  box-shadow: inset 0 0 0 100vw rgba(0, 0, 0, 0.4);
  vertical-align: middle;
  width: 100vw;
  padding: 72px 32px;
}

.title {
  color: white;
  margin: 1.5rem auto;
}

.span_title {
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.02em;
  margin: 1rem;
}

.title_body {
  font-size: 16px;
  font-weight: 700;
  line-height: 120%;
  margin: 1rem 2rem;
}

/* hiw-diagram */
#hiw-diagram .row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hiw-diagram .card {
  margin: 1.2rem 0 0;
  padding: 3rem;
  width: 275px;
  height: 200px;
  box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

#hiw-diagram img {
  width: 76px;
  height: 57px;
  object-fit: contain;
}

#hiw-diagram h4 {
  font-size: 18px;
  line-height: 21px;
  font-weight: 700;
  margin: 0.5rem 0;
}

#hiw-diagram p {
  line-height: 14px;
}

#hiw-diagram a {
  margin-top: 1.2rem;
}

/* Shipping Info */
#how-it-works #shipping {
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: left;
}

#how-it-works #shipping>* {
  max-width: 400px;
}

#learn-more {
  color: #D74344;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  line-height: normal;
}

#shipping #learn-more p {
  text-decoration: underline;
  font-weight: 700;
  margin: 8px 0 6px;
}

#shipping a.item_button {
  margin: 16px 0;
}

#shipping img {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
  border-radius: 16px;
}

#shipping h3 {
  line-height: 120%;
  margin: 1rem 0 0;
}

#shipping p {
  line-height: 140%;
  margin: 1rem 0;
}

/* FAQ */
#faq {
  width: 90vw;
  padding-left: 1rem;
  padding-right: 1rem;
}

#faq .questions {
  list-style-type: none;
  text-align: left;
}

#faq .questions li:first-child {
  margin-top: 2rem;
}

#faq .questions li:last-child {
  margin-bottom: 0;
}

#faq .item {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #DBDDE0;
  border-radius: 8px;
  margin: 1rem 0;
  cursor: default;
  padding: 0 1.5rem;
}

#faq .item>.question {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 69px;
}

#faq .item>.question h4 {
  font-size: 16px;
  line-height: 150%;
  font-weight: 700;
  letter-spacing: unset;
  margin: 0;
}

#faq .answer {
  display: none;
  line-height: 140%;
  padding: 0.5rem 0 1rem;
}

.item i {
  color: #999999;
  margin-left: auto;
}

/* Customers' reviews */
#customers-reviews #instagram-reviews {
  margin-top: 1.5rem;
}

/* Tablet adjustments */
@media (min-width: 768px) {
  #splash {
    padding: 120px 32px;
  }

  .fold {
    padding: 54px 50px;
  }

  .span_title {
    font-size: 48px;
    line-height: 125%;
  }

  .title_body {
    font-size: 20px;
    line-height: 160%;
  }

  #how-it-works h3 {
    margin-bottom: 1rem;
    font-size: 36px;
    line-height: 133%;
  }

  #hiw-diagram h4 {
    font-size: 18px;
    line-height: 21px;
  }

  #hiw-diagram p {
    font-size: 14px;
    line-height: 16px;
  }

  #hiw-diagram .row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  #hiw-diagram .card {
    margin: 0.6rem;
    padding: 2rem;
  }

  #faq .item>.question h4 {
    font-size: 20px;
    line-height: 240%;
  }

  #faq .answer {
    font-size: 20px;
    padding-bottom: 1.5rem;
    line-height: 160%;
  }
}

/* Laptop adjustments */
@media (min-width: 900px) {
  .fold {
    padding: 72px 50px;
  }

  #hiw-diagram {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  #hiw-diagram .card {
    flex: 1;
    padding: 2rem 1.5rem;
  }

  #shipping {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
  }

  #shipping p {
    font-size: 20px;
    line-height: 160%;
  }

  #how-it-works #shipping>* {
    margin: 0;
    max-width: 500px;
  }

  #how-it-works #shipping>div {
    padding-right: 4rem;
  }
}