/* Search landing pages (scripts/build-seo-pages.mjs). Brand: cream, green, coral. */
:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --ink: #15201d;
  --muted: #55625e;
  --line: #e8e0d0;
  --green: #1f7a4a;
  --coral: #e5483c;
  --chip: #f3ecdd;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111716;
    --surface: #1b2421;
    --ink: #f3eee4;
    --muted: #a9b5b0;
    --line: #2b3632;
    --green: #5fd19a;
    --coral: #ff7a6e;
    --chip: #222d2a;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
a {
  color: var(--green);
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
}
.brand img {
  display: block;
  height: 44px;
  width: auto;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.top nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  background: var(--chip);
}
.top nav a[aria-current='page'] {
  background: var(--green);
  color: var(--bg);
}
.top nav a.lang {
  border: 1px solid var(--line);
  background: transparent;
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
  border-top: 0;
  padding-top: 24px;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  margin: 0 0 20px;
}
h3 {
  font-size: 18px;
  margin: 0 0 6px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}
.cta,
.ghost {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.cta {
  background: var(--coral);
  color: #fff;
}
.ghost {
  border: 2px solid var(--green);
  color: var(--green);
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
figure {
  margin: 0;
  text-align: center;
}
figure img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.18);
}
figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.steps,
.features,
.related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  font-weight: 800;
}
.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.features li,
.steps li,
.related li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.steps p,
.features p {
  margin: 0;
  color: var(--muted);
}
.audience {
  margin: 24px 0 0;
  font-size: 18px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
}
.closing > p {
  text-align: center;
  margin: 0 0 32px;
}
.related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.related a {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.related span {
  font-size: 14px;
  color: var(--muted);
}
footer {
  text-align: center;
  padding: 32px 16px 48px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  figure {
    max-width: 280px;
    margin: 0 auto;
  }
  .steps,
  .features,
  .related {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 600px) and (max-width: 900px) {
  .steps,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .top nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .top nav a {
    flex: none;
    font-size: 13px;
  }
}

/* ---- Breadcrumbs, intros and chips. ---- */
.crumbs {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0 0;
}
.crumbs a {
  color: var(--muted);
}
.intro {
  border-top: 0;
  padding-top: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.chips a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

/* ---- Recipe cards. ---- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}
.cards a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.cards img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 6px;
}
.cards strong,
.cards span,
.cards em {
  padding: 0 14px;
}
.cards span {
  font-size: 14px;
  color: var(--muted);
}
.cards em {
  font-size: 13px;
  font-style: normal;
  color: var(--green);
}

/* ---- Recipe page. ---- */
.recipe-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: start;
  padding: 16px 0 32px;
}
.recipe-photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.facts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 14px;
}
.table {
  overflow-x: auto;
}
.table table {
  border-collapse: collapse;
  min-width: 100%;
  font-variant-numeric: tabular-nums;
}
.table th,
.table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.ingredients {
  columns: 2 260px;
  column-gap: 32px;
  padding-left: 20px;
}
.ingredients li,
.method li {
  margin-bottom: 8px;
}
.method {
  padding-left: 22px;
  max-width: 72ch;
}
.partners {
  padding-left: 20px;
}
.partners li {
  margin-bottom: 8px;
}
.partners span {
  color: var(--muted);
  font-size: 14px;
}
.plan {
  margin: 40px 0;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan h2 {
  margin-bottom: 8px;
}

/* ---- Guides. ---- */
.guide {
  max-width: 760px;
}
.guide h1 {
  margin-top: 16px;
}
.guide section {
  padding: 24px 0;
}
.guide ul {
  padding-left: 20px;
}
.guide li {
  margin-bottom: 8px;
}
.sources {
  font-size: 14px;
}

/* ---- Footer links. ---- */
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  max-width: 900px;
  margin: 0 auto 16px;
}
footer nav a {
  color: var(--muted);
}
@media (max-width: 900px) {
  .recipe-head {
    grid-template-columns: 1fr;
  }
  .recipe-photo {
    order: -1;
  }
}
