:root {
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #263e34;
  --green: #2d513f;
  --muted: #7c8175;
  --line: #e0dfd2;
  --clay: #aa613d;
  --soft-green: #e8ecdf;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; }
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #bd8a55; outline-offset: 5px; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 36px/1 var(--serif); letter-spacing: -1.6px; white-space: nowrap; }
.brand svg { width: 37px; height: 37px; stroke: var(--clay); }
.brand-dot { color: var(--clay); }
.header-nav { display: flex; gap: 38px; margin-left: auto; margin-right: 30px; }
.header-nav a { text-decoration: none; font-size: 14px; }
.header-nav a:hover, .footer-link:hover { color: var(--clay); }
.favorites-button { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid #c8cebf; border-radius: 40px; padding: 10px 16px; font-size: 13px; }
.favorites-button svg { height: 17px; width: 17px; }
.favorites-button[aria-pressed="true"] { background: var(--soft-green); border-color: var(--green); }
.count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 20px; background: var(--soft-green); font-size: 11px; }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 72px; padding-top: 66px; padding-bottom: 80px; align-items: center; }
.eyebrow { margin: 0 0 23px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.hero .eyebrow { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.hero .eyebrow span { display: block; width: 7px; height: 7px; background: var(--clay); border-radius: 50%; }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 7.5vw, 108px); line-height: .99; letter-spacing: -5.8px; }
h1 em, .save-section h2 em { font-weight: 400; color: var(--clay); }
.hero-description { max-width: 400px; margin: 27px 0 28px; font-size: 14px; color: #737d70; line-height: 1.85; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; text-decoration: none; border-radius: 9px; transition: background .2s, transform .2s; }
.primary-button { background: var(--green); color: white; border: 1px solid var(--green); padding: 15px 23px; font-size: 14px; }
.primary-button span { font-size: 22px; line-height: 1; }
.primary-button:hover { background: #203e30; transform: translateY(-2px); }
.secondary-button { background: transparent; border: 1px solid #c4cbbb; padding: 13px 24px; font-size: 14px; }
.secondary-button:hover { background: var(--soft-green); border-color: var(--green); }
.hero-facts { display: flex; gap: 30px; margin-top: 36px; }
.hero-facts div { display: grid; gap: 3px; }
.hero-facts strong { font: 25px/1.2 var(--serif); letter-spacing: -.5px; }
.hero-facts span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.hero-photo { position: relative; margin: 0; align-self: stretch; padding-top: 13px; display: flex; flex-direction: column; justify-content: center; }
.hero-photo > img { width: 100%; height: auto; aspect-ratio: 1.07; object-fit: cover; object-position: center; border-radius: 28px 28px 105px 28px; }
.hero-photo figcaption { text-align: right; font-size: 10px; color: var(--muted); margin-top: 13px; margin-right: 16px; }
.photo-stamp { position: absolute; bottom: 69px; left: -42px; width: 144px; height: 144px; background: #e7c58c; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-13deg); color: #68472c; border: 7px solid var(--cream); text-align: center; }
.photo-stamp span { text-transform: uppercase; font-size: 7px; letter-spacing: 1.3px; line-height: 1.6; }
.photo-stamp strong { font: italic 19px/1.1 var(--serif); margin-top: 7px; font-weight: 400; }
.photo-stamp svg { width: 20px; height: 20px; margin-top: 5px; }
.catalog-section { background: var(--paper); padding: 65px 0 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.section-heading .eyebrow { color: var(--clay); margin-bottom: 10px; }
h2 { font: 43px/1.15 var(--serif); letter-spacing: -1.7px; font-weight: 400; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 13px; margin: 0 0 3px; }
.search-row { display: flex; gap: 16px; align-items: stretch; }
.search-box { display: flex; align-items: center; gap: 13px; background: #f7f7ef; border: 1px solid #e2e4d8; border-radius: 10px; padding: 14px 17px; flex: 1; }
.search-box:focus-within { border-color: #86977c; }
.search-box svg { width: 20px; height: 20px; color: #73846c; flex-shrink: 0; }
.search-box input { background: transparent; width: 100%; min-width: 0; border: 0; outline: none; color: var(--ink); font-size: 13px; padding: 0; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: #969c8f; }
.search-hint { color: #9ba18f; font-size: 10px; white-space: nowrap; padding-left: 10px; border-left: 1px solid #d9dece; }
.sort-box { display: flex; gap: 9px; align-items: center; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.sort-box > span { color: var(--muted); }
.sort-box select { border: 0; padding: 3px; background: transparent; color: var(--ink); font-size: 12px; max-width: 165px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.category-tab { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid #e1e3d6; border-radius: 30px; background: transparent; font-size: 12px; white-space: nowrap; }
.category-tab span { font-size: 10px; color: #8e9784; }
.category-tab:hover { background: #f0f2e7; }
.category-tab[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.category-tab[aria-pressed="true"] span { color: #c5d1bc; }
.catalog-status { display: flex; justify-content: space-between; min-height: 62px; gap: 15px; align-items: center; }
.catalog-status p { color: #8a9180; font-size: 11px; margin: 0; }
.text-button { display: inline-flex; gap: 12px; align-items: center; border: 0; background: none; padding: 4px 0; font-size: 12px; }
.text-button:hover { color: var(--clay); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.recipe-card { position: relative; background: var(--paper); border: 1px solid #e6e5d9; border-radius: 15px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px #31422c0c; }
.recipe-main { display: block; border: 0; padding: 0; background: none; text-align: left; width: 100%; color: inherit; }
.recipe-art { position: relative; background: var(--art-bg, #f3eddc); height: 180px; display: grid; place-items: center; overflow: hidden; }
.recipe-art svg { width: 208px; height: 151px; stroke: none; }
.art-label { position: absolute; top: 17px; left: 18px; color: #6f765e; font-size: 8px; letter-spacing: 1.1px; text-transform: uppercase; }
.save-card { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; border: 1px solid #f5f5ed; background: #fffdf8d9; color: #78846d; transition: transform .15s; }
.save-card:hover { transform: scale(1.1); }
.save-card svg { width: 16px; height: 16px; stroke-width: 1.5; }
.save-card.is-saved, .dialog-saved { color: var(--clay); }
.save-card.is-saved svg { fill: var(--clay); stroke: var(--clay); }
.recipe-card-content { padding: 21px 21px 18px; }
.recipe-card h3 { margin: 0 0 10px; font: 24px/1.2 var(--serif); font-weight: 400; letter-spacing: -.45px; min-height: 57px; }
.recipe-card-description { color: #8b9182; font-size: 11px; line-height: 1.7; margin: 0 0 19px; height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { border-top: 1px solid #eeeee4; display: flex; align-items: center; gap: 16px; padding-top: 13px; font-size: 10px; color: #6d7b63; }
.card-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 13px; height: 13px; }
.card-meta .recipe-arrow { margin-left: auto; color: var(--clay); font-size: 19px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 35px; }
.empty-state { text-align: center; padding: 50px 15px 45px; border: 1px dashed #d9dece; border-radius: 18px; }
.empty-state > span { font: 64px/1 var(--serif); color: var(--clay); }
.empty-state h3 { font: 28px/1.2 var(--serif); margin: 15px 0 8px; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.tips-section { padding-top: 76px; padding-bottom: 79px; }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; }
.tips-grid article { border-top: 1px solid #d5d9c9; padding-top: 25px; }
.tip-number { display: inline-grid; place-items: center; border: 1px solid #c9d0bc; width: 35px; height: 35px; border-radius: 50%; font: 13px var(--serif); color: var(--clay); }
.tips-grid h3 { font: 25px/1.2 var(--serif); font-weight: 400; margin: 20px 0 12px; letter-spacing: -.4px; }
.tips-grid p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0; max-width: 330px; }
.save-section { position: relative; border-radius: 22px; padding: 48px 54px; background: #e9eddf; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; }
.save-section .eyebrow { color: #7d8c6c; margin-bottom: 14px; }
.save-section h2 { font-size: 45px; line-height: 1.08; }
.save-section p:not(.eyebrow) { font-size: 12px; color: #7c886f; margin: 19px 0 0; }
.save-section .primary-button { z-index: 1; margin-right: 28px; }
.save-doodle { position: absolute; right: 65px; top: -32px; opacity: .12; transform: rotate(15deg); }
.save-doodle svg { height: 255px; width: 255px; stroke-width: .7; }
.site-footer { padding-top: 64px; padding-bottom: 28px; }
.footer-main { display: flex; align-items: center; gap: 50px; padding-bottom: 34px; }
.footer-main > p { color: var(--muted); font-size: 11px; margin: 0; }
.footer-link { margin-left: auto; text-decoration: none; font-size: 12px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 19px; display: flex; align-items: start; justify-content: space-between; gap: 25px; }
.footer-bottom p { font-size: 9px; color: #939a8b; margin: 0; line-height: 1.8; }
.footer-bottom a { text-underline-offset: 3px; }
dialog { border: 0; border-radius: 22px; padding: 0 34px 34px; background: var(--paper); color: var(--ink); width: min(960px, calc(100% - 40px)); max-height: 90dvh; box-shadow: 0 30px 100px #13211640; overscroll-behavior: contain; }
dialog::backdrop { background: #1c302bbe; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; background: var(--paper); padding: 18px 0 12px; border-bottom: 1px solid #ececdf; }
.dialog-top .eyebrow { margin: 0; color: var(--clay); }
.icon-button { background: transparent; border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; font-size: 24px; line-height: 1; }
.dialog-intro { padding: 27px 0 29px; }
.dialog-intro h2 { font-size: 40px; max-width: 760px; }
.dialog-intro > p { color: var(--muted); font-size: 14px; max-width: 690px; line-height: 1.8; }
.dialog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin: 20px 0; }
.dialog-meta span { background: #f0f2e8; border-radius: 5px; padding: 5px 10px; font-size: 11px; }
.dialog-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.small { padding: 8px 13px; font-size: 12px; border-radius: 7px; }
.recipe-detail-columns { display: grid; grid-template-columns: 300px 1fr; gap: 37px; align-items: start; }
.ingredients-section { background: #f1f2e7; border-radius: 12px; padding: 22px; }
.ingredients-heading h3, .steps-section > h3 { font: 26px/1.2 var(--serif); font-weight: 400; margin: 0 0 20px; }
.servings-stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #dce1cf; }
.servings-stepper button { width: 27px; height: 27px; border: 1px solid #c5ceb6; background: transparent; border-radius: 50%; font-size: 17px; }
.servings-stepper span { font-size: 12px; }
#ingredients-list { list-style: none; padding: 0; margin: 0; }
#ingredients-list li { padding: 9px 0; border-bottom: 1px solid #e0e4d6; }
#ingredients-list li:last-child { border-bottom: 0; }
.ingredient-label { display: flex; align-items: start; gap: 9px; cursor: pointer; font-size: 12px; }
.ingredient-label input { margin: 3px 0 0; accent-color: var(--green); width: 14px; height: 14px; flex-shrink: 0; }
.ingredient-label .ingredient-name { flex: 1; }
.ingredient-label .ingredient-amount { font-weight: 600; white-space: nowrap; }
.ingredient-label:has(input:checked) .ingredient-name { text-decoration: line-through; color: #98a188; }
.ingredients-note { font-size: 9px; color: #8a967d; margin: 18px 0 0; }
.steps-section > ol { list-style: none; padding: 0; margin: 0; counter-reset: recipe-step; }
.steps-section > ol > li { position: relative; padding: 0 0 22px 36px; counter-increment: recipe-step; color: #6d7a66; font-size: 13px; line-height: 1.85; }
.steps-section > ol > li::before { content: counter(recipe-step, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--clay); font: 15px/1.7 var(--serif); }
.recipe-tip { padding: 19px 22px; background: #f5ead8; border-radius: 11px; margin-top: 8px; }
.recipe-tip > span { color: var(--clay); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.recipe-tip p { margin: 8px 0 0; font-size: 12px; color: #8b775e; line-height: 1.8; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); z-index: 30; border-radius: 10px; background: var(--green); color: white; padding: 12px 22px; font-size: 13px; box-shadow: 0 8px 40px #20322b2b; }
@media (min-width: 1600px) { .hero { gap: 100px; } .hero-photo > img { aspect-ratio: 1.15; } }
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 60px); }
  .hero { gap: 40px; padding-top: 48px; }
  h1 { font-size: 83px; letter-spacing: -4.5px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .hero-facts { gap: 19px; }
  .photo-stamp { left: -26px; width: 121px; height: 121px; bottom: 65px; }
  .photo-stamp strong { font-size: 16px; }
  .hero-photo > img { aspect-ratio: .85; }
  .search-hint { display: none; }
  .recipe-grid { gap: 17px; }
  .recipe-card-content { padding: 19px 17px 15px; }
  .recipe-card h3 { font-size: 22px; }
  .tips-grid { gap: 25px; }
  .section-heading h2 { font-size: 37px; }
  .save-section { padding: 38px; }
  .save-section .primary-button { margin-right: 0; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { height: 78px; gap: 12px; }
  .brand { font-size: 30px; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .header-nav { display: none; }
  .favorites-button { padding: 9px 12px; gap: 7px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 41px; gap: 28px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.1px; margin-bottom: 20px; }
  h1 { font-size: clamp(67px, 13.8vw, 95px); letter-spacing: -4px; line-height: 1; }
  h1 br:nth-of-type(2) { display: none; }
  .hero-description { max-width: 440px; font-size: 13px; margin-top: 22px; line-height: 1.8; }
  .hero-facts { margin-top: 27px; justify-content: space-between; gap: 12px; max-width: 380px; }
  .hero-facts strong { font-size: 24px; }
  .hero-facts span { font-size: 9px; }
  .hero-photo { padding-top: 0; margin-left: 15px; }
  .hero-photo > img { aspect-ratio: 1.25; border-radius: 18px 18px 72px 18px; }
  .hero-photo figcaption { font-size: 8px; }
  .photo-stamp { bottom: 49px; left: -21px; width: 105px; height: 105px; border-width: 5px; }
  .photo-stamp span { font-size: 6px; }
  .photo-stamp strong { font-size: 15px; margin-top: 4px; }
  .photo-stamp svg { width: 15px; height: 15px; margin-top: 3px; }
  .catalog-section { padding: 38px 0 42px; }
  .section-heading { align-items: start; margin-bottom: 25px; }
  .section-heading > p { display: none; }
  .section-heading h2 { font-size: 34px; max-width: 340px; }
  .search-row { flex-direction: column; gap: 10px; }
  .search-box { padding: 14px; }
  .search-box input { font-size: 12px; }
  .sort-box { align-self: flex-end; padding: 4px 0; border: 0; font-size: 11px; }
  .sort-box select { font-size: 11px; }
  .category-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 3px 0 10px; margin-top: 10px; scrollbar-width: thin; }
  .category-tab { font-size: 11px; padding: 8px 12px; }
  .catalog-status { min-height: 46px; }
  .catalog-status p, .text-button { font-size: 10px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .recipe-art { height: 135px; }
  .recipe-art svg { width: 155px; height: 120px; }
  .art-label { top: 12px; left: 11px; font-size: 6px; letter-spacing: .9px; }
  .save-card { top: 8px; right: 8px; width: 28px; height: 28px; }
  .save-card svg { width: 13px; height: 13px; }
  .recipe-card-content { padding: 14px 12px 12px; }
  .recipe-card h3 { font-size: 20px; min-height: 72px; }
  .recipe-card-description { font-size: 10px; line-height: 1.65; height: 49px; -webkit-line-clamp: 3; margin-bottom: 13px; }
  .card-meta { flex-wrap: wrap; gap: 7px; font-size: 9px; padding-top: 10px; }
  .card-meta .method-meta { display: none; }
  .card-meta .recipe-arrow { font-size: 16px; }
  .card-meta svg { width: 11px; height: 11px; }
  .tips-section { padding-top: 44px; padding-bottom: 42px; }
  .tips-grid { grid-template-columns: 1fr; gap: 24px; }
  .tips-grid article { position: relative; padding-top: 21px; padding-left: 47px; }
  .tip-number { position: absolute; top: 22px; left: 0; }
  .tips-grid h3 { font-size: 24px; margin-top: 0; }
  .tips-grid p { max-width: none; }
  .save-section { padding: 30px 26px; flex-direction: column; align-items: start; gap: 25px; }
  .save-section h2 { font-size: 40px; }
  .save-section p:not(.eyebrow) { font-size: 11px; }
  .save-section p br { display: none; }
  .save-doodle { right: -80px; top: 0; }
  .site-footer { padding-top: 37px; }
  .footer-main { flex-wrap: wrap; gap: 22px; padding-bottom: 25px; }
  .footer-main > p { margin-left: auto; font-size: 9px; }
  .footer-link { margin-left: 0; width: 100%; font-size: 11px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 12px; }
  dialog { width: calc(100% - 22px); max-height: 94dvh; padding: 0 20px 25px; border-radius: 15px; }
  .dialog-intro { padding-top: 22px; }
  .dialog-intro h2 { font-size: 34px; }
  .dialog-intro > p { font-size: 12px; }
  .dialog-actions { gap: 9px; }
  .dialog-actions .small { font-size: 10px; padding: 8px 10px; }
  .recipe-detail-columns { grid-template-columns: 1fr; gap: 28px; }
  .ingredients-section { padding: 19px; }
  .ingredient-label { font-size: 12px; }
  .steps-section > ol > li { font-size: 12px; padding-bottom: 20px; }
}
@media (max-width: 360px) { .favorites-label { display: none; } .recipe-grid { grid-template-columns: 1fr; } .recipe-card h3 { min-height: 0; } .recipe-card-description { height: auto; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print {
  body { background: white; }
  body > :not(dialog) { display: none !important; }
  dialog[open] { display: block; position: static; width: 100%; max-height: none; box-shadow: none; border-radius: 0; padding: 15px; overflow: visible; }
  dialog::backdrop { display: none; }
  .dialog-top { position: static; }
  .close-dialog, .dialog-actions, .servings-stepper button, .ingredients-note { display: none; }
  .recipe-detail-columns { grid-template-columns: 260px 1fr; gap: 24px; }
  .steps-section > ol > li { break-inside: avoid; }
}
