/* Make Your Chicka: banana-leaf green recipe card */
:root {
  --leaf: #1f5e3b;
  --leaf-dark: #143f27;
  --mint: #e6f2e8;
  --turmeric: #e59500;
  --ink: #1c2b22;
  --muted: #4e6157;
  --white: #ffffff;
  --display: "Caprasimo", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }

h2 {
  font: 400 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--display);
  color: var(--leaf);
  margin-bottom: 16px;
}

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { border-bottom: 1px solid #d3e3d6; }
.top-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  padding: 18px 0;
}
.mark { font: 400 1.5rem/1 var(--display); color: var(--leaf); text-decoration: none; }
.tag { margin: 0; color: var(--muted); }

/* Intro */
.intro { background: var(--mint); padding: clamp(40px, 7vw, 80px) 0; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.intro h1 {
  font: 400 clamp(2.8rem, 8vw, 5.6rem)/0.95 var(--display);
  color: var(--leaf-dark);
  margin-bottom: 20px;
}

.lede { font-size: 1.2rem; max-width: 40ch; margin: 0 0 28px; }

.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 32px; }
.facts div { padding: 4px 24px; border-left: 2px solid var(--leaf); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 0.9rem; color: var(--muted); }
.facts dd { margin: 0; font: 400 1.4rem/1.2 var(--display); color: var(--leaf); }

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}
.btn:hover { background: var(--leaf-dark); }
.btn-light { background: var(--white); color: var(--leaf-dark); }
.btn-light:hover { background: var(--mint); }

.intro-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 200px 200px 16px 16px;
}

/* Recipe: ingredients + steps */
.recipe {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  padding: clamp(56px, 8vw, 96px) 0;
  align-items: start;
}

.ingredients {
  position: sticky;
  top: 24px;
  padding: 28px;
  border: 2px solid var(--leaf);
  border-radius: 16px;
}

.hint { margin: -8px 0 12px; color: var(--muted); font-size: 0.95rem; }

.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { border-bottom: 1px dashed #c3d6c7; }
.ingredients li:last-child { border-bottom: 0; }

.ingredients label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  cursor: pointer;
}

.ingredients input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--leaf);
}

.ingredients label:has(input:checked) { color: var(--muted); text-decoration: line-through; }

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

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 36px 72px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--turmeric);
  color: var(--leaf-dark);
  font: 400 1.4rem/1 var(--display);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 4px;
  width: 2px;
  background: #f1d9a6;
}

.steps h3 { font: 400 1.4rem/1.2 var(--display); color: var(--leaf-dark); margin-bottom: 4px; }
.steps p { margin: 0; max-width: 58ch; }
.steps img { margin-top: 20px; border-radius: 16px; }

/* Coconut */
.coconut { background: var(--leaf); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.coconut h2 { color: var(--white); }
.coconut p { max-width: 54ch; }

.coconut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.coconut-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coconut-pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.coconut-pics img:last-child { margin-top: 40px; }

/* Variant */
.variant { padding: clamp(56px, 8vw, 96px) 0; }
.variant-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.variant-grid img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.variant p { max-width: 54ch; margin: 0; }

/* Nudge to main site */
.nudge { background: var(--turmeric); padding: clamp(48px, 7vw, 80px) 0; }
.nudge h2 { color: var(--leaf-dark); }
.nudge p { max-width: 54ch; margin: 0 0 24px; font-size: 1.15rem; }

/* Footer */
.foot { background: var(--leaf-dark); color: #c8dccd; padding: 28px 0; font-size: 0.9rem; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--white); }

/* Responsive */
@media (max-width: 860px) {
  .intro-grid, .recipe, .coconut-grid { grid-template-columns: 1fr; }
  .intro-img { max-width: 420px; max-height: 420px; }
  .ingredients { position: static; }
}

@media (max-width: 560px) {
  .variant-grid { grid-template-columns: 1fr; }
  .variant-grid img { max-width: 220px; }
  .steps li { padding-left: 62px; }
  .facts div { padding: 4px 16px; }
}
