/*
Theme Name: myBackyardHomestead Journal
Theme URI: https://mybackyardhomestead.com/
Description: The farmstand and garden-journal child theme for the reusable VeeLane Journal base.
Author: Vee Lane
Template: veelane-journal
Version: 1.0.11
Text Domain: mybackyardhomestead-journal
*/

@import url("../veelane-journal/style.css");

:root {
  --vl-ink: #151b15;
  --vl-paper: #fbf9e9;
  --vl-warm: #e8edc8;
  --vl-accent: #17652b;
  --vl-moss: #466a3e;
  --vl-muted: #626a5e;
  --vl-line: rgba(21, 27, 21, .16);
  --vl-shadow: 0 18px 50px rgba(21, 27, 21, .10);
}

body {
  background-color: var(--vl-paper);
}

.site-header {
  background: #0e120f;
  border-bottom-color: rgba(255, 255, 255, .12);
}

.site-header .custom-logo {
  max-height: 76px;
  width: auto;
}

.site-header .custom-logo-link {
  display: inline-flex;
}

.site-header .primary-menu a {
  color: #fff;
}

.site-header .primary-menu a:hover,
.site-header .primary-menu a:focus {
  color: #b8d681;
}

@media (min-width: 761px) {
  .site-header .primary-menu > li {
    position: relative;
  }

  .site-header .primary-menu .sub-menu {
    background: #151b15;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
    left: 0;
    min-width: 210px;
    opacity: 0;
    padding: .55rem;
    position: absolute;
    top: calc(100% + .65rem);
    transform: translateY(-6px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
    visibility: hidden;
    z-index: 100;
  }

  .site-header .primary-menu .sub-menu::before {
    content: "";
    height: .8rem;
    left: 0;
    position: absolute;
    right: 0;
    top: -.8rem;
  }

  .site-header .primary-menu li:hover > .sub-menu,
  .site-header .primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .site-header .primary-menu .sub-menu a {
    border-radius: 8px;
    display: block;
    padding: .65rem .8rem;
  }
}

.mbh-hero {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, .55) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 76%, rgba(70, 106, 62, .16) 0 2px, transparent 3px),
    linear-gradient(115deg, #edf0ca 0%, #f7f3dc 55%, #e2e8bc 100%);
  background-size: 54px 54px, 72px 72px, auto;
  overflow: hidden;
  position: relative;
}

.mbh-hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.mbh-hero h1 {
  color: #17652b;
  font-family: var(--vl-serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -.045em;
  line-height: .96;
  margin: .35rem 0 1.25rem;
  max-width: 12ch;
  text-wrap: balance;
}

.mbh-hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 58ch;
}

.mbh-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 2rem;
}

.mbh-hero__panel {
  align-self: center;
  background: rgba(255, 253, 244, .84);
  border: 1px solid rgba(70, 106, 62, .2);
  border-radius: 28px;
  box-shadow: var(--vl-shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.mbh-hero__panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-top: 0;
}

.mbh-steps {
  counter-reset: farmstep;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.mbh-steps li {
  counter-increment: farmstep;
  display: grid;
  gap: .75rem;
  grid-template-columns: 2.1rem 1fr;
}

.mbh-steps li::before {
  align-items: center;
  background: var(--vl-accent);
  border-radius: 50%;
  color: #fff;
  content: counter(farmstep);
  display: flex;
  font-size: .8rem;
  font-weight: 800;
  height: 2.1rem;
  justify-content: center;
}

.mbh-path-grid,
.mbh-news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mbh-path-card,
.mbh-newsletter-card {
  background: #fffdf4;
  border: 1px solid var(--vl-line);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(21, 27, 21, .07);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.mbh-path-card__number {
  color: var(--vl-accent);
  font-family: var(--vl-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.mbh-path-card h3 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin: .4rem 0 .8rem;
}

.mbh-section--cream {
  background: var(--vl-warm);
}

.mbh-section-head {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mbh-section--cream .mbh-section-head {
  margin-bottom: 1rem;
}

.mbh-product-grid .products {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.mbh-product-grid .woocommerce ul.products::before,
.mbh-product-grid .woocommerce ul.products::after {
  content: none;
  display: none;
}

.mbh-product-grid .woocommerce ul.products li.product {
  background: #fffdf4;
  border: 1px solid var(--vl-line);
  border-radius: 18px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(21, 27, 21, .07);
  display: flex;
  flex-direction: column;
  float: none;
  height: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0 0 1.25rem;
  width: 100%;
}

.mbh-product-grid .products li.product img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.mbh-product-grid .woocommerce ul.products li.product .woocommerce-loop-product__title {
  box-sizing: border-box;
  padding: 1rem 1.25rem .5rem;
}

.mbh-product-grid .woocommerce ul.products li.product .price,
.mbh-product-grid .woocommerce ul.products li.product .button {
  margin-inline: 1.25rem;
}

.mbh-product-grid .products li.product .price {
  color: var(--vl-accent);
  font-weight: 800;
}

.mbh-product-grid .products li.product .button {
  margin-top: auto;
}

.mbh-shop-intro {
  background: linear-gradient(115deg, #e8edc8, #f8f4dc);
  border: 1px solid var(--vl-line);
  border-radius: 22px;
  margin: 0 0 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.mbh-shop-intro h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  margin: .35rem 0 1rem;
}

.mbh-shop-intro p:last-child {
  margin-bottom: 0;
  max-width: 68ch;
}

.mbh-newsletter {
  background: #101511;
  color: #fff;
}

.mbh-news-grid {
  align-items: center;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
}

.mbh-newsletter h2,
.mbh-newsletter .vl-eyebrow {
  color: #c3dc8f;
}

.mbh-newsletter-card {
  color: var(--vl-ink);
}

.mbh-newsletter-card input[type="text"],
.mbh-newsletter-card input[type="email"] {
  border: 1px solid var(--vl-line);
  border-radius: 10px;
  font: inherit;
  min-height: 48px;
  padding: .75rem .9rem;
  width: 100%;
}

.mbh-newsletter-card input[type="submit"] {
  background: var(--vl-accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: .85rem 1.4rem;
}

.site-footer {
  background: #0e120f;
}

.site-footer__title {
  color: #c3dc8f;
}

.legacy-divi-content > * + * {
  margin-top: 1.2rem;
}

body.page .vl-page-header {
  padding-block: clamp(3rem, 6vw, 5rem);
}

body.page .vl-page-content {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

body.page .legacy-divi-content h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 2.5rem 0 .9rem;
}

body.page .legacy-divi-content > h4 + h2 {
  margin-top: 1.25rem;
}

body.page .legacy-divi-content h2 + h2 {
  color: var(--vl-muted);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin-top: -.2rem;
}

body.page .legacy-divi-content h3 {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 2.25rem 0 .75rem;
}

body.page .legacy-divi-content h4 {
  color: var(--vl-accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

body.page .legacy-divi-content p,
body.page .legacy-divi-content li {
  line-height: 1.72;
}

body.page .legacy-divi-content ul,
body.page .legacy-divi-content ol {
  padding-left: 1.4rem;
}

body.page .legacy-divi-content img {
  height: auto;
  max-width: 100%;
}

.page-id-872 .mbh-faq-feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(3rem, 6vw, 5rem);
}

.page-id-872 .mbh-faq-feature-card {
  align-items: center;
  background: #fffdf4;
  border: 1px solid var(--vl-line);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(21, 27, 21, .07);
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.page-id-872 .mbh-faq-feature-card__image {
  margin: 0 0 1.15rem;
}

.page-id-872 .mbh-faq-feature-card__image img {
  display: block;
  height: 128px;
  object-fit: contain;
  width: 128px;
}

body.page.page-id-872 .legacy-divi-content .mbh-faq-feature-card h2 {
  color: var(--vl-accent);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
  text-wrap: balance;
}

.page-id-872 .mbh-faq-feature-card p {
  margin: 0;
}

body.woocommerce-shop main.site-main > #primary {
  float: none;
  max-width: none;
  width: 100%;
}

body.woocommerce-shop main.site-main > #sidebar {
  display: none;
}

body.woocommerce-shop .woocommerce-breadcrumb,
body.woocommerce-shop .woocommerce-products-header,
body.woocommerce-shop .mbh-shop-intro,
body.woocommerce-shop .woocommerce-notices-wrapper,
body.woocommerce-shop ul.products {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  width: min(1180px, calc(100% - 2rem));
}

body.woocommerce-shop .woocommerce-breadcrumb {
  margin-top: 1.5rem;
}

body.woocommerce-shop .woocommerce-products-header {
  padding: 1.75rem 0 1rem;
}

body.woocommerce-shop .mbh-shop-intro {
  margin-bottom: 1.5rem;
}

body.woocommerce-shop .woocommerce-result-count {
  margin-left: max(1rem, calc((100% - 1180px) / 2));
}

body.woocommerce-shop .woocommerce-ordering {
  margin-right: max(1rem, calc((100% - 1180px) / 2));
}

body.woocommerce-shop .woocommerce-ordering select {
  background: #fffdf4;
  border: 1px solid var(--vl-line);
  border-radius: 10px;
  font: inherit;
  min-height: 44px;
  padding: .55rem 2.4rem .55rem .8rem;
}

body.woocommerce-shop ul.products {
  clear: both;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 3rem;
  margin-top: 1.5rem;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after {
  content: none;
  display: none;
}

body.woocommerce.woocommerce-shop ul.products li.product,
body.woocommerce.woocommerce-shop ul.products.columns-3 li.product,
body.woocommerce.woocommerce-shop ul.products.columns-4 li.product {
  background: #fffdf4;
  border: 1px solid var(--vl-line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(21, 27, 21, .07);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  float: none;
  height: 100%;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0 0 1.25rem;
  width: 100%;
}

body.woocommerce.woocommerce-shop ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

body.woocommerce-shop ul.products li.product img {
  aspect-ratio: 1 / 1;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
  box-sizing: border-box;
  overflow-wrap: break-word;
  padding: 1rem 1.25rem .5rem;
  width: 100%;
}

body.woocommerce-shop ul.products li.product .price,
body.woocommerce-shop ul.products li.product .button {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

body.woocommerce-shop ul.products li.product .price {
  color: var(--vl-accent);
  font-weight: 800;
}

body.woocommerce-shop ul.products li.product .button {
  margin-top: auto;
}

.mbh-article-trust {
  align-items: center;
  border-bottom: 1px solid var(--vl-line);
  border-top: 1px solid var(--vl-line);
  color: var(--vl-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .94rem;
  gap: .45rem 1rem;
  margin: 0 0 2rem;
  padding: .85rem 0;
}

.mbh-article-trust a {
  color: var(--vl-accent);
  font-weight: 800;
}

.mbh-author-box {
  background: #fffdf4;
  border: 1px solid var(--vl-line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(21, 27, 21, .07);
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.mbh-author-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: .25rem 0 .65rem;
}

.mbh-author-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .mbh-hero__inner,
  .mbh-news-grid {
    grid-template-columns: 1fr;
  }

  .mbh-path-grid,
  .mbh-product-grid .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-shop ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-id-872 .mbh-faq-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .mbh-path-grid,
  .mbh-product-grid .products {
    grid-template-columns: 1fr;
  }

  body.woocommerce-shop ul.products {
    grid-template-columns: 1fr;
  }

  body.woocommerce-shop .woocommerce-result-count,
  body.woocommerce-shop .woocommerce-ordering {
    float: none;
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
  }

  body.woocommerce-shop .woocommerce-ordering select {
    width: 100%;
  }

  .mbh-section-head {
    align-items: start;
    flex-direction: column;
  }

  .mbh-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }
}
