.recipes-main,
.recipe-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.recipe-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(26, 43, 107, 0.55);
  transition: color 0.2s ease;
}

.recipe-back:hover {
  color: var(--dojo-royal);
}

/* Recipes index hero */
.recipes-hero {
  max-width: 44rem;
  margin: 0 auto 56px;
  text-align: center;
}

.recipes-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.recipes-hero p {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(26, 43, 107, 0.62);
}

/* Recipe cards grid */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 43, 107, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 43, 107, 0.14);
}

.recipe-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.recipe-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-card-media img {
  transform: scale(1.05);
}

.recipe-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 26px;
}

.recipe-card-meta {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dojo-pink);
}

.recipe-card-body h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.recipe-card-body p {
  margin: 0 0 18px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(26, 43, 107, 0.72);
}

.recipe-card-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dojo-royal);
}

.recipe-card-link::after {
  content: " \2192";
  transition: margin-left 0.2s ease;
}

.recipe-card:hover .recipe-card-link::after {
  margin-left: 4px;
}

/* Recipe article */
.recipe-main {
  max-width: 760px;
}

.recipe-article-head {
  margin-bottom: 28px;
  text-align: center;
}

.recipe-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dojo-pink);
}

.recipe-article-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.recipe-jp {
  display: block;
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(26, 43, 107, 0.5);
}

.recipe-lead {
  margin: 18px auto 0;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(26, 43, 107, 0.65);
}

.recipe-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.recipe-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 92px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 43, 107, 0.08);
  text-align: center;
}

.recipe-stats .stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 43, 107, 0.5);
}

.recipe-stats .stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dojo-royal);
}

.recipe-figure {
  margin: 36px 0;
}

.recipe-figure img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.recipe-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(26, 43, 107, 0.45);
  text-align: center;
}

.recipe-body h2 {
  margin: 40px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.recipe-body h3 {
  margin: 26px 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.recipe-body p {
  margin: 0 0 16px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(26, 43, 107, 0.82);
}

.recipe-body a {
  color: var(--dojo-pink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recipe-ingredients {
  margin: 0;
  padding: 24px 26px;
  list-style: none;
  background: var(--dojo-pink-bg);
  border-radius: 18px;
}

.recipe-ingredients li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(26, 43, 107, 0.85);
  border-bottom: 1px solid rgba(26, 43, 107, 0.08);
}

.recipe-ingredients li:last-child {
  border-bottom: none;
}

.recipe-ingredients li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dojo-pink);
}

.recipe-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.recipe-steps li {
  position: relative;
  padding: 0 0 24px 56px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: rgba(26, 43, 107, 0.82);
}

.recipe-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dojo-royal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.recipe-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 6px;
  width: 2px;
  background: rgba(26, 43, 107, 0.12);
}

.recipe-tip {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--dojo-pink);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.6);
}

.recipe-tip p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(26, 43, 107, 0.8);
}

.recipe-tip strong {
  font-family: var(--font-display);
  color: var(--dojo-royal);
}

.recipe-cta {
  margin: 48px 0 0;
  padding: 36px 28px;
  text-align: center;
  background: var(--dojo-royal);
  color: var(--dojo-cream);
  border-radius: 22px;
}

.recipe-cta h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dojo-cream);
}

.recipe-cta p {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(253, 251, 245, 0.82);
}

.recipe-cta .btn-primary {
  background: var(--dojo-pink);
}

.recipe-cta .btn-primary:hover {
  background: #ff6aa6;
}

.recipe-more {
  margin: 64px 0 0;
  text-align: center;
}

.recipe-more a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dojo-royal);
}
