:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --alt: #fbefe3;
  --ink: #221610;
  --muted: #7a6659;
  --line: #f0e2d4;
  --accent: #e4572e;
  --accent-soft: #fde8df;
  --green: #2e7d32;
  --green-soft: #e8f5e9;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 30, 10, .05), 0 8px 24px rgba(60, 30, 10, .08);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 240, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.logo__img {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff;
}
.nav__links { display: none; gap: 28px; margin-left: auto; font-size: .95rem; color: var(--muted); }
.nav__links a:hover { color: var(--ink); }
@media (min-width: 768px) { .nav__links { display: flex; } }

.lang {
  margin-left: auto; display: flex; padding: 3px;
  background: var(--alt); border-radius: 999px; border: 1px solid var(--line);
}
@media (min-width: 768px) { .lang { margin-left: 8px; } }
.lang button {
  border: 0; background: transparent; color: var(--muted);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  border: 0; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #cc4a24; }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); margin-top: 28px; }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 112px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
}
.eyebrow { font-size: .85rem; font-weight: 500; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 20px; max-width: 32rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: center; }
.hero__art img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 70%;
  border-radius: 16px; box-shadow: var(--shadow);
}
.hero__art img:nth-child(2) { aspect-ratio: 3 / 4.6; }
.hero__art img:nth-child(1) { transform: translateY(14px); }
.hero__art img:nth-child(3) { transform: translateY(-14px); }
@media (min-width: 900px) {
  .hero__art img { aspect-ratio: 3 / 5; border-radius: 20px; }
  .hero__art img:nth-child(2) { aspect-ratio: 3 / 6; }
  .hero__art img:nth-child(1) { transform: translateY(24px); }
  .hero__art img:nth-child(3) { transform: translateY(-24px); }
}

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--alt { background: var(--alt); }
section[id] { scroll-margin-top: 64px; }
.section__head { max-width: 36rem; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section__head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  transition: all .15s ease;
}
.chip:hover { color: var(--ink); }
.chip__n { opacity: .55; margin-left: 2px; font-variant-numeric: tabular-nums; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Recipe grid */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
  animation: fade .35s ease both;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; background: var(--alt); }
.card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card__type {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 1.15rem; }
.card__kcal { color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card__helps { color: var(--muted); font-size: .78rem; margin-top: 12px; }
.card__meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tag {
  font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: #b3441f;
}
.tag--green { background: var(--green-soft); color: var(--green); }
.card__kcal { font-weight: 600; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.more .btn[hidden] { display: none; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Features */
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.features svg {
  width: 40px; height: 40px; padding: 9px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.features h3 { font-size: 1.2rem; margin-bottom: 6px; }
.features p { color: var(--muted); font-size: .95rem; }

/* Get started */
.download {
  background: var(--ink); color: var(--bg);
  border-radius: 24px; padding: 40px 24px;
  display: grid; gap: 36px; align-items: center;
}
@media (min-width: 860px) {
  .download { padding: 56px; grid-template-columns: 1.1fr 1fr; gap: 56px; }
}
.download h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.download p { color: rgba(250,250,247,.7); margin-top: 10px; max-width: 30rem; }
.install { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.install li {
  display: flex; gap: 14px; align-items: center;
  border: 1px solid rgba(250,250,247,.14); border-radius: 14px; padding: 14px 16px;
}
.install span {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(250,250,247,.12); font-weight: 600; font-size: .85rem;
}
.install p { margin: 0; color: var(--bg); font-size: .95rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .875rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

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