:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #25251f;
  background: #f6f2e9;
  --ink: #25251f;
  --muted: #605d53;
  --paper: #f6f2e9;
  --surface: #fffdf8;
  --line: #dcd5c7;
  --accent: #90381e;
  --accent-dark: #6a2717;
  --accent-tint: #f4e4da;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, select, summary { cursor: pointer; }
h1, h2, p, dl, dd, figure { margin: 0; }
textarea { resize: vertical; }
img { display: block; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #ac4a2a;
  outline-offset: 4px;
}
.app { min-height: 100svh; }
.appbar { border-bottom: 1px solid var(--line); }
.bar-inner, .nav-inner, .view {
  width: min(100% - 64px, 1120px);
  margin-inline: auto;
}
.bar-inner {
  min-height: 75px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.brand-name { font: 700 35px/.95 var(--serif); letter-spacing: -.045em; }
.brand-dot { color: var(--accent); }
.header-label {
  margin-left: auto;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.view { padding-block: clamp(35px, 6vw, 74px) 64px; }
.public-heading, .section-heading, .panel-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}
.public-heading { padding-bottom: 24px; }
.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 750;
}
.page-title { font-size: clamp(35px, 5.6vw, 69px); line-height: .99; letter-spacing: -.065em; font-weight: 720; }
.public .page-title { font-family: var(--serif); font-weight: 500; }
.subtitle { margin-top: 13px; color: var(--muted); line-height: 1.55; }
.text-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button:hover { color: var(--accent); }
.today-link { white-space: nowrap; margin-bottom: 3px; }
.week {
  padding: 11px 0 16px;
  border-block: 1px solid var(--line);
}
.week-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 9px;
}
.week-control {
  display: grid;
  place-items: center;
  min-height: 38px;
  min-width: 44px;
  border: 1px solid var(--line);
  font-size: 25px;
  line-height: 1;
  color: var(--ink);
}
.week-control:hover { border-color: var(--accent); color: var(--accent); }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 65px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
}
.day strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.day:hover { border-color: var(--accent); }
.day[aria-current="date"] { background: var(--ink); border-color: var(--ink); color: #f1e9dd; }
.day[aria-current="date"] strong { color: #fffdf8; }
.today-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #c76642;
}
.date-line {
  margin-block: 26px 13px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 720;
}
.meal-list { display: grid; gap: 23px; }
.meal-card {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
}
.meal-card.meal-text-only { grid-template-columns: minmax(0, 1fr); }
.meal-photo { width: 100%; height: 100%; min-height: 394px; object-fit: cover; }
.meal-copy { padding: clamp(24px, 4.1vw, 55px); overflow-wrap: anywhere; }
.meal-copy h2 { font: 500 clamp(33px, 4vw, 54px)/1.01 var(--serif); letter-spacing: -.047em; }
.meal-description {
  line-height: 1.65;
  margin-top: 16px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  white-space: pre-line;
}
.meal-facts { display: grid; gap: 14px; padding-top: 17px; margin-top: 22px; border-top: 1px solid var(--line); }
.meal-facts dt { margin-bottom: 4px; font-weight: 750; font-size: 14px; }
.meal-facts dd { line-height: 1.5; font-size: 15px; color: var(--muted); white-space: pre-line; }
.empty { background: var(--surface); border: 1px solid var(--line); padding: 26px; }
.empty h2 { font: 500 30px/1.1 var(--serif); margin-bottom: 9px; }
.empty p, .muted { color: var(--muted); line-height: 1.55; }
.empty .text-button { margin-top: 10px; }

.staff {
  background: #eeede8;
  --line: #d8d7cf;
  --surface: #fdfcf8;
}
.staff .bar-inner { min-height: 61px; }
.staff .appbar, .staff-nav { background: #262722; color: #f9f6ed; border-color: #45463d; }
.staff .brand-name { font-size: 29px; }
.staff .brand-dot { color: #e48b63; }
.staff .header-label { color: #d9d7cc; }
.sign-out button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #747567;
  color: #f9f6ed;
  background: transparent;
  font-size: 14px;
  font-weight: 660;
}
.staff-nav .nav-inner { display: flex; gap: 25px; }
.staff-nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  border-bottom: 3px solid transparent;
  color: #e0ded2;
  font-size: 15px;
  font-weight: 670;
}
.staff-nav a[aria-current="page"] { border-color: #ee9c77; color: #fffdf8; }
.staff .view { padding-top: 42px; }
.staff .page-title { font-size: clamp(32px, 4.4vw, 49px); letter-spacing: -.052em; }
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 45px;
  padding: 9px 17px;
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
  background: var(--accent-dark);
  color: #fffdf8;
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}
.primary:hover { background: var(--accent); }
.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.secondary:hover { border-color: var(--accent); }
.planner-top { margin-block: 25px; }
.date-form, .inline-controls, .search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 11px;
}
.date-form { margin-top: 17px; }
.inline-controls label, .search-form label { min-width: min(330px, 100%); }
.search-form { margin-block: 24px 18px; }
.workspace-panel {
  min-width: 0;
  margin: 0 0 16px;
  padding: clamp(17px, 3vw, 29px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.workspace-panel h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 13px; }
.workspace-panel .panel-title h2 { margin-bottom: 0; }
.panel-title { align-items: center; margin-bottom: 12px; }
.status {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
  background: #e8ede0;
  color: #3b5034;
  padding: 6px 9px;
}
.entry-list, .library-list { list-style: none; padding: 0; margin: 0; }
.entry-row, .library-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.entry-row:not(:has(img)) { grid-template-columns: minmax(0, 1fr) auto; }
.entry-image { width: 76px; height: 61px; object-fit: cover; }
.entry-row strong, .library-row strong { display: block; overflow-wrap: anywhere; }
.entry-row p, .library-row p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.38;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-row { padding-inline: 9px; }
.library-row:hover { background: var(--surface); }
.row-action { color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.photo-placeholder { background: #e5e2d8; color: #686351; display: grid; place-items: center; }
label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
input:not([type="checkbox"], [type="radio"]), select, textarea {
  min-width: 0;
  width: 100%;
  min-height: 45px;
  border: 1px solid #aaa79b;
  border-radius: 3px;
  padding: 10px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
input[type="file"] { font-size: 14px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-dark); }
.field-error, .notice.error { color: #8d2b29; }
.notice { background: #e8eee0; border-left: 3px solid #50654a; padding: 12px 15px; margin-block: 14px; color: #35492f; }
.notice.error { background: #f8e9e4; border-color: #ad4534; }
.login-form { max-width: 475px; margin-top: 22px; }
.login-form .primary { margin-top: 18px; }
.back { margin-bottom: 14px; }
.edit-form { margin-top: 28px; }
.edit-fields { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.field-group { align-self: start; }
.field-group legend, .scope legend { font-size: 19px; font-weight: 750; padding: 0 6px; }
.dish-field { margin-bottom: 16px; }
.dish-field:last-child { margin-bottom: 0; }
.existing-photo { width: 100%; height: auto; max-height: 285px; object-fit: cover; margin-bottom: 17px; }
.field-group .muted { font-size: 14px; margin: 6px 0 10px; }
.checkbox { display: flex; flex-direction: row; align-items: center; gap: 9px; margin-top: 12px; }
.scope-option {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border: 1px solid var(--line);
}
.scope-option + .scope-option { margin-top: 9px; }
.scope-option:has(input:checked) { background: var(--accent-tint); border-color: #b3664c; }
.scope-option small { display: block; margin-top: 5px; color: var(--muted); font-weight: 450; line-height: 1.45; font-size: 14px; }
.form-actions { display: flex; justify-content: flex-end; }

@media (max-width: 760px) {
  .bar-inner, .nav-inner, .view { width: calc(100% - 36px); }
  .meal-card, .edit-fields { grid-template-columns: minmax(0, 1fr); }
  .meal-photo { min-height: 0; height: clamp(185px, 52vw, 345px); }
  .meal-copy { padding: 22px 20px; }
  .edit-fields { gap: 0; }
}
@media (max-width: 420px) {
  .bar-inner { min-height: 60px; gap: 10px; }
  .week-grid { gap: 4px; }
  .day { min-height: 55px; font-size: 12px; }
  .today-dot { top: 5px; right: 5px; width: 5px; height: 5px; }
  .entry-row, .library-row { grid-template-columns: 54px minmax(0, 1fr); gap: 9px; }
  .entry-image { width: 54px; height: 49px; }
  .entry-row .text-button, .row-action { grid-column: 2; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .panel-title { align-items: flex-start; }
}
