:root {
  --paper: #f7f2e8;
  --paper-2: #fffdf8;
  --ink: #302820;
  --muted: #6d665e;
  --sage: #62765a;
  --sage-dark: #40513a;
  --sage-pale: #dfe6d8;
  --orange: #d86f3f;
  --orange-dark: #a84422;
  --apricot: #f2c59e;
  --line: #d9d0c1;
  --white: #fff;
  --shadow: 0 15px 40px rgba(62, 48, 35, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #e89b57; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; color: var(--orange-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.section-kicker-light { color: #f6bb87; }
.section-kicker-white { color: #fff7ee; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.06; font-weight: 600; }
h2 { max-width: 720px; margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.25rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-head p { max-width: 520px; margin-bottom: 5px; color: var(--muted); }

.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 6px; padding: 11px 19px; background: var(--sage-dark); color: var(--white); font-weight: 750; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); background: #2f432b; box-shadow: 0 8px 20px rgba(47, 67, 43, .2); }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-light { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-outline { border-color: var(--sage-dark); background: transparent; color: var(--sage-dark); }
.btn-outline:hover { background: var(--sage-pale); box-shadow: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(89,76,60,.13); background: rgba(255,253,248,.94); backdrop-filter: blur(12px); }
.nav { min-height: 76px; display: flex; align-items: center; gap: 27px; }
.brand { flex: 0 0 auto; font-family: var(--serif); font-size: 1.65rem; font-weight: 700; }
.brand span { color: var(--orange); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { position: relative; font-size: .89rem; font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--orange); transition: right .2s ease; }
.nav-links a:hover::after { right: 0; }
.nav-search { position: relative; width: min(290px, 22vw); }
.nav-search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 38px 0 14px; background: var(--paper-2); color: var(--ink); font-size: .82rem; }
.search-icon { position: absolute; right: 12px; top: 9px; border: 0; background: transparent; color: var(--sage-dark); font-size: 1rem; }
.nav .btn { min-height: 42px; padding: 9px 15px; white-space: nowrap; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); font-size: 1.25rem; }

/* Hero */
.hero { min-height: calc(100svh - 76px); display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; background: #6f765a; color: var(--white); }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(35,32,25,.82) 0%, rgba(40,35,27,.62) 42%, rgba(39,33,24,.08) 72%); }
.hero-inner { padding: 80px 0 110px; }
.hero-copy { max-width: 650px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding-bottom: 6px; border-bottom: 2px solid var(--apricot); color: #fff5e9; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 640px; margin-bottom: 24px; font-size: clamp(3.3rem, 6.7vw, 6.6rem); text-wrap: balance; }
.hero h1 em { color: #ffd5a9; font-weight: 500; }
.hero p { max-width: 565px; margin-bottom: 34px; color: #fffaf2; font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { position: absolute; right: max(24px, calc((100vw - 1180px)/2)); bottom: 38px; max-width: 250px; padding: 15px 18px; border-left: 3px solid #ffd5a9; background: rgba(34,31,25,.55); backdrop-filter: blur(9px); font-family: var(--serif); font-style: italic; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; color: #fff; opacity: .85; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

/* Features */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category-card { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; padding: 22px 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); transition: transform .25s ease, box-shadow .25s ease; }
.category-card:nth-child(2), .category-card:nth-child(5) { background: #e9eddc; }
.category-card:nth-child(3), .category-card:nth-child(6) { background: #f8dfc9; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card::after { content: attr(data-number); position: absolute; right: -3px; bottom: -37px; color: rgba(48,40,32,.06); font-family: var(--serif); font-size: 8rem; font-weight: 700; }
.category-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--orange-dark); font-size: 1.55rem; box-shadow: 0 4px 16px rgba(56,43,28,.1); }
.category-card h3 { position: relative; z-index: 1; margin-bottom: 8px; font-size: 1.25rem; }
.category-card span { color: var(--muted); font-size: .8rem; font-weight: 700; }

/* Recipes */
.featured { background: var(--paper-2); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.recipe-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.recipe-image { height: 250px; position: relative; overflow: hidden; background: #d7d7cd; }
.recipe-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recipe-card:hover img { transform: scale(1.04); }
.recipe-card:nth-child(1) img { object-position: 76% 55%; }
.recipe-card:nth-child(2) img { object-position: 25% 23%; transform: scale(1.15); }
.recipe-card:nth-child(3) img { object-position: 89% 8%; transform: scale(1.25); }
.recipe-card:nth-child(2):hover img { transform: scale(1.2); }
.recipe-card:nth-child(3):hover img { transform: scale(1.3); }
.tag { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,253,248,.93); color: var(--sage-dark); font-size: .71rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.heart { width: 38px; height: 38px; position: absolute; right: 14px; top: 14px; border: 0; border-radius: 50%; background: rgba(255,253,248,.94); color: var(--ink); font-size: 1.1rem; }
.heart.saved { color: var(--orange-dark); }
.recipe-body { padding: 22px; }
.recipe-body h3 { margin-bottom: 14px; font-size: 1.55rem; }
.recipe-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 19px; padding: 13px 0; border-top: 1px solid #eee7dc; border-bottom: 1px solid #eee7dc; color: var(--muted); font-size: .77rem; }
.recipe-meta b { display: block; color: var(--ink); font-size: .84rem; }
.rating-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stars { color: #c95e2e; font-size: .88rem; font-weight: 800; }
.text-link { color: var(--sage-dark); font-weight: 800; }
.text-link:hover { color: var(--orange-dark); }

/* Tips and planner */
.tips-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.tips-intro { position: sticky; top: 120px; }
.tips-intro p { max-width: 430px; color: var(--muted); }
.script-note { display: inline-block; margin-top: 18px; color: var(--orange-dark); font-family: var(--serif); font-size: 1.35rem; font-style: italic; transform: rotate(-2deg); }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tip { min-height: 178px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,253,248,.5); }
.tip-icon { color: var(--orange); font-size: 1.55rem; }
.tip h3 { margin: 14px 0 7px; font-size: 1.25rem; }
.tip p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.disclaimer { margin-top: 22px; color: var(--muted); font-size: .78rem; }
.planner { position: relative; overflow: hidden; background: var(--sage-dark); color: var(--white); }
.planner::before { content: "N"; position: absolute; right: 2%; top: -160px; color: rgba(255,255,255,.035); font-family: var(--serif); font-size: 38rem; line-height: 1; }
.planner-inner { position: relative; display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.planner h2 { color: var(--white); }
.planner-copy p { color: #dce5d7; }
.benefit-list { display: grid; gap: 13px; margin-top: 28px; }
.benefit-list span { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.check { color: #f6bb87; }
.plan-form { padding: 30px; border-radius: 8px; background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: .79rem; font-weight: 800; }
select, .email-input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 5px; padding: 0 13px; background: var(--white); color: var(--ink); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.form-status { margin: 0; color: var(--sage-dark); font-size: .84rem; font-weight: 700; }

/* Weekly recipe */
.weekly { background: #e8dfcf; }
.book { display: grid; grid-template-columns: 1fr 1fr; position: relative; max-width: 1080px; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(54,40,26,.2)); }
.book::after { content: ""; position: absolute; left: 50%; top: 16px; bottom: 16px; width: 1px; background: rgba(70,53,36,.25); box-shadow: 0 0 12px rgba(34,27,19,.2); }
.book-page { min-height: 570px; padding: 50px 52px; background-color: #fffdf5; background-image: repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(125,105,78,.075) 30px); }
.book-page:first-child { border-radius: 8px 0 0 8px; }
.book-page:last-child { border-radius: 0 8px 8px 0; }
.week-label { color: var(--orange-dark); font-family: var(--serif); font-size: 1.18rem; font-style: italic; }
.book h2 { margin: 12px 0 15px; font-size: 2.65rem; }
.book-summary, .method { color: var(--muted); }
.book-image { height: 225px; margin: 25px 0 0; overflow: hidden; border-radius: 6px; }
.book-image img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 54%; }
.ingredient-list { columns: 2; margin: 18px 0 30px; padding-left: 21px; }
.ingredient-list li { break-inside: avoid; margin-bottom: 7px; padding-left: 5px; font-size: .88rem; }
.method { margin-bottom: 25px; font-size: .9rem; }
.nutrition { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 25px 0; }
.nutrition div { padding: 11px 5px; border-top: 2px solid var(--sage); text-align: center; font-size: .72rem; color: var(--muted); }
.nutrition b { display: block; color: var(--ink); font-size: .9rem; }
.book-actions { display: flex; gap: 10px; }
.icon-btn { min-height: 42px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 14px; background: var(--white); color: var(--ink); font-weight: 750; }
.icon-btn:hover { border-color: var(--sage); background: var(--sage-pale); }

/* Stories and pricing */
.stories { background: var(--paper-2); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { padding: 26px; border-left: 3px solid var(--sage); background: var(--paper); }
.quote-mark { height: 30px; color: var(--orange); font-family: var(--serif); font-size: 3.5rem; line-height: .7; }
.testimonial blockquote { min-height: 118px; margin: 18px 0 24px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-dark); color: white; font-family: var(--serif); font-size: 1.05rem; }
.testimonial:nth-child(2) .avatar { background: var(--orange-dark); }
.testimonial:nth-child(3) .avatar { background: #79664d; }
.person b { display: block; }
.person span { color: var(--muted); font-size: .76rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.price-card.popular { border: 2px solid var(--sage-dark); background: #edf1e8; box-shadow: var(--shadow); transform: translateY(-12px); }
.popular-label { position: absolute; right: 22px; top: 20px; color: var(--orange-dark); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.price-card h3 { margin-bottom: 6px; font-size: 1.7rem; }
.price { margin: 16px 0 23px; font-family: var(--serif); font-size: 3.1rem; line-height: 1; }
.price small { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.feature-list { min-height: 160px; margin: 0 0 25px; padding: 0; list-style: none; }
.feature-list li { margin-bottom: 10px; color: var(--muted); font-size: .88rem; }
.feature-list li::before { content: "✓"; margin-right: 9px; color: var(--sage); font-weight: 900; }
.price-card .btn { width: 100%; }

/* Newsletter and footer */
.newsletter { padding: 75px 0; background: var(--orange); color: var(--white); }
.newsletter-inner { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 70px; }
.newsletter h2 { margin-bottom: 9px; color: var(--white); }
.newsletter p { margin-bottom: 0; color: #fff2e9; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form .email-input { min-width: 0; border: 0; }
.newsletter-form .btn { white-space: nowrap; background: var(--ink); }
.newsletter-status { grid-column: 2; margin: -52px 0 0; color: #fff; font-size: .8rem; font-weight: 700; }
footer { padding: 65px 0 25px; background: #2f2a24; color: #f7f2e8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 2fr; gap: 80px; padding-bottom: 45px; }
.footer-brand p { max-width: 410px; margin-top: 14px; color: #c7bfb4; font-size: .9rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links h3 { margin-bottom: 13px; color: #f3cda9; font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { display: block; margin-bottom: 8px; color: #d8d0c5; font-size: .85rem; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #756d64; border-radius: 50%; font-size: .76rem; font-weight: 800; }
.socials a:hover { border-color: #f3cda9; color: #f3cda9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid #514a43; color: #aaa198; font-size: .77rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; translate: -50% 140%; padding: 11px 17px; border-radius: 5px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; transition: translate .3s ease; }
.toast.show { translate: -50% 0; }

@media (max-width: 1050px) {
  .nav-search { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card { min-height: 180px; }
  .tips-wrap, .planner-inner { gap: 45px; }
  .book-page { padding: 40px 35px; }
}

@media (max-width: 800px) {
  .section { padding: 72px 0; }
  .menu-btn { display: grid; place-items: center; margin-left: auto; }
  .nav { flex-wrap: wrap; padding: 12px 0; }
  .brand { order: 1; }
  .menu-btn { order: 2; }
  .nav > .btn { display: none; }
  .nav-links { width: 100%; order: 3; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-search { order: 4; }
  .nav-links.open + .nav-search { width: 100%; display: block; margin-bottom: 8px; }
  .hero { min-height: 720px; background-position: 63% center; }
  .hero::before { background: linear-gradient(90deg, rgba(35,32,25,.87), rgba(40,35,27,.52)); }
  .hero h1 { font-size: clamp(3.25rem, 11vw, 5rem); }
  .hero-note, .scroll-cue { display: none; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .recipe-grid { grid-template-columns: 1fr 1fr; }
  .recipe-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .tips-wrap, .planner-inner, .newsletter-inner, .footer-grid { grid-template-columns: 1fr; }
  .tips-intro { position: static; }
  .planner-inner { gap: 35px; }
  .book { grid-template-columns: 1fr; }
  .book::after { display: none; }
  .book-page:first-child { border-radius: 8px 8px 0 0; }
  .book-page:last-child { border-radius: 0 0 8px 8px; }
  .testimonial-grid, .pricing-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .newsletter-status { grid-column: 1; margin: -55px 0 0; }
  .footer-grid { gap: 35px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 60px 0; }
  .hero { min-height: calc(100svh - 67px); }
  .hero-inner { padding: 65px 0; }
  .hero h1 { font-size: 3.25rem; }
  .hero p { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 165px; padding: 17px 14px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card:last-child { grid-column: auto; max-width: none; }
  .recipe-image { height: 225px; }
  .tips-grid { grid-template-columns: 1fr; }
  .tip { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .plan-form { padding: 22px 18px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .book-page { min-height: 0; padding: 34px 24px; }
  .book h2 { font-size: 2.2rem; }
  .ingredient-list { columns: 1; }
  .nutrition { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .newsletter-status { margin: -42px 0 0; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body * { visibility: hidden; }
  #weekly, #weekly * { visibility: visible; }
  #weekly { position: absolute; inset: 0; padding: 0; }
  .book { filter: none; }
  .book-actions { display: none; }
}
