:root {
  color-scheme: light;
  --paper: #fcf8f2;
  --ink: #342116;
  --muted: #715e50;
  --line: #d6c9bb;
  --action: #ad4024;
  --title-font: "Songti SC", "STSong", "Noto Serif CJK SC", SimSun, serif;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f3ece2;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.sheet {
  margin: 0 auto;
  width: min(100%, 520px);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100svh;
}
.masthead {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 9px clamp(20px, 5vw, 32px);
  border-bottom: 1px solid var(--action);
  font: 700 22px/1.4 var(--title-font);
  letter-spacing: .04em;
}
.lunch-photo {
  display: block;
  width: 100%;
  height: clamp(168px, min(76vw, 35svh), 340px);
  object-fit: cover;
  object-position: 50% 55%;
}
.entry { padding: 24px clamp(21px, 5.6vw, 32px) max(30px, env(safe-area-inset-bottom)); }
h1 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font: 700 clamp(28px, 7vw, 38px)/1.24 var(--title-font);
  letter-spacing: .025em;
}
.schedule { margin: 17px 0 22px; }
.schedule div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; align-items: baseline; }
.schedule div + div { margin-top: 5px; }
.schedule dt { color: var(--muted); font-size: 15px; }
.schedule dd { margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.name-field { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 16px; }
.name-field label { font-size: 17px; }
input, button { font: inherit; }
input { width: 100%; height: 48px; padding: 0 13px; color: var(--ink); background: #fffdf9; border: 1px solid #ac9e91; border-radius: 6px; }
input::placeholder { color: #80756d; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #935823; outline-offset: 3px; }
.primary, .secondary {
  display: block;
  width: 100%;
  min-height: 51px;
  margin-top: 21px;
  border: 1px solid var(--action);
  border-radius: 7px;
  font-size: 17px;
  font-weight: 650;
}
.primary { color: #fff; background: var(--action); }
.primary:hover:not(:disabled) { background: #96351c; }
.primary:active:not(:disabled) { transform: translateY(1px); }
.primary:disabled { opacity: .65; cursor: wait; }
.secondary { background: transparent; color: var(--action); }
.feedback { margin: 12px 0 0; color: #932c1e; font-size: 15px; }
.success { padding: 24px 0 7px; }
.success:focus { outline: none; }
.success-mark {
  display: grid;
  width: 40px; height: 40px;
  place-items: center;
  background: #e5eadb; color: #405530;
  border-radius: 50%; font-size: 23px;
}
.success h2 { margin: 11px 0 6px; font: 700 26px/1.4 var(--title-font); }
.success p { margin: 0; }
@media (min-width: 780px) {
  body { padding: clamp(30px, 7vh, 78px) 32px; }
  .sheet { width: min(100%, 1050px); min-height: 0; border: 1px solid #d9cdbf; }
  .masthead { padding: 15px 30px; font-size: 24px; }
  .meal { display: grid; grid-template-columns: 1.04fr 1fr; align-items: stretch; }
  .lunch-photo { min-height: 445px; height: 100%; object-position: 50% 50%; }
  .entry { align-self: center; padding: 38px clamp(28px, 3.4vw, 50px); }
  h1 { font-size: 36px; }
  .schedule { margin: 22px 0 28px; }
  .schedule div + div { margin-top: 10px; }
  .primary, .secondary { margin-top: 24px; }
}
