@font-face {
    font-family: Lora;
    src: url("assets/lora.ttf") format("truetype");
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: Lora;
    src: url("assets/lora-italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
}
:root {
    color-scheme: light;
    --paper: #f9f8f3;
    --white: #fffefa;
    --ink: #252c23;
    --green: #2b503c;
    --muted: #656b5e;
    --line: #dedfd4;
    --gold: #f7c773;
    --serif: Lora, Georgia, "Times New Roman", serif;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; min-width: 280px; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bb791f; outline-offset: 4px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.wrap { width: min(1240px, calc(100% - 9.2%)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px 18px; border-radius: 8px; color: white; background: var(--green); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.navrow { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--green); font: 700 31px/1 var(--serif); letter-spacing: -1.7px; }
.brand img { display: block; }
.main-nav { display: flex; align-items: center; gap: 7px; }
.main-nav a, .saved-nav { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.main-nav a { padding: 10px 15px; border-radius: 22px; color: #5c6357; }
.main-nav a:hover, .saved-nav:hover { background: #eeefe5; }
.main-nav a[aria-current], .saved-nav[aria-current] { background: #e7ecdf; color: var(--green); }
.nav-count { padding: 2px 6px; border-radius: 12px; color: var(--green); background: #e4eada; font-size: 11px; line-height: 1.25; }
.saved-nav { justify-self: end; border: 1px solid #cdd2c4; border-radius: 22px; padding: 9px 15px; color: var(--green); }
#saved-count { min-width: 17px; background: var(--green); text-align: center; color: #fff; font-size: 11px; padding: 2px 4px; border-radius: 10px; }
main { min-height: 65vh; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 340px; margin-top: 24px; border-radius: 20px; background: #36271c url("assets/mam-com.jpg") center 53%/cover no-repeat; color: #fff9ed; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1e1a13c9, #24190e78 34%, #251a0c0a 60%, transparent 75%); }
.hero-copy { padding: clamp(31px, 3vw, 43px) clamp(28px, 4.1vw, 62px); }
.overline { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 750; line-height: 1.5; text-transform: uppercase; letter-spacing: 2.1px; }
.hero-label { color: #ffdc9c; }
.hero-label span, .rule { width: 25px; height: 2px; background: currentColor; }
.hero h1 { margin: 13px 0 11px; font-family: var(--serif); font-size: clamp(62px, 5.35vw, 80px); line-height: .98; letter-spacing: -3.8px; font-weight: 500; }
.hero h1 em { display: inline-block; color: var(--gold); font-weight: 400; padding-right: 8px; }
.hero-text { color: #f0ece1; font-size: 15px; line-height: 1.55; margin: 16px 0 20px; }
.hero-cta, .primary, .portion, .chip, .detail-save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 650; }
.hero-cta { padding: 12px 18px; border-radius: 9px; background: var(--gold); color: #30281b; }
.hero-cta:hover { background: #ffda93; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.hero-health { display: inline-flex; align-items: center; gap: 5px; color: #fff8e7; font-size: 14px; font-weight: 650; padding: 9px 0; text-decoration: underline; text-underline-offset: 4px; }
.hero-cta .icon { width: 16px; height: 16px; }
.menu-section { margin-top: clamp(32px, 3.2vw, 45px); scroll-margin-top: 15px; }
.section-label { color: #526844; letter-spacing: 1.85px; }
.section-label .rule { width: 23px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 6px 0 22px; }
h2, .collection-intro, #collection h1 { margin: 0; }
.section-head h2, #collection h1 { color: #253c2d; font: 500 clamp(34px, 2.85vw, 45px)/1.18 var(--serif); letter-spacing: -1.6px; }
.date-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.date-line .icon { width: 16px; height: 16px; color: #976321; }
.separator { color: #858a7e; }
.menu-controls { display: flex; align-items: center; gap: 9px; }
.meal-picker { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: -4px 0 18px; }
.meal-styles { display: flex; flex-wrap: wrap; gap: 7px; }
.meal-library { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; color: var(--green); font-size: 13px; font-weight: 600; }
.meal-library:hover { text-decoration: underline; }
.meal-library .icon { width: 15px; height: 15px; }
.primary, .portion, .detail-save { min-height: 41px; border-radius: 9px; }
.primary { background: var(--green); color: #fffdf6; padding: 10px 17px; }
.primary:hover { background: #1b3e2d; }
.portion { position: relative; gap: 0; border: 1px solid #cdd2c2; background: var(--white); color: #3b4939; }
.portion > .icon:first-child { position: absolute; left: 13px; pointer-events: none; }
.portion .small { position: absolute; right: 9px; width: 14px; height: 14px; pointer-events: none; }
.portion select { background: transparent; appearance: none; border: 0; padding: 10px 28px 10px 39px; border-radius: inherit; min-height: 39px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 1.65vw, 25px); }
.card { min-width: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.card-open { display: block; flex: 1; padding: 0; width: 100%; cursor: pointer; color: inherit; background: transparent; text-align: left; }
.card-open:focus-visible { outline-offset: -4px; }
.photo { position: relative; display: block; overflow: hidden; aspect-ratio: 1.98; background: #e1ddcd; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-open:hover img { transform: scale(1.035); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; background: #fffaf0; color: #403c32; font-size: 11px; line-height: 1.3; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.badge-main { --dot: #bc6540; }
.badge-veg { --dot: #648849; }
.badge-soup { --dot: #c29831; }
.badge-noodle { --dot: #bd7a3c; }
.badge-hotpot { --dot: #af4642; }
.badge-rice { --dot: #80874c; }
.badge-roll { --dot: #5c866e; }
.badge-cake { --dot: #b77d51; }
.badge-specialty { --dot: #936b86; }
.card-guide .card-open { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.guide-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 17px 53px 0 17px; font-size: 12px; color: var(--muted); }
.guide-kicker .badge { background: #edf1e6; }
.guide-preview { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin: 0 17px 14px; color: #576251; font-size: 14px; line-height: 1.52; }
.card-guide { background: linear-gradient(145deg, #f4f4e9, var(--white) 75%); }
.card-guide .card-name { margin-top: 11px; }
.ingredient-label { margin: 5px 17px; color: var(--muted); font-size: 11px; font-weight: 650; }
.card-ingredients { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 17px 15px; }
.card-ingredients > span { padding: 3px 8px; background: #e9eddf; border-radius: 5px; color: #42573b; font-size: 12px; }
.photo .badge { position: absolute; top: 13px; left: 13px; }
.round { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fffdf5f5; color: #394737; box-shadow: 0 1px 5px #241c1514; }
.round:hover { background: #eaf0dd; }
.card-save { position: absolute; top: 12px; right: 12px; }
[aria-pressed="true"] .bookmark-icon { fill: currentColor; }
.card-name { display: block; margin: 15px 17px 7px; font: 600 clamp(22px, 1.8vw, 28px)/1.23 var(--serif); letter-spacing: -.8px; color: #28392a; }
.card-open:hover .card-name { color: #56713e; }
.card-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 17px 14px; min-height: 39px; }
.meta, .swap { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.45; }
.meta { color: var(--muted); }
.meta .icon, .swap .icon { width: 15px; height: 15px; }
.swap { color: var(--green); background: transparent; padding: 4px 0 4px 6px; font-weight: 600; }
.swap:hover { text-decoration: underline; }
.library-invite { display: flex; align-items: center; gap: 16px; margin: 33px 0 48px; border: 1px solid #d9dfcc; border-radius: 14px; background: #eef1e5; padding: 24px 26px; }
.invite-icon { display: grid; place-items: center; width: 45px; height: 45px; flex-shrink: 0; border-radius: 50%; background: #dfe7d3; color: var(--green); }
.invite-icon .icon { width: 23px; height: 23px; }
.invite-copy { flex: 1; }
.invite-copy h2 { font: 600 23px/1.3 var(--serif); letter-spacing: -.6px; color: #314b35; }
.invite-copy p { margin: 4px 0 0; font-size: 14px; color: #5a6855; }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid #cdd4c4; border-radius: 9px; padding: 0 12px; background: var(--white); color: var(--muted); }
.search-field:focus-within { outline: 2px solid #6e845c; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; padding: 11px 0; font-size: 14px; }
.search-field button { display: inline-grid; place-items: center; color: var(--green); background: transparent; padding: 5px; }
#quick-search { width: min(35%, 325px); }
footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 22px; font-size: 13px; }
.footer-inner .brand { font-size: 22px; letter-spacing: -1px; gap: 7px; }
#collection { padding: 48px 0; }
#collection h1 { font-size: clamp(38px, 4vw, 56px); margin: 9px 0; }
.collection-intro { font-size: 16px; color: var(--muted); line-height: 1.5; }
.collection-tools { display: grid; gap: 14px; margin: 22px 0 15px; }
.catalog-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.catalog-fields .search-field { flex: 1 1 245px; }
.catalog-select { display: grid; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; }
.catalog-select select { min-height: 40px; max-width: 100%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--green); font-size: 13px; }
.health-panel { border: 1px solid #cdd7c4; border-radius: 12px; background: var(--white); }
.health-panel summary { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; cursor: pointer; padding: 12px 15px; color: var(--green); border-radius: inherit; }
.health-panel summary::-webkit-details-marker { display: none; }
.health-panel summary strong { font-size: 15px; }
#health-count { background: #edf1e5; border-radius: 12px; padding: 3px 8px; font-size: 12px; }
.health-chevron { margin-left: auto; }
.health-panel[open] .health-chevron { transform: rotate(180deg); }
.health-body { padding: 0 16px 15px; }
.health-body p, .health-notes li, .health-alert { font-size: 14px; line-height: 1.55; }
.health-body p { margin: 7px 0; }
.health-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr)); gap: 12px; margin: 14px 0; }
.health-options fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); padding: 7px 9px 9px; border-radius: 9px; }
.health-options legend { padding: 0 4px; color: var(--green); font-weight: 650; font-size: 14px; }
.health-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.health-choice { display: flex; align-items: baseline; gap: 8px; padding: 5px; font-size: 14px; cursor: pointer; }
.health-choice input { accent-color: var(--green); flex: 0 0 auto; }
.health-choice:has(:checked) { color: var(--green); background: #eff3e9; border-radius: 5px; }
.health-body .health-scope { color: var(--muted); font-size: 13px; }
.health-body a, .health-alert a, .health-notes a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.health-alert { background: #fff3d8; color: #563715; padding: 12px 16px; border-radius: 9px; }
.health-preview { display: block; margin: 2px 17px 13px; color: #405c43; font-size: 13px; line-height: 1.45; }
.health-notes { border-radius: 10px; margin: 16px 0; padding: 14px 16px; background: #eef3e9; }
.health-notes h3 { font-size: 21px; }
.health-notes ul { margin: 8px 0 0; padding-left: 18px; }
.health-notes li + li { margin-top: 7px; }
#filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid var(--line); color: var(--green); padding: 8px 14px; border-radius: 20px; background: var(--white); }
.chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: white; }
#result-count { margin: 12px 0; color: var(--muted); font-size: 13px; }
#more-recipes { display: flex; margin: 24px auto 0; padding-inline: 22px; }
.empty { padding: 45px 20px; border: 1px dashed #bac7ae; border-radius: 14px; text-align: center; }
.empty > .icon { width: 30px; height: 30px; color: var(--green); }
.empty h2 { margin-top: 12px; font: 600 27px var(--serif); }
.empty p { color: var(--muted); margin: 9px 0 20px; }
dialog { width: min(710px, calc(100% - 28px)); padding: 0; max-height: 89dvh; border: 0; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 25px 90px #17241e45; }
dialog::backdrop { background: #152019a8; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-close { position: absolute; z-index: 1; right: 14px; top: 14px; width: 40px; height: 40px; }
.detail-photo { width: 100%; height: clamp(145px, 24vh, 220px); object-fit: cover; display: block; }
.detail-body { padding: 23px clamp(18px, 4vw, 38px) 32px; }
.detail-tags { display: flex; gap: 12px; align-items: center; }
.detail-tags .badge { background: #edeedc; }
#recipe-title { font: 600 clamp(29px, 4.2vw, 41px)/1.15 var(--serif); letter-spacing: -1px; color: var(--green); margin: 10px 0; }
.detail-intro, .steps p { line-height: 1.65; font-size: 15px; }
.detail-intro { color: #586153; margin: 0 0 15px; }
.dish-context { margin: 4px 0 15px; color: var(--muted); font-size: 14px; }
.detail-guide { padding-top: 27px; }
.detail-guide .detail-tags { padding-right: 38px; }
.dish-keywords { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.dish-keywords li { background: #eff2e7; border-radius: 20px; padding: 5px 12px; font-size: 14px; color: var(--green); }
.dish-sources { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.source-link { display: inline-flex; align-items: center; gap: 5px; color: var(--green); text-decoration: underline; font-size: 13px; }
.detail-save { min-height: 36px; font-size: 13px; background: #eff2e7; padding: 7px 12px; color: var(--green); }
.note-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; }
.note-filter input { accent-color: var(--green); }
.note-mark { display: block; margin: 2px 17px 8px; color: var(--green); font-size: 12px; font-weight: 600; }
.family-note { margin: 16px 0; background: #f6f3e9; border: 1px solid var(--line); border-radius: 10px; }
.family-note summary { padding: 12px 15px; cursor: pointer; color: var(--green); font-weight: 650; }
.family-note-body { padding: 0 15px 12px; }
.family-note-body label { display: block; margin-bottom: 5px; font-size: 14px; }
#family-note-text { width: 100%; min-height: 75px; resize: vertical; padding: 9px 11px; border: 1px solid #c9d2c0; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; line-height: 1.5; }
#family-note-help, #family-note-status { color: var(--muted); font-size: 12px; line-height: 1.5; }
#family-note-help { margin: 5px 0; }
.family-note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.family-note-actions .chip { font-size: 12px; padding: 5px 10px; }
.detail-head { border-top: 1px solid var(--line); padding-top: 21px; margin: 22px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-body h3 { font: 600 25px var(--serif); letter-spacing: -.6px; margin: 0; color: #304733; }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 8px 0; font-size: 14px; }
.ingredients strong { text-align: right; font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding-left: 37px; margin: 18px 0 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; color: #62784f; font: italic 20px var(--serif); }
.steps h4 { margin: 0 0 4px; font-size: 16px; color: #314836; }
.steps p { margin: 0; color: #4c554a; }
.toast { position: fixed; z-index: 4; pointer-events: none; left: 50%; bottom: 20px; transform: translate(-50%, 8px); opacity: 0; transition: .18s; max-width: calc(100% - 24px); padding: 10px 17px; border-radius: 10px; background: #284835; color: white; box-shadow: 0 4px 24px #0002; font-size: 14px; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1500px) { .hero { min-height: 385px; } }
@media (max-width: 850px) {
    .wrap { width: calc(100% - 44px); }
    .navrow { gap: 10px; }
    .main-nav a, .saved-nav { font-size: 13px; padding: 9px 10px; }
    .cards { gap: 13px; }
    .photo { aspect-ratio: 1.5; }
    .section-head { align-items: flex-end; }
    .invite-icon { display: none; }
    .card-foot { padding-inline: 12px; }
    .card-name { margin-inline: 12px; }
}
@media (max-width: 640px) {
    .wrap { width: calc(100% - 32px); }
    .navrow { grid-template-columns: 1fr 1fr; gap: 0; padding-top: 12px; }
    .brand { font-size: 27px; }
    .brand img { width: 35px; height: 35px; }
    .saved-nav { grid-row: 1; grid-column: 2; font-size: 12px; }
    .main-nav { grid-column: 1/-1; grid-row: 2; padding: 9px 0; gap: 6px; }
    .main-nav a { font-size: 12px; padding: 7px 11px; }
    .main-nav a .icon { width: 15px; height: 15px; }
    .hero { border-radius: 14px; margin-top: 15px; min-height: 320px; background-position: 57% center; }
    .hero::before { background: linear-gradient(90deg, #21180fe8, #231a0fb0 43%, #221b1229); }
    .hero-copy { padding: 27px 21px; }
    .hero h1 { font-size: 60px; letter-spacing: -2.6px; }
    .hero-text { max-width: 275px; font-size: 14px; }
    .hero-cta { padding: 11px 14px; font-size: 13px; }
    .overline { font-size: 9.5px; }
    .menu-section { margin-top: 29px; }
    .section-head { align-items: stretch; flex-direction: column; gap: 15px; margin-bottom: 15px; }
    .section-head h2 { font-size: 34px; }
    .date-line { font-size: 12px; gap: 6px; }
    .menu-controls { justify-content: flex-start; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .card-name { font-size: 21px; }
    .photo .badge { left: 9px; top: 10px; }
    .card-save { top: 8px; right: 8px; }
    .library-invite { flex-wrap: wrap; padding: 18px; gap: 13px; }
    .invite-copy { flex-basis: 100%; }
    #quick-search { width: 100%; }
    #collection { padding-top: 27px; }
    .collection-tools { gap: 12px; margin-top: 19px; }
    .catalog-fields { gap: 8px; }
    .catalog-fields .search-field { flex-basis: 100%; }
    .catalog-select { flex: 1 1 120px; min-width: 0; }
    .chip { font-size: 12px; padding: 7px 11px; }
}
@media (max-width: 470px) {
    .cards { grid-template-columns: 1fr; gap: 18px; }
    .photo { aspect-ratio: 1.98; }
    .card-name { margin: 14px 16px 7px; font-size: 25px; }
    .card-foot { padding-inline: 16px; }
    .photo .badge { top: 13px; left: 13px; }
    .card-save { top: 12px; right: 12px; }
    .footer-inner { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; }
}
