:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --tint: #eee8dc;
  --ink: #1f2a1e;
  --muted: #5f6a5c;
  --line: #e2dbcd;
  --green: #3f5a3c;
  --green-ink: #f7f3ec;
  --accent: #c8693c;
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
}

.logo__mark {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--green);
  transform: rotate(-45deg);
}

.nav__links { display: flex; gap: 28px; }

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.nav__links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 24px; }

.hero__text { max-width: 820px; text-align: center; }

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  margin-bottom: 22px;
}

.lede {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 19px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.btn:hover { background: #324a30; transform: translateY(-1px); }

.hero__img { margin: 56px auto 0; }

.hero__img img {
  width: 100%;
  border-radius: calc(var(--radius) + 6px);
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

/* Sections */
.section { padding: 96px 24px; }
.section.wrap { padding-left: 24px; padding-right: 24px; }
.section--tint { background: var(--tint); padding-left: 0; padding-right: 0; }

.section__head { max-width: 640px; margin-bottom: 48px; }

.section h2 { font-size: clamp(30px, 4vw, 44px); }

/* Recipe cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body { padding: 26px 26px 22px; }

.meta {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.card h3 { font-size: 24px; margin-bottom: 10px; }

.card p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }

details { border-top: 1px solid var(--line); padding-top: 14px; }

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  display: inline-block;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
}

details[open] summary::after { transform: rotate(45deg); }

.recipe { padding-top: 10px; font-size: 15px; }

.recipe h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 18px 0 8px;
}

.recipe ul, .recipe ol { margin: 0; padding-left: 20px; }
.recipe li { margin-bottom: 4px; }

/* Tips */
.tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tip {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.tip__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
}

.tip h3 { font-size: 22px; margin: 10px 0 8px; }
.tip p { margin: 0; color: var(--muted); font-size: 16px; }

/* About */
.about { max-width: 760px; text-align: center; }
.about h2 { margin-bottom: 18px; }
.about p:last-child { color: var(--muted); font-size: 18px; margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p { margin: 0; font-size: 14px; color: var(--muted); }
.logo--small { font-size: 17px; }
.logo--small .logo__mark { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .tips { grid-template-columns: 1fr; max-width: 560px; }
  .cards { margin: 0 auto; }
  .tips { margin: 0 auto; }
  .section__head { text-align: left; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section, .section.wrap { padding: 72px 16px; }
  .section--tint { padding-left: 0; padding-right: 0; }
  .nav__inner { height: 60px; }
  .logo { font-size: 19px; }
  .nav__links { gap: 18px; }
  .nav__links a[href="#tips"],
  .nav__links a[href="#about"] { display: none; }
  .hero { padding-top: 48px; }
  .hero__img { margin-top: 40px; }
  .hero__img img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .lede { font-size: 17px; }
}

/* Legal pages */
.legal { max-width: 780px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.legal__date { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; scroll-margin-top: 90px; }
.legal h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
.legal p, .legal li { color: #3a4538; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--green); text-underline-offset: 3px; }
.legal__toc {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  padding: 20px; margin-bottom: 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal__toc a {
  font-size: 14px; text-decoration: none; color: var(--ink);
  padding: 6px 12px; border-radius: 999px; background: var(--tint);
}
.legal__toc a:hover { background: var(--line); }
.legal__table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 18px 0 22px; background: var(--surface); }
.legal__row { display: grid; grid-template-columns: 1fr 2fr 1.5fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.legal__row:first-child { border-top: 0; }
.legal__row--head { background: var(--tint); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal__back { margin-top: 48px; }
.footer a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .legal { padding-top: 40px; padding-bottom: 72px; }
  .legal__row { grid-template-columns: 1fr; gap: 4px; }
  .legal__row--head { display: none; }
}
