@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --paper: #f7f5ef;
    --white: #fffefa;
    --ink: #263b32;
    --muted: #788078;
    --line: #e6e3d9;
    --orange: #e7774d;
    --green: #687e5f;
    --soft-green: #e7e9dc;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #e8a181; outline-offset: 3px; }

.site-header { height: 82px; max-width: 1280px; margin: auto; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(38, 59, 50, .09); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.7px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--serif); font-size: 20px; font-weight: 600; }
.header-nav { display: flex; align-items: center; gap: 33px; margin-left: 55px; }
.header-nav a { color: var(--muted); font-size: 13px; transition: color .18s ease; }
.header-nav a:hover, .header-nav a.active { color: var(--ink); }
.header-nav a.active { font-weight: 700; }
.button { min-height: 45px; padding: 0 19px; border: 0; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #385446; }
.button-light { background: #f0eee7; color: var(--ink); }
.header-button { min-height: 40px; padding: 0 15px; font-size: 12px; }
.header-button span { font-size: 17px; }
.page-wrap { max-width: 1196px; margin: 0 auto; padding-left: 42px; padding-right: 42px; }

.hero { min-height: 398px; padding-top: 77px; padding-bottom: 57px; display: grid; grid-template-columns: 1fr .85fr; align-items: center; overflow: hidden; }
.eyebrow { color: #777e70; font-size: 10px; font-weight: 700; letter-spacing: 1.45px; text-transform: uppercase; }
.eyebrow-dot { color: var(--orange); }
.hero h1, .detail-heading h1 { margin: 19px 0 13px; font-family: var(--serif); font-size: clamp(45px, 5.3vw, 65px); font-weight: 500; line-height: 1.08; letter-spacing: -2px; }
.hero h1 span { color: var(--orange); font-style: italic; }
.hero-copy > p { max-width: 420px; margin: 0; color: #70766f; font-size: 14px; line-height: 1.8; }
.text-link { margin-top: 24px; display: inline-flex; gap: 10px; color: var(--ink); font-size: 12px; font-weight: 700; }
.text-link span { color: var(--orange); font-size: 17px; line-height: 12px; transition: transform .18s ease; }
.text-link:hover span { transform: translateY(3px); }
.hero-art { position: relative; min-height: 295px; display: grid; place-items: center; }
.hero-plate { position: relative; width: 254px; height: 254px; border: 16px solid #fffdf6; border-radius: 50%; background: #e5dfce; box-shadow: 0 20px 36px rgba(67, 55, 37, .1), inset 0 0 0 1px rgba(57, 48, 34, .1); transform: rotate(-12deg); }
.plate-center { position: absolute; inset: 36px; border-radius: 50%; background: #f6f1df; box-shadow: inset 0 2px 6px rgba(61, 58, 38, .11); }
.plate-leaf { position: absolute; z-index: 1; width: 75px; height: 30px; border-radius: 100% 0 100% 0; background: #708760; transform: rotate(28deg); }
.leaf-one { top: 79px; left: 67px; }
.leaf-two { top: 134px; left: 119px; width: 65px; height: 25px; transform: rotate(202deg); background: #8c9a67; }
.plate-tomato { position: absolute; z-index: 2; width: 53px; height: 53px; border-radius: 48% 52% 51% 49%; background: #d66e4b; box-shadow: inset -4px -6px 0 rgba(150, 61, 40, .15); }
.tomato-one { top: 70px; left: 127px; }
.tomato-two { top: 124px; left: 66px; width: 43px; height: 43px; background: #e18858; }
.plate-crumb { position: absolute; z-index: 2; width: 14px; height: 14px; background: #dccb88; border-radius: 50%; }
.crumb-one { top: 105px; left: 105px; }
.crumb-two { top: 157px; left: 142px; width: 10px; height: 10px; }
.hero-sticker { position: absolute; z-index: 3; top: 15px; right: 2%; width: 85px; height: 85px; display: grid; place-items: center; border: 1px solid rgba(104, 126, 95, .5); border-radius: 50%; color: var(--green); font-family: var(--serif); font-size: 13px; font-style: italic; line-height: 1.15; text-align: center; transform: rotate(9deg); }
.hero-sparkle { position: absolute; color: var(--orange); }
.sparkle-one { left: 10%; top: 50px; font-size: 23px; }
.sparkle-two { right: 1%; bottom: 32px; font-size: 14px; }

.collection { padding-top: 39px; padding-bottom: 82px; border-top: 1px solid rgba(38, 59, 50, .1); }
.collection-heading { display: flex; align-items: end; justify-content: space-between; }
.collection-heading h2 { margin: 9px 0 0; font-family: var(--serif); font-size: 31px; font-weight: 500; letter-spacing: -.55px; }
.collection-heading h2 span { color: var(--orange); font-style: italic; }
.recipe-count { padding-bottom: 5px; color: var(--muted); font-size: 11px; }
.recipe-tools { display: grid; grid-template-columns: minmax(210px, 1fr) auto; align-items: center; gap: 14px; margin: 27px 0 25px; }
.search-box { height: 43px; max-width: 355px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 254, 250, .55); color: var(--muted); }
.search-box > span { font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #969a91; }
.filter-submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.category-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; color: #777e70; font-size: 10px; transition: all .18s ease; }
.filter-chip:hover { border-color: #9da58f; color: var(--ink); }
.filter-chip.selected { border-color: var(--ink); background: var(--ink); color: white; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.recipe-card { min-width: 0; overflow: hidden; border: 1px solid #ece9e0; border-radius: 9px; background: var(--white); transition: transform .22s ease, box-shadow .22s ease; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(44, 54, 41, .09); }
.card-art { height: 160px; position: relative; overflow: hidden; display: grid; place-items: center; }
.card-art-0 { background: #e8e4d6; }
.card-art-1 { background: #eadfd2; }
.card-art-2 { background: #e0e5d7; }
.card-art-3 { background: #e7dedf; }
.card-art-shape { position: absolute; border-radius: 50%; }
.shape-main { width: 122px; height: 122px; border: 8px solid rgba(255, 254, 248, .86); background: #dcaa73; box-shadow: 0 9px 18px rgba(53, 53, 38, .13); }
.card-art-1 .shape-main { background: #e7926b; }
.card-art-2 .shape-main { background: #a0ad7b; }
.card-art-3 .shape-main { background: #d98c74; }
.shape-small { z-index: 1; width: 53px; height: 53px; margin: 0 0 22px 22px; border: 6px solid rgba(255, 255, 255, .6); background: #73835d; box-shadow: 0 4px 12px rgba(49, 55, 37, .1); }
.card-art-1 .shape-small { background: #f0c77e; }
.card-art-2 .shape-small { background: #e69465; }
.card-art-3 .shape-small { background: #71805c; }
.card-art-mark { position: absolute; z-index: 2; color: #fff9e8; font-family: var(--serif); font-size: 30px; transform: rotate(-14deg); }
.card-art-label { position: absolute; right: 11px; bottom: 9px; color: rgba(49, 57, 41, .55); font-family: var(--serif); font-size: 10px; font-style: italic; }
.card-content { padding: 16px 17px 17px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.category-label { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.card-time { color: #8d9189; font-size: 10px; }
.card-content h3 { margin: 9px 0 6px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.2px; }
.card-content > p { min-height: 35px; margin: 0; color: #858980; font-size: 11px; line-height: 1.6; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-link { margin-top: 13px; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-size: 10px; font-weight: 700; }
.card-link span { color: var(--orange); font-size: 14px; }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { color: var(--orange); font-family: var(--serif); font-size: 42px; }
.empty-state h3 { margin: 10px 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

.recipe-detail { padding-top: 31px; padding-bottom: 85px; }
.back-link { color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--ink); }
.detail-heading { padding-top: 25px; padding-bottom: 46px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 55px; border-bottom: 1px solid var(--line); }
.detail-heading h1 { max-width: 620px; overflow-wrap: anywhere; font-size: clamp(40px, 5vw, 59px); }
.detail-description { max-width: 500px; color: #747a72; font-size: 14px; line-height: 1.8; }
.detail-meta { margin-top: 19px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.detail-meta strong { color: var(--ink); font-size: 13px; }
.meta-divider { color: #c4c6bc; }
.detail-actions { margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.delete-form { margin: 0; }
.button-delete { min-height: 40px; font-size: 12px; }
.button-delete:hover { background: #f0ded6; color: #8c452e; }
.detail-art { min-height: 265px; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 10px; background: #e7e2d4; }
.detail-art.art-dessert { background: #eadfd5; }
.detail-art.art-drinks { background: #dce8df; }
.detail-art.art-breakfast { background: #eae5d1; }
.detail-art.art-lunch { background: #e2e8dd; }
.detail-art.art-snacks { background: #eadfd9; }
.art-sun { position: absolute; top: 21px; right: 27px; width: 66px; height: 66px; border-radius: 50%; background: #f2c37f; opacity: .8; }
.art-dish { position: absolute; width: 190px; height: 190px; border: 12px solid #fffdf7; border-radius: 50%; background: #e5ad76; box-shadow: 0 13px 28px rgba(48, 47, 35, .15), inset 0 0 0 1px rgba(69, 58, 41, .1); }
.art-sprig { z-index: 1; margin: -4px 0 0 3px; color: #687d58; font-size: 87px; }
.art-caption { position: absolute; bottom: 17px; left: 20px; color: #7d8277; font-family: var(--serif); font-size: 12px; font-style: italic; }
.success-note { color: #59744c; font-size: 12px; }
.recipe-method { padding-top: 42px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; }
.recipe-method h2 { margin: 8px 0 22px; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.heading-count { margin-left: 5px; color: #a4a79d; font-family: var(--sans); font-size: 12px; }
.ingredient-list, .step-list { margin: 0; padding: 0; list-style: none; }
.ingredient-list li { padding: 12px 0; display: flex; align-items: baseline; gap: 11px; border-bottom: 1px solid var(--line); color: #616960; font-size: 12px; line-height: 1.6; }
.ingredient-list strong { color: var(--ink); font-weight: 600; }
.ingredient-check { width: 13px; height: 13px; flex: 0 0 13px; position: relative; top: 2px; border: 1px solid #c8cbbd; border-radius: 50%; }
.ingredient-list li:hover .ingredient-check { border-color: var(--green); background: var(--soft-green); }
.step-list li { padding: 0 0 23px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--soft-green); color: var(--green); font-family: var(--serif); font-size: 13px; }
.step-list p { margin: 6px 0 0; color: #626a61; font-size: 13px; line-height: 1.75; }

.modal-backdrop { position: fixed; z-index: 5; inset: 0; padding: 25px; display: flex; align-items: center; justify-content: center; overflow-y: auto; background: rgba(30, 42, 34, .53); backdrop-filter: blur(4px); }
.editor-modal { width: min(660px, 100%); max-height: calc(100vh - 50px); padding: 26px 30px 22px; overflow-y: auto; border-radius: 12px; background: var(--white); box-shadow: 0 20px 70px rgba(24, 35, 29, .2); }
.editor-header { margin-bottom: 21px; display: flex; align-items: start; justify-content: space-between; }
.editor-header h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.modal-close { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f0eee7; color: #5d675f; font-size: 21px; }
.recipe-form { display: flex; flex-direction: column; gap: 13px; }
.field-label { display: flex; flex-direction: column; gap: 6px; color: #48554a; font-size: 11px; font-weight: 700; }
.field-label input, .field-label textarea, .field-label select, .ingredient-editor-row input, .step-editor-row textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #e5e3db; border-radius: 5px; background: #fffefa; color: var(--ink); font-size: 12px; font-weight: 400; }
.field-label input, .field-label select { height: 39px; }
.field-label textarea, .step-editor-row textarea { resize: vertical; line-height: 1.5; }
.field-label input::placeholder, .field-label textarea::placeholder, .ingredient-editor-row input::placeholder, .step-editor-row textarea::placeholder { color: #a3a59d; }
.optional { color: #989c93; font-size: 10px; font-weight: 400; }
.field-row { display: grid; gap: 10px; }
.field-row-three { grid-template-columns: 1.3fr .8fr .9fr; }
.short-field { max-width: 190px; }
.form-section { padding-top: 9px; }
.form-section-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.form-section-heading h3 { margin: 3px 0 0; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.form-section-heading .eyebrow { font-size: 9px; }
.add-row-button { padding: 6px 0 6px 10px; border: 0; background: none; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.add-row-button:hover { color: var(--ink); }
.ingredient-editor-list, .step-editor-list { display: flex; flex-direction: column; gap: 7px; }
.ingredient-editor-row { display: grid; grid-template-columns: .65fr .8fr 1.6fr 28px; gap: 7px; align-items: center; }
.ingredient-editor-row input { height: 37px; padding: 8px; }
.remove-row-button { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #989d93; font-size: 19px; cursor: pointer; }
.remove-row-button:hover { background: #f7e9e3; color: #9d5338; }
.field-hint { margin: 7px 0 0; color: #92958d; font-size: 10px; }
.field-hint strong { color: var(--green); }
.step-editor-row { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: start; }
.editor-step-number { padding-top: 10px; color: #87917f; font-family: var(--serif); font-size: 12px; text-align: center; }
.step-editor-row textarea { min-height: 49px; }
.editor-footer { padding-top: 13px; display: flex; align-items: center; justify-content: end; gap: 17px; border-top: 1px solid var(--line); }
.cancel-link { color: var(--muted); font-size: 12px; }
.site-footer { min-height: 95px; padding: 18px 42px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(38, 59, 50, .1); }
.site-footer .brand { font-size: 15px; }
.site-footer .brand-mark { width: 26px; height: 26px; font-size: 17px; }
.site-footer p { color: var(--green); font-family: var(--serif); font-size: 13px; font-style: italic; }
.site-footer > span { color: #92968d; font-size: 10px; }
.setup-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.setup-card { width: min(550px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.setup-card .brand { margin-bottom: 35px; }
.setup-card h1 { margin: 9px 0 12px; font-family: var(--serif); font-size: 34px; font-weight: 500; }
.setup-card p, .setup-card li { color: #70766f; font-size: 13px; line-height: 1.8; }
.setup-card ol { padding-left: 19px; }
.setup-card code { padding: 2px 5px; border-radius: 3px; background: #f0eee7; color: #43584a; font-size: 12px; }

@media (min-width: 1100px) {
    .hero { min-height: 420px; }
    .card-art { height: 174px; }
}
@media (max-width: 760px) {
    .site-header { height: 70px; padding: 0 23px; }
    .header-nav { gap: 17px; margin-left: 0; }
    .header-nav a { font-size: 11px; }
    .header-nav a:last-child { display: none; }
    .header-button { padding: 0 11px; font-size: 11px; }
    .page-wrap { padding-left: 24px; padding-right: 24px; }
    .hero { min-height: 340px; padding-top: 47px; grid-template-columns: 1fr .72fr; }
    .hero h1 { font-size: 49px; }
    .hero-plate { width: 200px; height: 200px; border-width: 13px; transform: scale(.9) rotate(-12deg); }
    .hero-sticker { top: 0; right: -9px; transform: scale(.85) rotate(9deg); }
    .leaf-one { top: 55px; left: 48px; }
    .leaf-two { top: 111px; left: 96px; }
    .tomato-one { top: 50px; left: 106px; }
    .tomato-two { top: 103px; left: 52px; }
    .crumb-one { top: 85px; left: 84px; }
    .crumb-two { top: 136px; left: 117px; }
    .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .card-art { height: 145px; }
    .detail-heading { gap: 25px; grid-template-columns: 1fr .8fr; }
    .detail-art { min-height: 220px; }
    .recipe-method { gap: 38px; }
}
@media (max-width: 520px) {
    .site-header { padding: 0 16px; }
    .brand { gap: 7px; font-size: 16px; }
    .brand-mark { width: 27px; height: 27px; font-size: 18px; }
    .header-nav { display: none; }
    .personal-app-menu { margin-left: auto; }
    .page-wrap { padding-left: 19px; padding-right: 19px; }
    .hero { padding-top: 40px; padding-bottom: 29px; grid-template-columns: 1fr; }
    .hero-copy { position: relative; z-index: 1; }
    .hero h1 { margin-top: 15px; font-size: 48px; }
    .hero-art { min-height: 210px; margin-top: 10px; }
    .hero-plate { transform: scale(.78) rotate(-12deg); }
    .hero-sticker { top: -1px; right: 11%; transform: scale(.72) rotate(9deg); }
    .sparkle-one { left: 15%; top: 5px; }
    .sparkle-two { right: 17%; bottom: 9px; }
    .collection { padding-top: 29px; padding-bottom: 57px; }
    .collection-heading { align-items: start; flex-direction: column; gap: 9px; }
    .collection-heading h2 { font-size: 27px; }
    .recipe-count { padding-bottom: 0; }
    .recipe-tools { margin-top: 20px; grid-template-columns: 1fr auto; gap: 10px; }
    .search-box { max-width: none; }
    .filter-submit { position: static; width: auto; height: 40px; padding: 0 12px; clip: auto; border: 0; border-radius: 5px; background: var(--ink); color: white; font-size: 11px; white-space: nowrap; }
    .category-filters { gap: 6px; }
    .filter-chip { padding: 0 9px; font-size: 9px; }
    .recipe-grid { grid-template-columns: 1fr; gap: 13px; }
    .recipe-card { display: grid; grid-template-columns: 112px 1fr; }
    .card-art { height: 100%; min-height: 154px; }
    .shape-main { width: 89px; height: 89px; border-width: 6px; }
    .shape-small { width: 38px; height: 38px; margin: 0 0 16px 16px; border-width: 4px; }
    .card-art-label { right: 5px; bottom: 5px; font-size: 8px; }
    .card-content { padding: 13px 12px; }
    .card-content h3 { font-size: 17px; }
    .card-content > p { min-height: 32px; font-size: 10px; }
    .card-link { margin-top: 9px; }
    .detail-heading { padding-top: 22px; padding-bottom: 27px; grid-template-columns: 1fr; gap: 20px; }
    .detail-heading h1 { margin-top: 12px; font-size: 42px; }
    .detail-art { min-height: 190px; }
    .art-dish { width: 145px; height: 145px; border-width: 9px; }
    .art-sprig { font-size: 67px; }
    .recipe-method { padding-top: 28px; grid-template-columns: 1fr; gap: 33px; }
    .recipe-detail { padding-bottom: 55px; }
    .site-footer { padding: 18px 20px; gap: 10px; }
    .site-footer p { font-size: 11px; }
    .site-footer > span { display: none; }
    .modal-backdrop { padding: 10px; align-items: flex-start; }
    .editor-modal { max-height: calc(100vh - 20px); padding: 22px 17px 17px; }
    .field-row-three { grid-template-columns: 1fr 1fr; }
    .field-row-three .field-label:first-child { grid-column: 1 / -1; }
    .ingredient-editor-row { grid-template-columns: .7fr .8fr 1.2fr 24px; gap: 4px; }
    .ingredient-editor-row input { padding: 7px 5px; font-size: 11px; }
    .remove-row-button { width: 24px; }
    .setup-card { padding: 27px 23px; }
}
