:root {
  --fmw-ink: #202015;
  --fmw-muted: #69695b;
  --fmw-paper: #fffdf7;
  --fmw-soft: #f4f1e6;
  --fmw-line: #ded8c5;
  --fmw-leaf: #2f6b3f;
  --fmw-leaf-dark: #1f4f2d;
  --fmw-tomato: #c6472c;
  --fmw-honey: #d99a2b;
  --fmw-cream: #fff7df;
  --fmw-radius: 8px;
  --fmw-shadow: 0 18px 45px rgba(32, 32, 21, 0.12);
  --fmw-wrap: min(1160px, calc(100vw - 40px));
}

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

body {
  margin: 0;
  color: var(--fmw-ink);
  background: var(--fmw-paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--fmw-leaf);
  text-underline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--fmw-ink);
  color: #fff;
  border-radius: var(--fmw-radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 216, 197, 0.8);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(32, 32, 21, 0.08);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 26px;
  min-height: 34px;
  padding: 7px 16px;
  color: #fff;
  background: var(--fmw-leaf-dark);
  font-size: 13px;
  font-weight: 800;
}

.site-header__inner {
  width: var(--fmw-wrap);
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.site-title {
  color: var(--fmw-ink);
  font-size: 23px;
  font-weight: 950;
  text-decoration: none;
}

.custom-logo {
  display: block;
  max-height: 58px;
  width: auto;
}

.primary-navigation {
  justify-self: end;
}

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

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--fmw-radius);
  color: var(--fmw-ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  background: var(--fmw-soft);
  color: var(--fmw-leaf-dark);
}

.cart-link,
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: var(--fmw-radius);
  background: var(--fmw-leaf);
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cart-link {
  gap: 8px;
  background: var(--fmw-tomato);
  white-space: nowrap;
}

.cart-link__icon {
  font-size: 0;
}

.cart-link__icon::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.15);
}

.cart-link__count {
  font-size: 13px;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.cart-link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 107, 63, 0.18);
  background: var(--fmw-leaf-dark);
  color: #fff;
}

.button--primary {
  background: var(--fmw-leaf);
}

.button--ghost {
  background: rgba(255, 253, 247, 0.1);
  border-color: rgba(255, 253, 247, 0.65);
  color: #fff;
}

.button--ghost:hover {
  background: var(--fmw-paper);
  color: var(--fmw-leaf-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--fmw-paper);
  border: 1px solid var(--fmw-line);
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--fmw-ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(29, 41, 24, 0.92), rgba(29, 41, 24, 0.6) 52%, rgba(29, 41, 24, 0.16)),
    linear-gradient(0deg, rgba(29, 41, 24, 0.58), rgba(29, 41, 24, 0.06));
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../market-hero.png") center / cover no-repeat;
}

.hero__content {
  width: var(--fmw-wrap);
  max-width: 760px;
  margin: 0 auto;
  justify-self: start;
  padding: 92px 0 min(11vh, 110px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--fmw-honey);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 790px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.service-strip {
  width: var(--fmw-wrap);
  margin: -34px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-strip div {
  min-height: 96px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--fmw-line);
  border-radius: var(--fmw-radius);
  box-shadow: var(--fmw-shadow);
}

.service-strip strong {
  display: block;
  color: var(--fmw-leaf-dark);
  font-size: 18px;
}

.service-strip span {
  display: block;
  color: var(--fmw-muted);
  margin-top: 3px;
}

.section,
.content-wrap,
.page-shell,
.shop-shell {
  width: var(--fmw-wrap);
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section h2,
.entry-header h1,
.archive-header h1,
.page-shell h1,
.woocommerce-products-header__title {
  margin: 0;
  color: var(--fmw-ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
  border-top: 1px solid var(--fmw-line);
}

.feature-list p,
.feature-list li,
.entry-content,
.post-card p {
  color: var(--fmw-muted);
}

.feature-list {
  font-size: 17px;
}

.feature-list ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fmw-tomato);
}

.content-wrap,
.page-shell,
.shop-shell {
  padding: 64px 0 86px;
}

.content-wrap--narrow,
.page-shell {
  max-width: 880px;
}

.page-shell--center {
  text-align: center;
}

.entry,
.post-card,
.woocommerce-missing {
  background: #fff;
  border: 1px solid var(--fmw-line);
  border-radius: var(--fmw-radius);
  box-shadow: 0 12px 30px rgba(32, 32, 21, 0.06);
}

.entry {
  padding: min(7vw, 56px);
}

.entry + .entry {
  margin-top: 24px;
}

.entry-header {
  margin-bottom: 22px;
}

.entry-header h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.entry-header a,
.post-card h2 a {
  color: var(--fmw-ink);
  text-decoration: none;
}

.entry-media {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: var(--fmw-radius);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  overflow: hidden;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 22px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.woocommerce-missing {
  padding: 30px;
}

.site-footer {
  background: #252116;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__inner {
  width: var(--fmw-wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 24px;
  padding: 44px 0;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer ul {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer__legal {
  text-align: right;
}

/* WooCommerce */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 24px;
}

.woocommerce .woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce div.product form.cart .variations select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--fmw-line);
  border-radius: var(--fmw-radius);
  background: #fff;
  color: var(--fmw-ink);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  margin: 0;
  padding: 0 0 18px;
  background: #fff;
  border: 1px solid var(--fmw-line);
  border-radius: var(--fmw-radius);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(32, 32, 21, 0.06);
}

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

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating {
  margin-left: 16px;
  margin-right: 16px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--fmw-ink);
  font-size: 18px;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  color: var(--fmw-leaf-dark);
  font-size: 17px;
  font-weight: 900;
}

.woocommerce ul.products li.product .button {
  margin: 10px 16px 0;
  width: calc(100% - 32px);
}

.woocommerce span.onsale {
  min-height: 0;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--fmw-tomato);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  margin-bottom: 44px;
}

.woocommerce div.product .product_title {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--fmw-leaf-dark);
  font-size: 26px;
  font-weight: 950;
}

.woocommerce div.product form.cart .button {
  min-height: 50px;
}

.woocommerce .quantity .qty {
  min-height: 50px;
  border: 1px solid var(--fmw-line);
  border-radius: var(--fmw-radius);
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 44px;
  min-width: 190px;
  border: 1px solid var(--fmw-line);
  border-radius: var(--fmw-radius);
}

.woocommerce table.shop_table {
  border-color: var(--fmw-line);
  border-radius: var(--fmw-radius);
  overflow: hidden;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-top-color: var(--fmw-leaf);
  background: #fff;
  border-radius: var(--fmw-radius);
}

@media (max-width: 1000px) {
  .site-header__inner {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    flex-direction: column;
  }

  .primary-navigation {
    position: fixed;
    inset: 112px 0 auto 0;
    display: none;
    padding: 18px 20px 28px;
    background: var(--fmw-paper);
    border-bottom: 1px solid var(--fmw-line);
    box-shadow: var(--fmw-shadow);
  }

  .menu-open .primary-navigation {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 4px;
  }

  .primary-navigation a {
    width: 100%;
  }

  .service-strip,
  .woocommerce ul.products,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section--split,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__legal {
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --fmw-wrap: min(100vw - 28px, 1160px);
  }

  .topbar {
    display: grid;
    gap: 2px;
    text-align: center;
  }

  .site-header__inner {
    min-height: 68px;
    grid-template-columns: 1fr auto auto;
  }

  .primary-navigation {
    inset: 104px 0 auto 0;
  }

  .cart-link__count {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 104px);
  }

  .hero__content {
    padding: 70px 0 72px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .hero__actions .button {
    width: 100%;
  }

  .service-strip,
  .woocommerce ul.products,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .content-wrap,
  .page-shell,
  .shop-shell {
    padding: 42px 0 62px;
  }

  .entry {
    padding: 24px;
  }
}
