:root {
  color-scheme: light;
  --ink: #211f1c;
  --muted: #716d68;
  --paper: #fffefa;
  --cream: #f7f4ef;
  --line: #e8e3dc;
  --accent: #c53f09;
  --accent-dark: #9f3006;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, 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: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 14px; background: var(--paper); color: var(--ink); }

.topbar { background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .03em; }
.topbar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; }
.topbar a { color: #fff; }
.topbar a:hover { color: #f0b18e; }
.site-header { background: var(--paper); }
.site-header > .container { display: flex; min-height: 142px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { text-align: center; margin-inline: auto; }
.brand__mark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; }
.brand__icon { color: var(--accent); font-size: 25px; line-height: 1; }
.brand__name { margin-top: 6px; font-family: var(--serif); font-size: clamp(29px, 4vw, 39px); font-weight: 700; letter-spacing: -.045em; }
.brand p { margin: 7px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .07em; }
.header-tools { position: absolute; right: max(24px, calc((100% - 1120px) / 2)); display: flex; align-items: center; gap: 10px; }
.search-form { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.search-form input { width: 150px; padding: 8px 4px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-form input:focus { border-bottom-color: var(--accent); }
.search-form button { border: 0; background: transparent; color: var(--ink); font-size: 25px; cursor: pointer; }
.main-nav { min-height: 52px; display: flex; justify-content: center; align-items: center; gap: clamp(18px, 3.2vw, 42px); border-block: 1px solid var(--ink); }
.main-nav a { padding-block: 15px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.main-nav a:hover { color: var(--accent); }
.mobile-menu { display: none; }

.hero { position: relative; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 8%; padding-block: 70px 82px; }
.hero__copy { max-width: 540px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.13; }
.hero h1 { max-width: 570px; margin: 16px 0 18px; font-size: clamp(44px, 5.7vw, 70px); letter-spacing: -.055em; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero__copy > p { max-width: 440px; margin-bottom: 27px; color: var(--muted); font-size: 17px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 20px; padding: 0 21px; border: 1px solid var(--accent); background: var(--accent); color: white; font-size: 13px; font-weight: 700; transition: background .2s, color .2s; }
.button:hover { background: var(--accent-dark); color: white; }
.hero__image-wrap { position: relative; display: block; max-width: 450px; justify-self: end; }
.hero__image-wrap img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 48% 48% 4px 4px; }
.hero__image-label { position: absolute; right: -24px; bottom: 24px; display: grid; gap: 3px; min-width: 205px; padding: 15px 20px; background: var(--paper); box-shadow: 0 12px 35px #211f1c1a; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.hero__image-label strong { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.hero__decoration { position: absolute; bottom: 35px; left: 0; color: #a7a098; font-family: var(--serif); font-size: 14px; font-style: italic; }

.category-band { padding: 50px 0 55px; background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(29px, 3vw, 38px); letter-spacing: -.03em; }
.section-heading--center { display: block; margin-bottom: 26px; text-align: center; }
.category-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.category-item { display: grid; justify-items: center; gap: 9px; color: #45413d; font-size: 13px; }
.category-item img { width: min(100%, 116px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; transition: transform .25s; }
.category-item:hover img { transform: translateY(-4px); }
.category-item:hover span { color: var(--accent); }

.recipe-section { padding-block: 68px 80px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.recipe-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; transition: box-shadow .2s, transform .2s; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px #211f1c12; }
.recipe-card__image-link { display: block; overflow: hidden; margin: 12px 12px 0; border-radius: 5px; background: var(--cream); }
.recipe-card__image { width: 100%; height: 230px; object-fit: cover; transition: transform .35s; }
.recipe-card:hover .recipe-card__image { transform: scale(1.035); }
.recipe-card__body { padding: 16px 18px 19px; }
.recipe-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.recipe-card__meta .eyebrow { font-size: 10px; }
.recipe-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; }
.recipe-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--accent-dark); }
.about-strip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 80px; padding: 42px 48px; overflow: hidden; background: var(--ink); color: #fff; }
.about-strip__ornament { position: absolute; top: -34px; right: 29%; color: #ffffff10; font-size: 200px; line-height: 1; }
.about-strip > div { position: relative; max-width: 610px; }
.about-strip h2 { margin: 8px 0 10px; font-size: clamp(27px, 3vw, 37px); }
.about-strip p { max-width: 570px; margin: 0; color: #d3cfca; font-size: 14px; }
.button--light { position: relative; flex: 0 0 auto; border-color: #fff; background: transparent; }
.button--light:hover { background: #fff; color: var(--ink); }

.listing-intro { padding-block: 35px 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--accent); }
.listing-intro h1, .empty-state h1 { margin: 7px 0 0; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.04em; }
.recipe-detail { padding-block: 38px 80px; }
.recipe-detail__intro { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 8%; padding-block: 12px 50px; }
.recipe-detail__copy h1 { margin: 10px 0 16px; font-size: clamp(42px, 5.5vw, 66px); letter-spacing: -.04em; }
.lead { max-width: 540px; color: var(--muted); font-size: 18px; }
.recipe-detail__image { width: 100%; height: 450px; max-height: 480px; object-fit: cover; border-radius: 7px; }
.recipe-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.recipe-facts span { padding: 7px 11px; border: 1px solid var(--line); color: #5d5852; font-size: 12px; }
.recipe-detail__columns { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8%; border-top: 1px solid var(--line); padding-top: 34px; }
.recipe-detail__columns h2 { margin-bottom: 18px; font-size: 29px; }
.ingredients-panel ul, .method-panel ol { margin: 0; padding: 0; list-style: none; }
.ingredients-panel li, .method-panel li { position: relative; margin-bottom: 12px; padding: 0 0 12px 24px; border-bottom: 1px solid var(--line); color: #514d48; font-size: 14px; }
.ingredients-panel li::before { position: absolute; top: 9px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; }
.method-panel ol { counter-reset: steps; }
.method-panel li { counter-increment: steps; padding-left: 43px; }
.method-panel li::before { position: absolute; left: 0; top: -2px; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--cream); color: var(--accent); content: counter(steps); font-family: var(--serif); font-weight: 700; }
.recipe-prose p { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: #514d48; font-size: 14px; }
.empty-state { padding-block: 100px; text-align: center; }
.empty-state p { margin: 15px auto 23px; color: var(--muted); }
.empty-state--compact { padding-block: 45px; text-align: left; }
.empty-state--compact h2 { font-size: 25px; }

.site-footer { background: var(--ink); color: #fff; }
.site-footer__main { display: flex; min-height: 130px; align-items: center; justify-content: space-between; gap: 20px; }
.brand__mark--footer { flex-direction: row; gap: 9px; }
.brand__mark--footer .brand__name { margin: 0; font-size: 25px; }
.site-footer__main p { margin: 0; color: #c9c4bd; font-size: 13px; }
.site-footer__main > a:last-child, .site-footer__bottom a { color: #e8b99f; font-size: 13px; }
.site-footer__bottom { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff24; color: #aaa49d; font-size: 11px; }

@media (max-width: 760px) {
  .container { width: min(100% - 36px, 560px); }
  .topbar__inner { min-height: 32px; font-size: 10px; }
  .site-header > .container { min-height: 116px; }
  .header-tools { right: 18px; }
  .search-form { display: none; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary { padding: 7px 10px; border: 1px solid var(--line); cursor: pointer; font-size: 12px; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; z-index: 5; top: 40px; right: 0; display: grid; min-width: 155px; padding: 8px 14px; border: 1px solid var(--line); background: white; box-shadow: 0 12px 24px #211f1c1a; }
  .mobile-menu nav a { padding: 8px 0; font-size: 13px; }
  .brand__name { font-size: 30px; }
  .brand p { font-size: 11px; }
  .site-header > .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 66px; }
  .hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .hero__image-wrap { width: min(100%, 420px); justify-self: center; }
  .hero__image-label { right: -5px; bottom: 18px; }
  .hero__decoration { bottom: 22px; }
  .category-band { padding-block: 42px; }
  .category-list { grid-template-columns: repeat(3, 1fr); gap: 22px 12px; }
  .category-item img { width: min(100%, 92px); }
  .recipe-section { padding-block: 48px 56px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .recipe-card__image-link { margin: 8px 8px 0; }
  .recipe-card__image { height: 190px; }
  .recipe-card__body { padding: 12px; }
  .recipe-card h3 { font-size: 18px; }
  .recipe-card p { font-size: 12px; }
  .recipe-card__meta { font-size: 10px; }
  .about-strip { align-items: flex-start; flex-direction: column; margin-bottom: 52px; padding: 30px 24px; }
  .about-strip__ornament { right: 5%; font-size: 140px; }
  .recipe-detail__intro { grid-template-columns: 1fr; gap: 25px; padding-bottom: 32px; }
  .recipe-detail__image { grid-row: 1; height: 390px; max-height: 390px; }
  .recipe-detail__columns { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__main { min-height: 0; align-items: flex-start; flex-direction: column; padding-block: 30px; gap: 12px; }
  .site-footer__bottom { min-height: 55px; font-size: 10px; }
}

@media (max-width: 430px) {
  .container { width: calc(100% - 28px); }
  .topbar__inner span { max-width: 72%; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card { display: grid; grid-template-columns: 38% 1fr; align-items: center; }
  .recipe-card__image-link { margin: 9px 0 9px 9px; }
  .recipe-card__image { height: auto; }
  .recipe-card__body { padding: 10px 12px; }
  .recipe-card__meta { flex-wrap: wrap; margin-bottom: 5px; }
  .recipe-card h3 { font-size: 17px; }
  .recipe-card p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.admin-page { min-height: 100vh; background: var(--cream); }
.admin-container { width: min(940px, calc(100% - 36px)); margin-inline: auto; }
.admin-topbar { background: var(--ink); color: #fff; }
.admin-topbar__inner, .admin-topbar__actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-topbar__inner { min-height: 68px; }
.admin-topbar .brand__mark--footer .brand__name { color: #fff; }
.admin-topbar__actions { font-size: 13px; }
.admin-topbar__actions form { margin: 0; }
.admin-topbar__actions button { padding: 5px 10px; border: 1px solid #ffffff60; background: transparent; color: #fff; cursor: pointer; }
.admin-dashboard { padding-block: 42px 72px; }
.admin-heading, .admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-heading { margin-bottom: 25px; }
.admin-heading h1, .admin-login h1 { margin: 6px 0; font-size: clamp(34px, 5vw, 48px); }
.admin-heading p, .admin-login > p { margin: 0; color: var(--muted); }
.admin-panel { margin-bottom: 18px; padding: 25px; border: 1px solid var(--line); background: var(--paper); }
.admin-section-heading { margin-bottom: 20px; }
.admin-section-heading h2 { margin: 0; font-size: 26px; }
.admin-section-heading > span { color: var(--muted); font-size: 13px; }
.admin-form { display: grid; gap: 10px; }
.admin-form label { margin-top: 6px; font-size: 13px; font-weight: 700; }
.admin-form label span { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); }
.admin-form textarea { min-height: 100px; resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: 2px solid #c53f0940; border-color: var(--accent); }
.admin-format-choice { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: 0; }
.admin-format-choice legend { margin-bottom: 3px; padding: 0; font-size: 13px; font-weight: 700; }
.admin-format-choice label { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; font-size: 13px; font-weight: 500; }
.admin-format-choice input[type="radio"] { width: 16px; min-height: 0; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); }
.admin-format-help { margin: -5px 0 0; color: var(--muted); font-size: 12px; }
.admin-form .button { justify-self: start; margin-top: 9px; cursor: pointer; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.admin-fields > div { display: grid; gap: 7px; }
.admin-message { margin: 0 0 16px; padding: 12px 15px; border: 1px solid #b7d9bb; background: #f0faf1; color: #245c2e; font-size: 14px; }
.admin-message--error { border-color: #e8b6ac; background: #fff5f2; color: #8d2b18; }
.admin-recipe-list { display: grid; }
.admin-recipe { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.admin-recipe > img { width: 72px; height: 72px; border-radius: 3px; object-fit: cover; }
.admin-recipe__copy h3 { margin: 3px 0; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.25; }
.admin-recipe__copy > span:last-child { color: var(--muted); font-size: 12px; }
.admin-recipe__copy .eyebrow { font-size: 10px; }
.admin-recipe__actions { display: flex; align-items: center; gap: 16px; }
.admin-recipe__actions form { margin: 0; }
.admin-delete-confirm { color: #9f3006; font-size: 13px; }
.admin-delete-confirm summary { cursor: pointer; }
.admin-delete-confirm form { margin-top: 8px; }
.admin-delete { padding: 6px 9px; border: 1px solid #b84026; background: #fff; color: #9f3006; cursor: pointer; }
.admin-password-panel > summary { cursor: pointer; font-family: var(--serif); font-size: 21px; }
.admin-password-panel[open] > summary { margin-bottom: 20px; }
.admin-login { width: min(460px, calc(100% - 36px)); padding-block: 55px; }
.admin-login > .brand__mark { display: flex; margin: 0 auto 28px; }
.admin-login .admin-panel { padding: 30px; }
.admin-login .admin-panel > p { margin-bottom: 18px; }
.admin-login .button { width: 100%; justify-self: stretch; }
.admin-back-link { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 13px; }

@media (max-width: 600px) {
  .admin-container { width: calc(100% - 28px); }
  .admin-topbar__inner { min-height: 60px; }
  .admin-topbar__actions { gap: 10px; font-size: 11px; }
  .admin-dashboard { padding-block: 30px 48px; }
  .admin-panel { padding: 18px; }
  .admin-heading { align-items: flex-start; }
  .admin-heading .button { min-height: 42px; padding-inline: 12px; white-space: nowrap; }
  .admin-fields { grid-template-columns: 1fr; gap: 8px; }
  .admin-recipe { grid-template-columns: 56px minmax(0, 1fr); gap: 11px; }
  .admin-recipe > img { width: 56px; height: 56px; }
  .admin-recipe__copy h3 { font-size: 17px; }
  .admin-recipe__actions { grid-column: 2; justify-content: flex-start; }
  .admin-login .admin-panel { padding: 22px; }
}
