:root {
  --bg: #fff;
  --card: #ffffff;
  --ink: #2f2f2f;
  --text: #4f4f4f;
  --muted: #7a7a7a;
  --aqua: #00a5a4;
  --aqua-dark: #008483;
  --orange: #ff9933;
  --stroke: rgba(79, 79, 79, 0.1);
  --shadow: 0 18px 50px rgba(15, 40, 38, 0.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: #008483;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
  background: #e6f3f1;
  min-height: 100%;
}
a { color: var(--aqua-dark); }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 40, 38, 0.08);
}
a.store-badge { cursor: pointer; }

.recipes-hero {
  padding: 36px 0 8px;
}
.recipes-hero h1,
.recipe-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.lede {
  margin: 0;
  max-width: 38rem;
  font-size: 1.12rem;
  color: var(--text);
}
.recipes-hero > .pills { margin-top: 18px; }

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 28px 0 72px;
}
.recipe-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(15, 40, 38, 0.12);
}
.recipe-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: 40% 78%;
}
.recipe-card img.crop-pizza { object-position: 40% 78%; }
.recipe-card img.crop-truffles { object-position: 32% 58%; }
.recipe-card img.crop-cake { object-position: 42% 62%; }
.recipe-card-copy {
  padding: 36px 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recipe-card-cta {
  margin: 4px 0 0;
  color: var(--aqua-dark);
  font-weight: 700;
  font-size: 0.95rem;
}
.recipe-card-copy h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.recipe-card-copy p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.02rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px -12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 165, 164, 0.1);
  color: var(--aqua-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.crumbs a {
  color: var(--aqua-dark);
  text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: #b3b3b3; }

.recipe-hero-photo {
  margin: 8px 0 32px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  background: #d7ebe8;
}
.recipe-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 28px 40px;
  align-items: start;
  padding-bottom: 28px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.ingredients {
  position: sticky;
  top: 88px;
}
.panel h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ing-list li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--stroke);
  font-size: 0.98rem;
}
.ing-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--aqua);
}
.ing-list li:first-child { border-top: 0; padding-top: 0; }
.ing-list .name {
  color: var(--ink);
  font-weight: 600;
}
.ing-list .amount {
  color: var(--muted);
  text-align: right;
  font-size: 0.92rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 22px 52px;
  counter-increment: step;
  scroll-margin-top: 88px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}
.steps h3 {
  margin: 6px 0 6px;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.steps p {
  margin: 0;
  color: var(--text);
}

.recipe-cta {
  margin: 8px auto 72px;
  max-width: 720px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.recipe-cta h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.recipe-cta p {
  margin: 0 0 18px;
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-aqua {
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  color: #fff;
  padding: 14px 22px;
  box-shadow: 0 12px 28px rgba(0, 165, 164, 0.28);
}
.btn-aqua:hover { transform: translateY(-1px); }

@media (max-width: 900px) {
  .recipe-card {
    grid-template-columns: 1fr;
  }
  .recipe-card img { min-height: 220px; max-height: 280px; object-position: 50% 70%; }
  .recipe-card-copy { padding: 24px 22px 22px; }
  .recipe-layout { grid-template-columns: 1fr; }
  .ingredients { position: static; }
}

@media (max-width: 600px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .recipes-hero { padding-top: 22px; }
  .recipe-hero-photo { border-radius: 18px; }
  .panel { padding: 22px 18px; }
}
