:root {
  --bg: #fbf6ee;
  --card: #ffffff;
  --ink: #2b2320;
  --ink-soft: #6b5f56;
  --accent: #d97a3b;
  --accent-soft: #f4e3d3;
  --border: #ecdfcd;
  --tier-a: #e8f3e5;
  --tier-a-ink: #3c7a3f;
  --tier-b: #fbeed3;
  --tier-b-ink: #a9741a;
  --tier-c: #eee;
  --tier-c-ink: #777;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.crumb {
  font-size: 14px;
  color: var(--ink-soft);
}
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.hero, .city-head {
  text-align: center;
  padding: 32px 12px 20px;
}
.hero h1, .city-head h1 { margin: 0 0 8px; font-size: 28px; }
.hero p, .city-head p { margin: 0; color: var(--ink-soft); }

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.city-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(80, 60, 30, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.city-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(80, 60, 30, 0.1); }
.city-emoji { font-size: 36px; }
.city-name { font-size: 20px; font-weight: 700; }
.city-blurb { color: var(--ink-soft); font-size: 14px; }
.city-count { margin-top: 6px; font-size: 13px; color: var(--accent); font-weight: 600; }

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.restaurant-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(80, 60, 30, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.restaurant-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(80, 60, 30, 0.09); }

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.card-top h3 { margin: 0; font-size: 17px; }

.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.tag.big { font-size: 13px; padding: 5px 12px; margin: 6px 0 10px; display: inline-block; }
.tier-a .tag, .tag.tier-a { background: var(--tier-a); color: var(--tier-a-ink); }
.tier-b .tag, .tag.tier-b { background: var(--tier-b); color: var(--tier-b-ink); }
.tier-c .tag, .tag.tier-c { background: var(--tier-c); color: var(--tier-c-ink); }

.teaser { margin: 0; font-size: 14px; color: var(--ink); }
.status { margin: 0; font-size: 12px; color: var(--ink-soft); }

.note h1 { margin-bottom: 4px; }
.status-line {
  color: var(--ink-soft);
  font-size: 14px;
  border-left: 3px solid var(--accent-soft);
  padding-left: 10px;
  margin: 10px 0 20px;
}

.note-body { font-size: 15px; }
.note-body h2 {
  margin-top: 32px;
  font-size: 19px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.note-body h3 { margin-top: 22px; font-size: 16px; }
.note-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 10px 0;
  display: block;
}
.note-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}
.note-body table thead { display: table-header-group; }
.note-body table, .note-body tr { display: table; width: 100%; table-layout: fixed; }
.note-body th, .note-body td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}
.note-body th { background: var(--accent-soft); }
.note-body blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--ink-soft);
  border-left: 4px solid var(--accent);
}
.note-body a { color: var(--accent); }
.note-body li.task { list-style: none; margin-left: -20px; display: flex; gap: 8px; align-items: flex-start; }
.note-body li.task .box {
  flex: 0 0 16px;
  height: 16px;
  border: 1px solid var(--ink-soft);
  border-radius: 4px;
  margin-top: 3px;
}
.note-body li.task.done .box {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 11px;
  line-height: 16px;
  border-color: var(--accent);
}

.site-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
  padding: 20px;
}

@media (max-width: 480px) {
  .note-body table, .note-body tr { table-layout: auto; }
}
