/* FeedMe Phx. Photographs lead; the letterboard feature card is the one bold moment.
   Palette from the Phoenix street: saguaro night, chile, afternoon sun, adobe, turquoise. */
:root {
  --ink: #1C2420;        /* saguaro at night: text */
  --board: #141414;      /* letterboard felt */
  --paper: #FFFFFF;
  --adobe: #F5EEE3;      /* section ground */
  --chile: #B8321A;      /* primary action, sample tag */
  --chile-dark: #922613;
  --sun: #F4B223;        /* today, live */
  --turquoise: #0B6B75;  /* links */
  --muted: #59625C;
  --rule: #E4DCCD;
  --radius: 10px;
  --display: "Bungee", "Arial Black", sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --wrap: 68rem;
  --gutter: 1rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-tap-highlight-color: rgba(244, 178, 35, 0.3);
  touch-action: manipulation;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--turquoise); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5rem; text-wrap: balance; }
h2 { font-size: clamp(1.375rem, 4vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.0625rem; font-weight: 700; }
p { margin: 0 0 0.75rem; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.draft-banner {
  background: var(--sun);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  text-align: center;
}

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--rule); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--chile); margin-left: 0.12em; }
.wordmark-small { font-size: 1.25rem; margin-bottom: 0.75rem; }
.topnav { display: flex; gap: 1.1rem; font-weight: 600; font-size: 0.9375rem; }
.topnav a { color: var(--ink); text-decoration: none; padding: 0.6rem 0; white-space: nowrap; }
.topnav a:hover { color: var(--chile); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 30rem) {
  .topnav { gap: 0.85rem; font-size: 0.875rem; }
  .topnav li:nth-child(n + 3) { display: none; }
}
.footer-grid { grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }

/* ---------- hero: a full-bleed photograph ---------- */
.hero { position: relative; color: #FFFFFF; background: var(--board); min-height: 23rem; display: flex; align-items: flex-end; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.72) 100%);
}
.hero-text { position: relative; width: 100%; padding-top: 6rem; padding-bottom: 4.5rem; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  line-height: 1;
  max-width: 13em;
  margin-bottom: 0.75rem;
}
.hero-sub { font-size: 1.125rem; font-weight: 500; max-width: 32em; margin: 0; }
.hero-place { min-height: 20rem; }
.hero-place .hero-text { padding-bottom: 2rem; }
.hero-place h1 { font-size: clamp(2.25rem, 8vw, 4rem); }
.crumbs { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.hero .crumbs a { color: #FFFFFF; }

/* ---------- the letterboard (the one bold thing) ---------- */
.board {
  position: relative;
  z-index: 2;
  margin: -3rem 0 2.5rem;
  max-width: 40rem;
  background-color: var(--board);
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 10px);
  color: #FFFFFF;
  border: 10px solid #3A2A1C;   /* the wooden frame */
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.55);
  padding: 1.25rem 1.1rem 1.4rem;
}
.board-date { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.9rem; color: #E6E6E6; }
.board-day {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.35rem;
}
.board-title { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.02; margin: 0; }
.board-title a { color: #FFFFFF; text-decoration: none; }
.board-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.board-dish { font-size: 1.125rem; font-weight: 500; margin: 0.75rem 0 0; color: var(--sun); }
.board-specials { margin: 1rem 0; border-top: 1px dashed rgba(255,255,255,0.3); }
.board-specials li { display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px dashed rgba(255,255,255,0.3); }
.board-item { font-weight: 700; }
.board-when { color: #D6D6D6; font-size: 0.9375rem; }
.board-where { color: #D6D6D6; font-size: 0.9375rem; margin-bottom: 0; }
.board .sample { background: #FFFFFF; color: var(--chile); }
.board .live { flex-basis: 100%; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--adobe); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--chile); border-color: var(--chile); color: #FFFFFF; }
.btn-primary:hover { background: var(--chile-dark); border-color: var(--chile-dark); color: #FFFFFF; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFC94D; border-color: #FFC94D; }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #000000; color: #FFFFFF; }

/* ---------- sections ---------- */
.block { margin: 0 auto 3rem; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; margin-bottom: 0.5rem; }
.block-note { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* specials list */
.specials { display: grid; gap: 0.75rem; }
.special {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  background: var(--adobe);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.special-photo { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--rule); }
.special-photo img, .special-photo .no-photo { width: 100%; height: 100%; object-fit: cover; }
.special-body { min-width: 0; padding-top: 0.1rem; }
.special-when { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin: 0 0 0.15rem; font-variant-numeric: tabular-nums; }
.special-title { font-size: 1.125rem; margin-bottom: 0.15rem; }
.special-place { font-weight: 600; margin-right: 0.4rem; }
.special-where { color: var(--muted); font-size: 0.875rem; }
.special-details { margin: 0.25rem 0 0; color: #36403A; font-size: 0.9375rem; }
.special-empty { padding: 1rem 0; color: var(--muted); }
.special[data-live="over"], .board-specials li[data-live="over"] { opacity: 0.55; }
.ended-toggle { margin: 0.75rem 0 0; }
.btn-small { min-height: 40px; font-size: 0.875rem; padding: 0.4rem 0.95rem; border-width: 1.5px; }
.cities-note { margin-top: 0.9rem; max-width: 40rem; }

/* when a restaurant has no photo yet: its initials and food on a brand tile */
.no-photo {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.2rem;
  width: 100%;
  height: 100%;
  min-height: 6rem;
  background: var(--chile);
  color: #FFFFFF;
}
.no-photo-mark { font-family: var(--display); font-size: 2rem; line-height: 1; }
.no-photo-food { font-size: 0.75rem; font-weight: 700; color: var(--sun); }

.live {
  display: inline-block;
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.live[data-state="now"] { background: #1E7A45; color: #FFFFFF; }
.live[data-state="soon"] { background: var(--sun); color: var(--ink); }
.live[data-state="over"] { background: rgba(0,0,0,0.08); color: var(--muted); }
.board .live[data-state="over"] { background: rgba(255,255,255,0.15); color: #D6D6D6; }
.live[hidden] { display: none; }
.board .live { width: max-content; margin-top: 0.25rem; }

.sample {
  display: inline-block;
  vertical-align: 0.15em;
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.22rem 0.45rem;
  border-radius: 3px;
  background: var(--chile);
  color: #FFFFFF;
}

/* area tiles */
.area-tiles { display: grid; gap: 0.6rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 47.99rem) {
  .area-tile img { aspect-ratio: 1; }
  .area-tile-text { left: 0.75rem; right: 0.75rem; bottom: 0.65rem; }
  .area-tile .area-tile-name { font-size: 1.125rem; }
  .area-tile .area-tile-count { font-size: 0.8125rem; }
}
.area-tile a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #FFFFFF; text-decoration: none; background: var(--board); }
.area-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 200ms ease; }
.area-tile a:hover img { transform: scale(1.03); }
.area-tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7)); }
.area-tile-text { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; }
.area-tile-name { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.area-tile-count { font-weight: 600; font-size: 0.9375rem; }

/* restaurant cards */
.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80vw, 20rem);
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem var(--gutter) 0.75rem;
  max-width: var(--wrap);
  margin: 0 auto;
  overscroll-behavior-x: contain;
}
.card { scroll-snap-align: start; }
.card a { display: block; position: relative; color: var(--ink); text-decoration: none; transition: transform 150ms ease; }
.card a:hover { transform: translateY(-2px); }
.card-photo { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--adobe); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-tag { position: absolute; top: 0.6rem; left: 0.6rem; background: var(--sun); color: var(--ink); font-size: 0.8125rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; }
.card-name { display: block; font-weight: 700; font-size: 1.125rem; margin-top: 0.55rem; }
.card-meta { display: block; color: var(--muted); font-size: 0.9375rem; }

/* explorer: search + chips */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.explorer { display: grid; gap: 0.6rem; margin: 0.75rem 0 1.1rem; }
.search {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  color: var(--ink);
  background: #FFFFFF;
}
.search::placeholder { color: #7D857F; }
.search:focus-visible { outline-offset: 1px; }
.chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.day-nav { margin: 1rem 0 2rem; }
.chips { position: relative; }
.other-day .live { display: none; }

/* happy hour table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--rule); }
.hh-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.hh-table th, .hh-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.hh-table thead th { background: var(--adobe); font-size: 0.875rem; }
.hh-table tbody tr:last-child > * { border-bottom: 0; }
.hh-table td { white-space: nowrap; }
@media (max-width: 47.99rem) {
  .hh-table th, .hh-table td { padding: 0.65rem 0.6rem; }
  .hh-table tr > :nth-child(2) { display: none; }   /* area: the sections below group by area */
}

/* answers (AEO) */
.answers { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.answer { max-width: 40rem; margin-bottom: 1.25rem; }
.answer h3 { font-size: 1.125rem; }

/* bands */
.band { padding: 2.25rem 0; }
.band-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.band-row p { margin: 0; max-width: 34em; }
.band-ig { background: var(--sun); }
.band-owner { background: var(--adobe); }

/* restaurant + area pages */
.place { padding-top: 1.5rem; }
.summary { font-size: 1.1875rem; line-height: 1.5; max-width: 38rem; margin-bottom: 0.4rem; }
.checked { color: var(--muted); font-size: 0.875rem; }
.today-note {
  display: inline-block;
  background: var(--adobe);
  border-left: 4px solid var(--sun);
  padding: 0.5rem 0.75rem;
}
.place-actions { margin-bottom: 2.5rem; }
.place .block { max-width: 44rem; margin-left: 0; }
.visit-grid { display: grid; gap: 1rem; }
.visit-address { font-weight: 600; font-size: 1.125rem; }
.map { width: 100%; height: 18rem; border: 0; border-radius: var(--radius); background: var(--adobe); }
.notfound { padding-top: 3rem; }

/* phone action bar (restaurant pages) */
.phone-bar {
  position: sticky;
  bottom: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--rule);
}

/* footer */
.footer { background: var(--ink); color: #E7EAE8; padding: 2.5rem 0 2rem; }
.footer a { color: #FFFFFF; }
.footer .wordmark { color: #FFFFFF; }
.footer .wordmark span { color: var(--sun); }
.footer-grid { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer h2 { font-size: 1rem; }
.footer nav ul { display: grid; gap: 0.35rem; }
.footer-small { color: #B7BDB9; font-size: 0.875rem; margin: 0 0 0.35rem; }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .board { padding: 1.75rem 2rem 2rem; margin-top: -4rem; }
  .hero { min-height: 30rem; }
  .hero-place { min-height: 24rem; }
  .specials { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
  .area-tiles { grid-template-columns: repeat(3, 1fr); }
  .place .specials { grid-template-columns: 1fr; }
  .cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .visit-grid { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .explorer { grid-template-columns: 1fr; }
  .phone-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Google listing photo credit (required by Google wherever the photo shows) */
.hero-photo .photo-credit {
  position: absolute;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  top: 0.6rem;
  z-index: 1;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  font-size: 0.75rem;
}
.hero-photo .photo-credit a { color: #FFFFFF; }

/* launch: long hubs, empty states, claim, sources */
.place-rows { display: grid; gap: 0.5rem; }
.place-rows a { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center;
  padding: 0.5rem; border-radius: var(--radius); background: var(--adobe); color: var(--ink); text-decoration: none; }
.place-rows a:hover { background: var(--rule); }
.row-photo { display: block; width: 4rem; height: 4rem; border-radius: 8px; overflow: hidden; }
.row-photo img, .row-photo .no-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.row-photo .no-photo-mark { font-size: 1.125rem; }
.row-photo .no-photo-food { display: none; }
.row-name { display: block; font-weight: 700; }
.row-meta { display: block; color: var(--muted); font-size: 0.875rem; }
.row-tag { position: static; }
.city-tile-ground { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 16 / 10; background: var(--ink); }
.hero-photo .city-tile-ground { aspect-ratio: auto; background: var(--ink); }
.no-specials { background: var(--adobe); border-radius: var(--radius); padding: 1rem 1.1rem; max-width: 40rem; }
.special-source { font-size: 0.8125rem; color: var(--muted); margin: 0.3rem 0 0; }
.socials a { font-weight: 600; }
.more-link { margin-top: 0.75rem; font-weight: 600; }
.claim { border-top: 2px solid var(--ink); padding: 1.5rem 0 0.5rem; margin: 0 0 2.5rem; max-width: 40rem; }
.claim p { margin-bottom: 1rem; }
@media (max-width: 47.99rem) { .city-tile-ground { aspect-ratio: 1; } }
.hero-photo .no-photo { width: 100%; height: 100%; min-height: 0; }
.hero-photo .no-photo-mark, .hero-photo .no-photo-food { display: none; }
.legal { max-width: 42rem; padding-top: 2rem; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.5rem; }
