:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #23302b;
  background: #f6f4ed;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: #176b55; }
.site-header { padding: 2rem max(1rem, calc((100% - 72rem) / 2)); background: #183c32; color: #fff; }
.brand { color: #fff; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; text-decoration: none; }
.site-header p { margin: .35rem 0 0; color: #d8eee3; }
.container { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.page-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 2rem; }
h1, h2 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: .2rem 0 0; }
.eyebrow { margin: 0; color: #b15f2d; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.page-actions { display: flex; flex-direction: column; align-items: end; gap: .75rem; }
.page-actions--inline { flex-direction: row; flex-wrap: wrap; align-items: center; margin: 1rem 0 1.5rem; }
.search-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 32rem; }
.search-form label { width: 100%; font-weight: 700; }
input, button { min-height: 44px; border: 1px solid #b8c2bb; border-radius: .45rem; padding: .65rem .8rem; font: inherit; }
input { min-width: min(20rem, 70vw); flex: 1; background: #fff; }
button { background: #176b55; color: #fff; border-color: #176b55; cursor: pointer; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.recipe-card, .recipe-detail { background: #fff; border: 1px solid #dfe4df; border-radius: .7rem; padding: 1.25rem; box-shadow: 0 8px 20px rgb(35 48 43 / 6%); }
.recipe-card h2 { margin: .35rem 0 .75rem; }
.recipe-card h2 a { text-decoration: none; }
.tags { color: #6a756f; font-size: .92rem; }
.empty-state { padding: 2rem; background: #fff; border-radius: .7rem; }
.back-link { font-weight: 700; }
.recipe-detail { max-width: 52rem; margin-top: 1.5rem; }
.recipe-detail section { border-top: 1px solid #e2e8e3; margin-top: 1.5rem; padding-top: 1rem; }
.recipe-detail h2 { font-size: 1.25rem; }
.multiline { white-space: pre-line; }
.form-errors { padding: .75rem 1rem; border-left: 4px solid #b83b32; background: #fff0ee; color: #7d211c; }
.recipe-form { display: grid; gap: .5rem; }
.recipe-form label { margin-top: .75rem; font-weight: 700; }
textarea { width: 100%; resize: vertical; border: 1px solid #b8c2bb; border-radius: .45rem; padding: .65rem .8rem; font: inherit; }
.delete-form { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.danger-button { background: #a52f2f; border-color: #a52f2f; }
.button-link { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem .8rem; }
@media (max-width: 700px) {
  .page-heading { align-items: stretch; flex-direction: column; }
  .recipe-grid { grid-template-columns: 1fr; }
  .search-form { max-width: none; }
  input { min-width: 0; }
}
