/* The per-state and per-city pages (worker/pages.mjs). Same look as the map, as plain documents. */

:root {
  --custard: #fbf4e4;
  --paper: #fffaf0;
  --custard-deep: #f3e6c8;
  --ink: #13294b;
  --ink-soft: #3d4f6e;
  --muted: #5a6579;
  --cherry: #d7263d;
  --butterscotch: #e8a33d;
  --display: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --ui: 'Gabarito', 'Avenir Next', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(232, 163, 61, 0.07) 18px 36px),
    var(--custard);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--butterscotch); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cherry); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 16px 0;
}
.brand {
  font-family: var(--display);
  font-size: 24px;
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--butterscotch);
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary { color: var(--paper); background: var(--ink); box-shadow: 3px 3px 0 var(--cherry); }
.btn-primary:hover { color: var(--paper); box-shadow: 4px 4px 0 var(--cherry); }

main {
  max-width: 780px;
  margin: 20px auto 0;
  padding: 26px 28px 30px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}

.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--ink-soft); }
.crumbs .sep { margin: 0 7px; }

h1 {
  margin: 14px 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
  text-shadow: 3px 3px 0 var(--butterscotch);
}

.lede { margin: 0 0 18px; font-size: 18px; line-height: 1.45; color: var(--ink-soft); }

.stores, .cities, .nearby ul { list-style: none; margin: 0; padding: 0; }

.stores { margin-top: 22px; }
.store {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 2px dashed rgba(19, 41, 75, 0.18);
}
.store img, .store .no-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: contain;
  background: radial-gradient(circle at 35% 30%, #fff 0 32%, var(--custard-deep) 78%);
}
.store h2 { margin: 2px 0 4px; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.store.is-status h2 { font-family: var(--ui); font-weight: 700; font-style: italic; font-size: 20px; color: var(--ink-soft); }
.store p { margin: 4px 0; line-height: 1.4; }
.where { font-size: 15px; color: var(--ink-soft); }
.desc { font-size: 15px; color: var(--ink-soft); }
.links { font-size: 14.5px; font-weight: 700; }

/* A store's next six days, from its flavor calendar. */
.week-label { margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.week {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.4;
}
.week li { display: contents; }
.week .when { font-weight: 700; color: var(--muted); white-space: nowrap; }
.week .what { font-weight: 700; color: var(--ink); }
.week .what.is-status { font-weight: 500; font-style: italic; color: var(--muted); }

.nearby { margin-top: 26px; padding-top: 6px; border-top: 2px solid var(--ink); }
.nearby h2 { margin: 12px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.nearby li, .cities li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(19, 41, 75, 0.1);
}
.nearby a, .cities a { font-weight: 800; font-size: 16.5px; }
.branch { color: var(--muted); font-size: 14px; }
.flavor { color: var(--ink-soft); font-size: 15px; }
.dist { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--ink-soft); }

.updated { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

.foot {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.foot p { margin: 0 0 6px; }

@media (max-width: 560px) {
  main { margin-top: 14px; padding: 20px 16px 22px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .top { padding-top: 14px; }
  .brand { font-size: 20px; }
  .store { grid-template-columns: 64px 1fr; gap: 12px; }
  .store img, .store .no-img { width: 64px; height: 64px; }
  .store h2 { font-size: 21px; }
}
