:root {
  --moc-forest: #123c2d;
  --moc-forest-deep: #0a2b20;
  --moc-cream: #f7f2e8;
  --moc-warm-white: #fffdf8;
  --moc-sage: #dfe8d8;
  --moc-sage-soft: #edf2e8;
  --moc-gold: #b28b4b;
  --moc-ink: #173027;
  --moc-muted: #617067;
  --moc-border: rgba(18, 60, 45, 0.16);
  --moc-shadow: 0 18px 48px rgba(20, 45, 34, 0.08);
}

.moc-recipes-page .wp-block-post-title,
.moc-recipes-page .entry-title {
  display: none;
}

.moc-recipes-page main,
.moc-recipes-page .wp-site-blocks {
  overflow-x: clip;
}

.moc-recipes-page #wp--skip-link--target {
  margin-block-start: 0 !important;
}

.moc-recipes-page #wp--skip-link--target > .wp-block-group {
  padding-block: 0 !important;
}

.moc-recipes-page footer {
  margin-block-start: 0 !important;
}

.moc-recipes-page .entry-content {
  padding-inline: 0 !important;
}

.moc-recipes-hub,
.moc-recipes-hub * {
  box-sizing: border-box;
}

.moc-recipes-hub {
  width: 100%;
  max-width: none;
  margin-right: 0 !important;
  margin-left: 0 !important;
  color: var(--moc-ink);
  background: var(--moc-warm-white);
  font-family: inherit;
}

.moc-recipes-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.moc-recipes-hub h1,
.moc-recipes-hub h2 {
  margin: 0;
  color: var(--moc-forest-deep);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.moc-recipes-hub h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.moc-recipes-hub h2 {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

.moc-recipes-hub p {
  line-height: 1.7;
}

.moc-eyebrow,
.moc-recipes-empty__eyebrow {
  margin: 0 0 16px;
  color: var(--moc-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.moc-recipes-hero {
  position: relative;
  min-height: clamp(520px, 50vw, 680px);
  padding: clamp(80px, 10vw, 128px) 0 clamp(64px, 8vw, 96px);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(6, 30, 22, 0.92) 0%, rgba(8, 39, 28, 0.76) 42%, rgba(8, 39, 28, 0.24) 78%, rgba(8, 39, 28, 0.12) 100%),
    url('../images/matcha-recipes-hero.webp');
  background-position: center;
  background-size: cover;
}

.moc-recipes-hero__inner {
  display: flex;
  min-height: clamp(376px, 34vw, 456px);
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.moc-recipes-hero__copy {
  max-width: 790px;
}

.moc-recipes-hero h1 {
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
}

.moc-recipes-hero .moc-eyebrow {
  color: #e7cf9c;
}

.moc-recipes-hero__intro {
  max-width: 680px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.moc-recipes-hero__media {
  display: none;
}

.moc-recipes-hero__media img,
.moc-recipe-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moc-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.moc-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.moc-button:hover,
.moc-button:focus-visible {
  transform: translateY(-1px);
}

.moc-button:focus-visible,
.moc-recipe-filter:focus-visible,
.moc-recipe-card a:focus-visible {
  outline: 3px solid rgba(178, 139, 75, 0.5);
  outline-offset: 3px;
}

.moc-button--solid {
  color: #fff;
  background: var(--moc-forest);
}

.moc-button--outline {
  border-color: var(--moc-forest);
  color: var(--moc-forest);
  background: transparent;
}

.moc-button--light {
  border-color: var(--moc-forest);
  color: var(--moc-forest);
  background: #fff;
}

.moc-recipes-hero .moc-button--solid {
  color: var(--moc-forest-deep);
  background: var(--moc-cream);
}

.moc-recipes-hero .moc-button--light {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.moc-button--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.moc-recipes-library {
  padding: clamp(52px, 6vw, 76px) 0;
}

.moc-recipes-section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.moc-recipe-filters {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 0 0 38px;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}

.moc-recipe-filter {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--moc-border);
  border-radius: 999px;
  color: var(--moc-forest);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.moc-recipe-filter:hover,
.moc-recipe-filter.is-active {
  border-color: var(--moc-forest);
  color: #fff;
  background: var(--moc-forest);
}

.moc-recipes-results {
  min-height: 160px;
  transition: opacity 140ms ease;
}

.moc-recipes-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.moc-recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.moc-recipe-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--moc-border);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 48, 39, 0.05);
}

.moc-recipe-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--moc-sage-soft);
}

.moc-recipe-card__image {
  transition: transform 300ms ease;
}

.moc-recipe-card:hover .moc-recipe-card__image {
  transform: scale(1.025);
}

.moc-recipe-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.moc-recipe-card__category {
  margin: 0 0 10px;
  color: var(--moc-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.moc-recipe-card__title {
  margin: 0 0 12px !important;
  font-size: clamp(1.45rem, 2vw, 1.8rem) !important;
  line-height: 1.16 !important;
}

.moc-recipe-card__title a {
  color: inherit;
  text-decoration: none;
}

.moc-recipe-card__excerpt {
  flex: 1;
  margin: 0 0 22px;
  color: var(--moc-muted);
  font-size: 0.95rem;
}

.moc-recipe-card__link {
  align-self: flex-start;
  color: var(--moc-forest);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.moc-recipes-empty {
  padding: clamp(36px, 6vw, 68px);
  border: 1px solid var(--moc-border);
  background: linear-gradient(135deg, #fff 0%, var(--moc-sage-soft) 100%);
}

.moc-recipes-empty h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.moc-recipes-empty > p:not(.moc-recipes-empty__eyebrow) {
  max-width: 680px;
  margin: 16px 0 24px;
  color: var(--moc-muted);
}

.moc-recipes-pagination {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.moc-recipes-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 3px;
  padding: 8px 12px;
  border: 1px solid var(--moc-border);
  color: var(--moc-forest);
  text-decoration: none;
}

.moc-recipes-pagination .current {
  border-color: var(--moc-forest);
  color: #fff;
  background: var(--moc-forest);
}

.moc-recipes-commercial {
  padding: clamp(52px, 6vw, 76px) 0;
  background: var(--moc-sage-soft);
}

.moc-recipes-commercial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 48px;
}

.moc-recipes-commercial p:not(.moc-eyebrow),
.moc-recipes-calculator p:not(.moc-eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--moc-muted);
}

.moc-recipes-commercial__grid > .moc-button-row {
  justify-content: flex-end;
}

.moc-recipes-calculator {
  padding: 42px 0;
  border-top: 1px solid var(--moc-border);
  border-bottom: 1px solid var(--moc-border);
  background: var(--moc-cream);
}

.moc-recipes-calculator__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.moc-recipes-calculator h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.moc-recipes-final-cta {
  padding: clamp(58px, 7vw, 82px) 0;
  color: #fff;
  background: var(--moc-forest-deep);
  text-align: center;
}

.moc-recipes-final-cta__inner {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.moc-recipes-final-cta h2 {
  max-width: 820px;
  color: #fff;
}

.moc-recipes-final-cta .moc-button-row {
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .moc-recipes-commercial__grid {
    grid-template-columns: 1fr;
  }

  .moc-recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moc-recipes-commercial__grid > .moc-button-row {
    justify-content: flex-start;
  }

  .moc-recipes-calculator__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .moc-recipes-shell {
    width: min(100% - 28px, 1180px);
  }

  .moc-recipes-hero {
    min-height: 600px;
    padding: 72px 0 52px;
    background-image:
      linear-gradient(90deg, rgba(6, 30, 22, 0.94) 0%, rgba(8, 39, 28, 0.82) 58%, rgba(8, 39, 28, 0.44) 100%),
      url('../images/matcha-recipes-hero.webp');
    background-position: 62% center;
  }

  .moc-recipes-hero__inner {
    min-height: 476px;
  }

  .moc-button-row,
  .moc-button {
    width: 100%;
  }

  .moc-recipe-filters {
    width: calc(100% + 14px);
    margin-right: -14px;
  }

  .moc-recipe-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .moc-recipe-card__body {
    padding: 21px;
  }

  .moc-recipes-empty {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moc-recipes-hub *,
  .moc-recipes-hub *::before,
  .moc-recipes-hub *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
