:root {
  --paper: #f5efe3;
  --paper-2: #ece3d2;
  --ink: #2a2420;
  --ink-soft: #6f6358;
  --line: #d6cab4;
  --shu: #b3432b;
  --mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1a17;
    --paper-2: #27231f;
    --ink: #eee6d8;
    --ink-soft: #a89c8d;
    --line: #3d3630;
    --shu: #d9694f;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mincho);
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
}

.title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5em;
  text-align: center;
  color: var(--shu);
  margin-bottom: 18px;
}

/* 日付 */
.date {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-soft);
}

/* 写真:横にめくる */
.photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.photos::-webkit-scrollbar { display: none; }
.photos img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--paper-2);
  scroll-snap-align: center;
}

/* いちばん新しい日:大きい写真の下に縦書きの品書き */
.latest .card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.latest .dishes {
  align-self: center;
  writing-mode: vertical-rl;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .14em;
  max-width: 100%;
  overflow-x: auto;
  padding: 16px 4px 4px;
  border-top: 1px solid var(--shu);
}
.latest .dishes li { list-style: none; margin-left: 10px; }

/* これまでの日:小さい写真と料理名を1行ずつ */
.past { margin-top: 32px; border-top: 1px solid var(--line); }
.past .card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.past .photos img { aspect-ratio: 1; border-radius: 4px; }
.past .photos.empty { background: var(--paper-2); border-radius: 4px; aspect-ratio: 1; }
.past .dishes {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}
.past .dishes li { list-style: none; display: inline; }
.past .dishes li + li::before { content: '・'; color: var(--ink-soft); }

.sentinel { height: 1px; }

.message {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
