@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Poppins-700.woff2") format("woff2");
}

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/BebasNeue-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Barlow-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Barlow-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/Inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Inter-700.woff2") format("woff2");
}

/* ============================================================
   Amapola — Molinos de Puerto Rico
   Brand palette taken from the original Elementor global kit:
     primary  #ff1f25  (Amapola red)
     accent   #ffcc00  (Amapola yellow)
     text     #54595f
   ============================================================ */

:root {
  --red: #ff1f25;
  --red-dark: #d5161b;
  --yellow: #ffcc00;
  --ink: #1c1c1c;
  --muted: #54595f;
  --line: #e6e3df;
  --paper: #ffffff;
  --cream: #fdf9f3;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.14);
  --wrap: 1180px;
  --font-display: "Bebas Neue", "Oswald", "Haettenschweiler", "Arial Narrow", sans-serif;
  --font-heading: "Poppins", "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-heading-alt: "Barlow", "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

a {
  color: var(--red);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-dark);
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --------------------------------------------------------------- header */

.site-header {
  background: #fff;
  border-bottom: 0;
  position: relative;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-height: clamp(84px, 12vw, 168px);
}

/* The poppy sits at the far right, as on the original masthead. */
.site-header__logo {
  order: 4;
  margin-inline-start: clamp(0.75rem, 3vw, 3rem);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--red);
}

.site-header__flower {
  width: clamp(64px, 11vw, 168px);
  height: auto;
}

.site-nav {
  order: 2;
  margin-inline-start: auto;
}

.site-nav__list {
  display: flex;
  gap: clamp(1rem, 3.2vw, 3.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.19rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 5px solid transparent;
}

.site-nav__list a:hover {
  color: var(--red);
  border-bottom-color: var(--yellow);
}

.site-nav__list a[aria-current="page"] {
  color: var(--muted);
  border-bottom-color: var(--yellow);
}

.lang-switch {
  order: 3;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
}

.lang-switch:hover {
  color: var(--red);
  border-color: var(--red);
}

.nav-toggle {
  order: 1;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  cursor: pointer;
  position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2.5px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bar {
  top: 50%;
  margin-top: -1.25px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
}

.nav-toggle__bar::before {
  top: -7px;
}

.nav-toggle__bar::after {
  top: 7px;
}

[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

[aria-expanded="true"] .nav-toggle__bar::before {
  transform: translateX(-50%) translateY(7px) rotate(45deg);
}

[aria-expanded="true"] .nav-toggle__bar::after {
  transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .site-header__inner {
    min-height: 76px;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  body.nav-open .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .site-nav__list a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ----------------------------------------------------------------- hero */

.hero {
  background: var(--red);
  color: #fff;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.hero__logo {
  margin: 0;
  flex: 0 1 clamp(260px, 40%, 480px);
}

.hero__logo img {
  width: 100%;
  height: auto;
}

/* Fallback lockup used only when the wordmark asset is unavailable. */
.hero__logo--fallback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 60px;
  padding: 0.9rem 2rem 0.9rem 1.25rem;
  color: var(--red);
}

.hero__flower {
  width: clamp(56px, 9vw, 104px);
  height: auto;
  flex: 0 0 auto;
}

.hero__wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero__title {
  flex: 0 1 auto;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin: 0;
  text-align: start;
}

/* Full-bleed yellow strip carrying the tagline. */
.hero-band {
  background: var(--yellow);
  padding: clamp(0.5rem, 1.5vw, 0.9rem) 1.25rem;
  text-align: center;
}

.hero-band__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red);
}

.hero-intro {
  background: #fff;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  text-align: center;
}

.hero-intro p {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
}

@media (max-width: 767px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__title {
    text-align: center;
  }
}

/* -------------------------------------------------------------- sections */

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section--products {
  background: var(--paper);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--red);
  margin-bottom: 1.5em;
}

.page-head {
  padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
  text-align: center;
}

/*
 * The original has no page title on /recetas/ - it runs the yellow band
 * straight into the filters. We keep a heading for document structure and
 * screen readers, styled to the site's Inter scale and centred like the rest
 * of the page rather than the Bebas display face used for the hero band.
 */
.page-head__title {
  font-family: var(--font-body);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: var(--red);
}

/*
 * Prose pages (Sobre Nosotros) are centred on the original, in a narrow ~480px
 * measure rather than a full-width left-aligned column.
 */
.prose {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

.prose p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  color: #000;
}

/* Barlow 32/500 red, centred - the original's section heading for this page. */
.prose .section__title {
  font-family: var(--font-heading-alt);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
}

/* ------------------------------------------------------------- products */

/*
 * Matches the original Elementor layout: a two-up grid of cards, each card a
 * package shot on the left and the copy block on the right. Measured from the
 * live site at 1440px - card 540px wide, 30px radius, image column 260px.
 */
.product-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 0 10px -4px rgba(0, 0, 0, 0.5);
  padding: 1.75rem 1.75rem 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  grid-template-areas:
    'media head'
    'media body'
    'sizes sizes'
    'action action';
  column-gap: 1.5rem;
  align-items: start;
  text-align: start;
}

.product__media {
  grid-area: media;
  display: grid;
  place-items: center;
}

.product__media img {
  max-height: 326px;
  width: auto;
}

.product__head {
  grid-area: head;
  align-self: center;
}

.product__name {
  font-family: var(--font-heading-alt);
  font-size: 1.5625rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--red);
  margin: 0;
}

.product__subtitle {
  font-family: var(--font-heading-alt);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--red);
  text-shadow: none;
  margin: 0.15rem 0 0;
}

.product__description {
  grid-area: body;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 1.25rem 0 0;
}

.product__sizes-block {
  grid-area: sizes;
}

.product__sizes-title {
  font-family: var(--font-body);
  font-size: 1.5625rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: var(--red);
  margin: 1.75rem 0 1rem;
}

.product__sizes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

/* Red discs, as on the original: the size sits inside a circle, not a chip. */
.product__sizes li {
  background: var(--red);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: #fff;
}

.product__action {
  grid-area: action;
  justify-self: center;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'media'
      'head'
      'body'
      'sizes'
      'action';
    row-gap: 0.5rem;
    text-align: center;
    padding: 1.75rem 1.25rem 2rem;
  }

  .product__subtitle,
  .product__description {
    transform: none;
    margin-top: 0;
  }

  .product__sizes li {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 0.95rem;
  }
}

/*
 * The sideways entrance animations translate elements outside the viewport for
 * the first frames, which would otherwise add a horizontal scrollbar on narrow
 * screens. Clipping here contains the motion without affecting layout.
 */
body {
  overflow-x: clip;
}

/* ------------------------------------------------------- entrance animation */

/*
 * The WordPress build used Elementor's entrance animations: fadeInDown on the
 * hero, then fadeInLeft / fadeInRight alternating down the product rows, all at
 * 1.25s ease. Reproduced here with an IntersectionObserver that adds .is-in
 * once, so elements animate as they are scrolled into view and then stay put.
 *
 * Elements opt in with data-anim. Without JS (or with reduced motion) they are
 * simply visible - the animation is never required to read the page.
 */
[data-anim] {
  opacity: 1;
}

.js [data-anim]:not(.is-in) {
  opacity: 0;
}

.js [data-anim].is-in {
  animation-duration: 1.25s;
  animation-timing-function: ease;
  animation-fill-mode: both;
}

.js [data-anim='fadeInDown'].is-in {
  animation-name: fadeInDown;
}

.js [data-anim='fadeInLeft'].is-in {
  animation-name: fadeInLeft;
}

.js [data-anim='fadeInRight'].is-in {
  animation-name: fadeInRight;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-20%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(20%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Motion is decorative: if the user opts out, show everything immediately. */
@media (prefers-reduced-motion: reduce) {
  .js [data-anim]:not(.is-in) {
    opacity: 1;
  }

  .js [data-anim].is-in {
    animation: none;
  }
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.5rem;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-1px);
}

.button--pill {
  align-self: center;
}

.button--ghost {
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--line);
}

.button--ghost:hover {
  background: var(--cream);
  color: var(--red);
  border-color: var(--red);
}

.icon-info {
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  flex: 0 0 auto;
}

.icon-info::after {
  content: "i";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72em;
  font-weight: 700;
  font-style: italic;
}

/* ---------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 2rem 1.75rem 1.75rem;
  width: min(100%, 620px);
  max-height: min(90vh, 900px);
  overflow: auto;
}

.modal__title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 1.4rem;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--cream);
  color: var(--red);
}

.nutrition {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.nutrition th,
.nutrition td {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.25rem;
  text-align: start;
}

.nutrition td {
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.nutrition__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------- recipes */

.recipe-search {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 1.25rem;
  max-width: 520px;
}

.recipe-search input {
  flex: 1 1 auto;
  font: inherit;
  padding: 0.6rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
}

.recipe-search input:focus {
  border-color: var(--red);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* The original renders these as solid red buttons, not outlined pills. */
.chip {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.chip:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

/* The selected category inverts, so the active filter is still obvious. */
.chip.is-active {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
}

.recipe-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.recipe-list {
  padding-bottom: 3rem;
}

.recipe-group {
  margin-bottom: 2.5rem;
}

.recipe-group[hidden] {
  display: none;
}

/*
 * Recipe index, matching the original: a three-up grid of centred cards on
 * white. The WordPress page has no card chrome - no border, no shadow - just a
 * 366x200 cover-cropped banner, a centred red title, centred summary and a
 * full-width red CTA. Everything on this page is centre-aligned.
 */
.recipe-group__title {
  font-family: var(--font-body);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: var(--red);
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 1.75rem;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  text-align: center;
  transition: transform 0.18s ease;
}

.card[hidden] {
  display: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* 366x200 on the original - a consistent banner crop regardless of source. */
.card__media {
  aspect-ratio: 366 / 200;
  background: var(--cream);
  overflow: hidden;
}

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

.card__body {
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.card__title {
  font-family: var(--font-body);
  font-size: 1.5625rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.4em;
}

.card__summary {
  color: #000;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.35;
  flex: 1 1 auto;
}

/* Full-width red button, as on the original. */
.card__cta {
  align-self: stretch;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 20px;
  background: var(--red);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: #fff;
  border-bottom: 0;
  transition: background-color 0.16s ease;
}

.card__link:hover .card__cta {
  background: var(--red-dark);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0 3rem;
}

/* --------------------------------------------------------- recipe detail */

.recipe {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 3.5rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-inline-end: 0.5rem;
  color: var(--yellow);
}

.recipe__head {
  margin-bottom: 1.5rem;
}

.recipe__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red);
}

.recipe__summary {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 68ch;
}

.notice {
  display: inline-block;
  background: #fff8e1;
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.recipe__product {
  float: inline-end;
  width: min(240px, 40%);
  margin: 0 0 1.5rem 1.5rem;
  text-align: center;
}

.recipe__product img {
  margin-inline: auto;
  max-height: 260px;
  width: auto;
}

.recipe__product figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.recipe__body {
  max-width: 78ch;
}

.recipe__section {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 0.2em;
  margin-top: 2rem;
}

.recipe__list {
  padding-inline-start: 1.3rem;
  margin: 0 0 1.5rem;
}

.recipe__list li {
  margin-bottom: 0.6rem;
}

.recipe__list--bullets {
  list-style: none;
  padding-inline-start: 0;
}

.recipe__list--bullets li {
  position: relative;
  padding-inline-start: 1.4rem;
}

.recipe__list--bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.recipe__list--steps li::marker {
  color: var(--red);
  font-weight: 700;
}

.recipe__figure {
  margin: 1.75rem 0;
}

/*
 * Recipe images come from the WordPress library at wildly different sizes -
 * some are 215px-wide thumbnails. `width: 100%` upscaled those to the 640px
 * cap, producing a big blurry panel, so size to the intrinsic width instead
 * and only ever scale down.
 */
.recipe__figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: auto;
  max-width: min(100%, 640px);
  height: auto;
}

.recipe__note {
  background: var(--cream);
  border-inline-start: 4px solid var(--yellow);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}

.recipe__actions {
  clear: both;
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  .recipe__product {
    float: none;
    width: auto;
    margin: 0 0 1.5rem;
  }
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

/* Original column proportions: brand 454, partner 277, contact 684 of 1425. */
.site-footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.6fr 1fr 2.4fr;
  align-items: center;
}

.site-footer__logo {
  max-width: 226px;
  margin-top: 1rem;
}

/* The original separates the brand column from the rest with a hairline rule. */
.site-footer__partner-col {
  border-inline-start: 1px solid var(--line);
  min-height: 160px;
  display: grid;
  place-items: center;
  padding-inline-start: 2rem;
}

.site-footer h2 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--red);
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red);
  text-decoration: underline;
}

.site-footer__brand img {
  max-width: 200px;
}

.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer__partner {
  background: transparent;
  padding: 0;
  width: 142px;
  height: auto;
  margin: 0;
}

/* Inter 20/700 black, matching the original's contact block. */
.site-footer__company {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.35rem;
}

.site-footer address {
  font-style: normal;
  display: grid;
  gap: 0.25rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #000;
}

.social {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

/* Each network keeps its own brand colour, matching the original footer. */
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  transition: filter 0.16s ease;
}

.social a.social__link--facebook {
  background: #1877f2;
}

.social a.social__link--instagram {
  background: #d62976;
}

.social a.social__link--youtube {
  background: #c4302b;
}

.social a:hover {
  filter: brightness(0.88);
}

.social-icon {
  width: 20px;
  height: 20px;
  background: currentColor;
  color: #fff;
}

.social a:hover .social-icon {
  color: var(--ink);
}

.social-icon--facebook {
  -webkit-mask: var(--mask-facebook) center / contain no-repeat;
  mask: var(--mask-facebook) center / contain no-repeat;
}

.social-icon--instagram {
  -webkit-mask: var(--mask-instagram) center / contain no-repeat;
  mask: var(--mask-instagram) center / contain no-repeat;
}

.social-icon--youtube {
  -webkit-mask: var(--mask-youtube) center / contain no-repeat;
  mask: var(--mask-youtube) center / contain no-repeat;
}

:root {
  --mask-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 22v-8h2.7l.4-3.1h-3.1V8.9c0-.9.25-1.5 1.55-1.5H16.7V4.6c-.29-.04-1.3-.13-2.47-.13-2.45 0-4.13 1.5-4.13 4.24v2.19H7.4V14h2.7v8z'/%3E%3C/svg%3E");
  --mask-instagram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2c3.2 0 3.58.01 4.85.07 1.17.05 1.8.25 2.23.41.56.22.96.48 1.38.9.42.42.68.82.9 1.38.16.42.36 1.06.41 2.23.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.05 1.17-.25 1.8-.41 2.23a3.7 3.7 0 0 1-.9 1.38c-.42.42-.82.68-1.38.9-.42.16-1.06.36-2.23.41-1.27.06-1.65.07-4.85.07s-3.58-.01-4.85-.07c-1.17-.05-1.8-.25-2.23-.41a3.7 3.7 0 0 1-1.38-.9 3.7 3.7 0 0 1-.9-1.38c-.16-.42-.36-1.06-.41-2.23C2.21 15.58 2.2 15.2 2.2 12s.01-3.58.07-4.85c.05-1.17.25-1.8.41-2.23.22-.56.48-.96.9-1.38.42-.42.82-.68 1.38-.9.42-.16 1.06-.36 2.23-.41C8.42 2.21 8.8 2.2 12 2.2m0 5.8a4 4 0 1 0 0 8 4 4 0 0 0 0-8m0 6.6a2.6 2.6 0 1 1 0-5.2 2.6 2.6 0 0 1 0 5.2m5.1-6.75a.94.94 0 1 1-1.88 0 .94.94 0 0 1 1.88 0'/%3E%3C/svg%3E");
  --mask-youtube: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.6 7.2a2.5 2.5 0 0 0-1.76-1.77C18.25 5 12 5 12 5s-6.25 0-7.84.43A2.5 2.5 0 0 0 2.4 7.2 26 26 0 0 0 2 12a26 26 0 0 0 .4 4.8 2.5 2.5 0 0 0 1.76 1.77C5.75 19 12 19 12 19s6.25 0 7.84-.43a2.5 2.5 0 0 0 1.76-1.77A26 26 0 0 0 22 12a26 26 0 0 0-.4-4.8M10 15.02V8.98L15.2 12z'/%3E%3C/svg%3E");
}

/* The original ends on a dark full-bleed strip carrying the copyright line. */
@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 2.5rem;
  }

  /* Stacked, the vertical rule becomes a horizontal one between blocks. */
  .site-footer__partner-col {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding-inline-start: 0;
    padding-top: 2rem;
    min-height: 0;
    width: 100%;
  }

  .site-footer address {
    justify-items: center;
  }
}

.site-footer__legal {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  background: #000;
  margin: 2rem 0 0;
  padding: 1.5rem 1rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

/* ----------------------------------------------------------------- print */

@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .recipe__actions,
  .chips,
  .recipe-search,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
  }

  .recipe__section {
    border-color: #999;
  }
}

.recipe__aside {
  max-width: 68ch;
  color: var(--muted);
}

.recipe__aside b,
.recipe__aside strong {
  color: var(--ink);
}

/* ------------------------------------------------- missing-image fallbacks */

.card__media--empty {
  background: repeating-linear-gradient(
    -45deg,
    var(--cream),
    var(--cream) 12px,
    #f4efe7 12px,
    #f4efe7 24px
  );
}

.site-footer__wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--red);
}

.site-footer__flower {
  width: 44px;
  height: auto;
  flex: 0 0 auto;
}

.site-footer__wordmark span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}
