:root {
  color-scheme: light;
  --cream: #f8ebd4;
  --paper: #fff8eb;
  --ink: #514436;
  --blue: #34576c;
  --gold: #c98c32;
  --line: #cfb98f;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.55 "DM Sans", sans-serif; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1100px, 90%); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap, .site-header nav { display: flex; align-items: center; gap: clamp(0.8rem, 3vw, 2rem); }
.site-header .wrap { justify-content: space-between; padding-block: 0.7rem; }
.site-header img { display: block; width: 68px; height: 68px; border-radius: 50%; }
.site-header nav a { text-underline-offset: 0.25em; }
main { padding-block: clamp(2.5rem, 7vw, 5rem); }
h1, h2, h3 { margin: 0; font: 600 1.5rem/1.15 "Playfair Display", serif; color: var(--blue); overflow-wrap: anywhere; }
h1 { font-size: clamp(3rem, 8vw, 5rem); }
h2 { font-size: 1.75rem; }
.heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.heading h1::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: 1rem; background: var(--gold); }
.button { display: inline-block; padding: 0.65rem 1rem; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.12); }
.button:disabled { cursor: wait; opacity: .65; }
.button.secondary { color: var(--blue); background: transparent; }
.menu-categories { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.6rem; }
.menu-categories a { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); text-decoration: none; }
.menu-categories a:hover { background: var(--paper); text-decoration: underline; }
.menu-section { margin-block: 2.6rem; scroll-margin-top: 1.5rem; }
.menu-section > h2 { margin-bottom: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.menu-note { padding: .6rem .9rem; background: var(--paper); border-left: 3px solid var(--gold); }
.site-header nav a[aria-current="page"] { font-weight: 700; }
.specials-heading, .specials-poster { width: min(100%, 640px); margin-inline: auto; }
.specials-poster { display: block; height: auto; border-radius: .45rem; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.3rem; }
.dish { border-top: 5px solid var(--gold); background: var(--paper); box-shadow: 0 8px 20px #5a46341a; overflow: hidden; }
.dish img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dish-body { padding: 1.25rem; }
.dish-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem .75rem; }
.dish-title h3 { flex: 1 1 9rem; font-size: 1.3rem; }
.dish-body p { margin: .55rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.price { font-weight: 700; color: var(--blue); white-space: nowrap; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.4rem; }
.panel { padding: clamp(1.15rem, 3vw, 2rem); background: var(--paper); border-top: 5px solid var(--gold); }
.panel form { margin-top: 1rem; }
label { display: block; font-weight: 700; }
input, textarea, select { display: block; width: 100%; padding: .55rem; margin: .25rem 0 .9rem; border: 1px solid #9a8466; border-radius: 4px; font: inherit; color: inherit; background: white; }
input[type="file"] { margin-bottom: .2rem; }
textarea { resize: vertical; }
.hint { display: block; margin-bottom: 1rem; }
.preview { display: block; max-width: 100%; max-height: 14rem; object-fit: contain; margin-bottom: 1rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.notice:empty { display: none; }
.notice { border-left: 3px solid var(--gold); padding-left: .75rem; }
.list-category { margin-top: 1.25rem; font-size: 1.2rem; }
.dish-list { list-style: none; padding: 0; margin: .25rem 0 0; }
.dish-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; border-bottom: 1px solid var(--line); padding: .75rem 0; overflow-wrap: anywhere; }
@media (max-width: 710px) { .editor { grid-template-columns: 1fr; } }

.preview[hidden] { display: none; }
@media (max-width: 560px) {
  .site-header .wrap, .site-header nav { gap: .65rem; }
  .site-header img { width: 52px; height: 52px; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; }
}
