:root { font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #1e291f; background: #f4f5ed; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 44rem; margin: auto; padding: calc(2rem + env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) calc(6rem + env(safe-area-inset-bottom)) max(1.2rem, env(safe-area-inset-left)); }
header { color: #49604e; font-size: .95rem; }
h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); letter-spacing: -.055em; margin: .35em 0; }
.card { background: #fff; border: 1px solid #e3e8db; border-radius: 1.25rem; padding: 1.2rem; }
label { display: grid; gap: .4rem; margin-bottom: 1rem; }
input { font: inherit; border: 1px solid #84917f; border-radius: .6rem; padding: .65rem; width: 100%; }
button { font: inherit; min-height: 44px; cursor: pointer; }
main button { border: none; border-radius: .75rem; padding: .65rem .85rem; margin: .25rem 0; background: #315941; color: white; }
nav { position: fixed; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: .55rem max(.3rem,env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(.3rem,env(safe-area-inset-left)); background: #fff; border-top: 1px solid #dce3d7; }
nav button { border: none; border-radius: .7rem; background: none; color: inherit; padding: .2rem; font-size: clamp(.69rem,3vw,.9rem); }
nav button[aria-current] { color: #1f5435; background: #e4efdf; }
a { overflow-wrap: anywhere; color: #315941; }

:root { color-scheme: light dark; }
textarea, select { font: inherit; width: 100%; padding: .6rem; border: 1px solid #84917f; border-radius: .65rem; }
.card { margin-bottom: .8rem; }
form.card { margin-top: .75rem; }
.check { display: flex; align-items: center; gap: .75rem; min-height: 48px; }
.check input { width: 26px; height: 26px; flex: 0 0 26px; accent-color: #315941; }
.item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.recipe details { margin: .75rem 0; }
.recipe button { margin-right: .5rem; }
button:disabled { opacity: .55; }
@media (prefers-color-scheme: dark) {
  :root { background: #181c18; color: #e7eee5; }
  header { color: #a2b7a2; }
  .card, nav { background: #252c26; border-color: #39463b; }
  nav button[aria-current] { background: #374b38; color: #f1f7ee; }
  a { color: #b7dabd; }
}
