/* Homepage only. Desktop styles and recipe pages retain their current layout. */
@media (max-width: 1024px) {
  body.home main.wp-block-group { margin-block-start: 0; padding-inline: 0; }
  body.home main > .entry-content { padding-inline: 0; margin-inline: 0; }
  body.home .entry-content > .amps-home {
    box-sizing: border-box;
    width: 100%; max-width: none;
    margin-inline: 0 !important;
  }
  body.home .amps-home *, body.home .amps-home *::before, body.home .amps-home *::after { box-sizing: border-box; }
  body.home .amps-home > section { padding-inline: 20px; }
  body.home .amps-home-subscribe { margin: 0 !important; padding: 20px !important; }

  /* The homepage already has a prominent search form just below the hero. */
  body.home .wp-site-blocks > header .wp-block-search { display: none; }
  body.home .wp-site-blocks > header header { padding: 12px 20px !important; }
  body.home .wp-site-blocks > header .wp-block-site-title { font-size: 20px; line-height: 1.25; margin: 0; }
  body.home .wp-site-blocks > header header > .wp-block-group { flex-wrap: nowrap; gap: 12px; }
  body.home .wp-block-navigation__responsive-container-open,
  body.home .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  body.home .wp-block-navigation-item__content { min-height: 44px; display: inline-flex; align-items: center; }

  body.home .amps-home-hero {
    display: block; position: relative; min-height: 0;
    padding-block: 24px; overflow: hidden;
  }
  body.home .amps-home-hero__copy { padding: 0; min-width: 0; }
  body.home .amps-home-hero__portrait { position: absolute; width: 88px; right: 20px; top: 18px; }
  body.home .amps-home-hero__portrait img { width: 100%; max-height: none; }
  body.home .amps-home-hero__eyebrow { padding-right: 96px; font-size: 12px; letter-spacing: .1em; }
  body.home .amps-home-hero h1 { padding-right: 96px; font-size: clamp(64px, 18vw, 80px); line-height: 1; }
  body.home .amps-home-hero__tagline { font-size: 17px; line-height: 1.5; padding-block: 16px; }
  body.home .amps-home-hero__intro { display: none; }
  body.home .amps-home-hero__actions { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
  body.home .amps-home-button { width: 100%; min-height: 48px; padding: 12px 16px; font-size: 16px; line-height: 1.4; }
  body.home .amps-home-button--secondary { border-color: transparent; text-decoration: underline !important; text-underline-offset: 3px; }

  body.home .amps-home-search { display: block; padding-block: 24px; scroll-margin-top: 16px; }
  body.home .amps-home-search h2 { font-size: 28px; line-height: 1.15; }
  body.home .amps-home-search p { font-size: 16px; line-height: 1.5; }
  body.home .amps-home-search .amps-home-kicker { font-size: 12px; }
  body.home .amps-home-search__form { margin-top: 16px; }
  body.home .amps-home-search__form .search-form { flex-direction: row; gap: 8px; }
  body.home .amps-home-search__form label { min-width: 0; }
  body.home .amps-home-search__form .search-field { min-height: 48px; font-size: 16px; padding: 12px; }
  body.home .amps-home-search__form .search-submit { min-height: 48px; padding: 8px 14px; font-size: 16px; }

  body.home .amps-recent-recipes, body.home .amps-home-categories { padding-block: 32px; }
  body.home .amps-home-section-heading { margin-bottom: 20px; }
  body.home .amps-home-section-heading h2 { font-size: 30px; line-height: 1.15; }
  body.home .amps-home-section-heading p { font-size: 16px; line-height: 1.5; }
  body.home .amps-home-section-heading .amps-home-kicker { font-size: 12px; }
  body.home .amps-recent-grid { gap: 12px; }
  body.home .amps-recent-card { max-width: none; box-shadow: none; transition: none; border-bottom-width: 2px; }
  body.home .amps-recent-card:hover { transform: none; }
  body.home .amps-recent-card a {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr auto;
    gap: 8px 16px; min-height: 120px; padding: 12px;
  }
  body.home .amps-recent-card__image { grid-row: 1 / 3; width: 96px; height: 96px; aspect-ratio: 1; align-self: center; }
  body.home .amps-recent-card h3 { margin: 0; font-size: 20px; line-height: 1.2; align-self: center; overflow-wrap: anywhere; }
  body.home .amps-recent-card p { display: none; }
  body.home .amps-recent-card__link { margin: 0; font-size: 14px; }
  body.home .amps-recent-recipes__all { margin: 16px 0 0; text-align: left; }
  body.home .amps-recent-recipes__all a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
  body.home .amps-home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .amps-home-category-grid a { min-height: 64px; padding: 12px; font-size: 18px; line-height: 1.25; gap: 8px; }
  body.home .amps-home-category-grid a:nth-child(odd) { border-right: 1px solid rgba(167,134,75,.55); }
  body.home .amps-home-dispatch { padding-block: 28px; gap: 12px; }
  body.home .amps-home-dispatch h2 { font-size: 30px; line-height: 1.15; }
  body.home .amps-home-dispatch p { font-size: 16px; line-height: 1.5; }
  body.home .amps-home-subscribe input[type='email'] { min-width: 0; font-size: 16px !important; min-height: 48px; }
  body.home .amps-home-subscribe button { min-height: 48px; font-size: 16px !important; }
  body.home .amps-home a:focus-visible, body.home .amps-home input:focus-visible,
  body.home .amps-home-subscribe input:focus-visible, body.home .amps-home-subscribe button:focus-visible {
    outline: 3px solid #A7864B; outline-offset: 3px;
  }
}
@media (max-width: 359px) {
  body.home .wp-site-blocks > header header { padding-inline: 16px !important; }
  body.home .wp-site-blocks > header .wp-block-site-title { font-size: 18px; }
  body.home .amps-home > section { padding-inline: 16px; }
  body.home .amps-home-hero__portrait { width: 76px; right: 16px; }
  body.home .amps-home-hero__eyebrow, body.home .amps-home-hero h1 { padding-right: 84px; }
  body.home .amps-recent-card a { grid-template-columns: 80px minmax(0,1fr); gap: 8px 12px; }
  body.home .amps-recent-card__image { width: 80px; height: 90px; }
  body.home .amps-recent-card h3 { font-size: 18px; }
  body.home .amps-home-category-grid a { font-size: 17px; padding-inline: 10px; }
}
