:root {
  --paper: #f3efe6;
  --ink: #1c1915;
  --muted: #6f675e;
  --card: #fffdf8;
  --line: #e3dbcf;
  --accent: #c2410c;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.04);
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

.top,
.retailers,
main {
  width: min(1120px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.top {
  padding-top: 1.4rem;
}

.mark {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.85rem;
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1;
}

#as-of {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.retailers {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 1rem 0 0.2rem;
  scrollbar-width: none;
}

.retailers::-webkit-scrollbar {
  display: none;
}

.retailers button,
.week button,
.open {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.retailers button {
  border-color: var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  white-space: nowrap;
}

.retailers button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8;
}

.week {
  display: inline-flex;
  gap: 0.15rem;
  margin: 1rem 0 1.1rem;
  padding: 0.2rem;
  background: #e8e1d6;
  border-radius: 999px;
}

.week button {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.week button[aria-pressed="true"] {
  background: var(--card);
  box-shadow: var(--shadow);
}

.week button:disabled {
  opacity: 0.4;
  cursor: default;
}

.leaflet {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.leaflet h1 {
  margin: 0;
  max-width: 18ch;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

#leaflet-dates {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.open {
  flex: none;
  border-color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.open:hover {
  background: var(--ink);
  color: #fffdf8;
}

.find {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.find input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
}

#count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding-bottom: 3rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #efe8dc;
}

.shot img,
.shot .placeholder {
  width: 100%;
  height: 100%;
}

.shot img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
}

.info {
  padding: 0.85rem 0.95rem 1rem;
}

.info h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 560;
  line-height: 1.25;
}

.price {
  margin: 0.35rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.75rem;
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1;
}

.was,
.meta {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.was {
  text-decoration: line-through;
}

.empty {
  margin: 0 0 1rem;
  padding: 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.6);
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .leaflet {
    align-items: flex-start;
    flex-direction: column;
  }

  .find {
    align-items: stretch;
    flex-direction: column;
    gap: 0.4rem;
  }
}
