:root {
  color-scheme: light;
  --ink: #272c20;
  --muted: #5c5e50;
  --paper: #fffdf7;
  --ground: #f7f3ea;
  --line: #ddd6c7;
  --green: #4a5735;
  --olive: #e9ebdc;
  --clay: #97452e;
  font: 16px/1.55 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--ink); }
.wrap { width: min(100% - 3rem, 1060px); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); }
.bar-inner, .nav-row, .section-head, .meta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.bar-inner { min-height: 67px; }
a { color: inherit; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 730; }
.mark { background: var(--green); color: #fffdf7; border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; flex: none; }
nav { display: flex; align-items: center; gap: .25rem; }
.hero { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-top: 2rem; background: #eee8d8; }
.hero-copy { padding: clamp(1.4rem, 4.4vw, 3.4rem); }
.hero img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
h1, h2, .card-title { font-family: 'Instrument Serif', Georgia, serif; font-weight: 500; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.45rem, 6.8vw, 5.55rem); line-height: .99; letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.9rem); line-height: 1.1; letter-spacing: -.035em; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); margin: 1rem 0 1.45rem; max-width: 27ch; }
.eyebrow { display: block; color: var(--clay); font-size: .72rem; font-weight: 780; letter-spacing: .125em; text-transform: uppercase; margin-bottom: .75rem; }
button, input, select, textarea { font: inherit; }
button { min-height: 44px; cursor: pointer; }
button:disabled { opacity: .6; cursor: progress; }
button.primary { border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: white; padding: .55rem 1rem; font-weight: 670; }
button.primary:hover { background: #39452a; }
.quiet { border: 0; background: transparent; color: var(--green); padding: .35rem .6rem; text-decoration: underline; text-underline-offset: .2em; }
input, select, textarea { min-width: 0; color: var(--ink); background: var(--paper); padding: .55rem .7rem; border: 1px solid #a9aa99; border-radius: 8px; min-height: 44px; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
label { display: grid; gap: .3rem; font-weight: 650; }
label span, .hint { color: var(--muted); font-weight: 400; }
.login-row { display: grid; gap: .65rem; }
.section-head { margin: 2.1rem 0 1rem; }
.search { display: flex; align-items: center; padding-left: .7rem; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; width: min(20rem, 55%); }
.search span { font-size: 1.4rem; }
.search input { width: 100%; border: 0; padding-left: .3rem; background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.filters button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 100px; padding: .35rem .9rem; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 1.15rem; text-decoration: none; overflow-wrap: anywhere; }
.card:hover { border-color: var(--green); background: #faf9ef; }
.card-title { font-size: 1.65rem; line-height: 1.1; }
.card p { font-size: .92rem; color: var(--muted); margin: .65rem 0; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; padding-top: .45rem; color: var(--green); font-size: .82rem; }
.card-foot span:last-child { font-size: 1.15rem; }
.notice { border: 1px solid var(--line); background: var(--paper); padding: .6rem .85rem; border-radius: 8px; margin-top: 1rem; }
.nav-row { margin: 1.4rem 0 .7rem; }
.nav-row a { text-underline-offset: .2em; font-size: .94rem; }
.paper { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1rem, 5vw, 3rem); overflow-wrap: anywhere; }
.paper h1 { font-size: clamp(2.3rem, 7vw, 4.7rem); }
.meta { justify-content: start; flex-wrap: wrap; margin-bottom: .65rem; color: var(--muted); font-size: .9rem; }
.meta .eyebrow { margin: 0; }
.recipe-body { margin-top: 1.5rem; }
.recipe-body h2 { font-size: 1.75rem; margin: 1.5rem 0 .6rem; }
.recipe-body h3 { margin-bottom: .5rem; }
.recipe-body p, .recipe-body ul, .recipe-body ol { margin: .5rem 0; }
.recipe-body li { margin-bottom: .2rem; }
.table-scroll { overflow-x: auto; margin: .9rem 0; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: .65rem; min-width: 8rem; }
th { background: var(--olive); }
#recipe-form { display: grid; gap: 1rem; }
#recipe-form .primary { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
footer { border-top: 1px solid var(--line); margin: 2rem 0; padding-top: .8rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 2rem); }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero-copy { padding: 1.35rem; }
  .hero-copy h1 br { display: none; }
  .hero img { height: 150px; min-height: 0; }
  .recipe-grid, .form-row { grid-template-columns: 1fr; }
  .bar-inner { min-height: 58px; }
  .bar-inner nav { flex-wrap: wrap; justify-content: end; }
  .card { padding: .9rem 1rem; }
}
