/* ==========================================================================
   LocalStands — styles
   Palette + type ported from localstands-mockup.html
   ========================================================================== */

:root {
  /* Palette v2 — teal & citrus (Raeleen's pick), on clean white */
  --board:  #0b3644;   /* deep teal — header, active chip, primary buttons */
  --paper:  #ffffff;   /* clean white */
  --butter: #f6c936;   /* sunflower yellow — brand accent, date badges */
  --berry:  #c8420e;   /* burnt orange — DM links, focus rings */
  --sage:   #0e6478;   /* teal — chips */
  --ochre:  #e08908;   /* orange — alternating chips (dark text) */
  --ink:    #1f2d33;
  --muted:  #66727b;
  --line:   #e7e6e2;
  --ground: #f6f7f6;   /* near-white behind the column */
  --open:   #0d6478;   /* hours highlight */
  --thumb:  #e9f0f2;
  --butter-ink: #083240;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Page shell — full-bleed on phones, a rounded "board" on larger screens */
.site {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}

@media (min-width: 760px) {
  body { padding: 28px 12px 40px; }
  .site {
    min-height: 0;
    border-radius: 26px;
    box-shadow: 0 12px 40px rgba(11, 54, 68, .25);
  }
}

/* --------------------------------------------------------------------------
   Hero — the logo carries the brand; quiet white header with a soft edge
   -------------------------------------------------------------------------- */
.topbar {
  position: -webkit-sticky; /* older iOS Safari */
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  text-align: center;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(11, 54, 68, .07);
}

.wordmark {
  margin: 0;
  font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: #57661f; /* olive from the logo */
  letter-spacing: .5px;
}

.hero {
  background: transparent;
  text-align: center;
  padding: 20px 14px 6px;
}

.serving {
  margin: 10px auto 4px;
  max-width: 480px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  line-height: 1.9;
  color: #6d7550;
}

.serving-script {
  display: block;
  margin-bottom: 2px;
  font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .5px;
  text-transform: none;
  color: #57661f;
}

.hero-logo {
  width: min(300px, 74vw);
  height: auto;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .topbar { padding: 14px 14px 10px; }
  .wordmark { font-size: 40px; }
  .hero { padding: 26px 14px 10px; }
  .hero-logo { width: 340px; }
}

/* --------------------------------------------------------------------------
   Category chips — little hanging painted signs
   -------------------------------------------------------------------------- */
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 14px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 14px;
}

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

.cat {
  flex: 0 0 auto;
  position: relative;
  margin: 8px 0 0;
  padding: 7px 14px;
  background: transparent;
  border: 1.5px solid rgba(87, 102, 31, .5);
  border-radius: 6px;
  color: #4c5a1c;
  font: inherit;
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.2;
  letter-spacing: .2px;
  box-shadow: 0 2px 5px rgba(11, 54, 68, .08);
  cursor: pointer;
  transform-origin: 50% -6px;            /* swing from the nail */
  transition: transform .18s ease, background-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* the nail */
.cat::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #57661f;
  transform: translateX(-50%);
}

.cat:hover { transform: rotate(-2.5deg); background: rgba(169, 137, 83, .1); }

.cat[aria-pressed="true"] {
  background: #57661f;
  border-color: #57661f;
  color: #fff;
  transform: none;
}

@media (min-width: 640px) {
  .cats { flex-wrap: wrap; row-gap: 12px; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat { transition: none; }
  .cat:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 6px 14px 4px; }

.section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 8px 2px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
}

.section h2 small {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.divider {
  margin: 10px 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 5px rgba(11, 54, 68, .05);
}

.card { scroll-margin-top: 70px; }

.card:target { box-shadow: 0 0 0 3px var(--butter); }

.name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.meta {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }

.desc { color: var(--ink); opacity: .85; }

.open { color: var(--open); font-weight: 700; }
.dm   { color: var(--berry); font-weight: 700; white-space: nowrap; }
.addr { color: var(--ink); font-weight: 700; }

/* Event cards */
.flier {
  display: block;
  height: 220px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.flier img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.body { padding: 11px 13px 13px; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.when {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--butter-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}

.actions { display: flex; gap: 8px; margin-top: 10px; }

.btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.btn.go { background: var(--board); color: var(--paper); }
.btn.ig { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn.go:hover { background: #10475a; }
.btn.ig:hover { border-color: #cfc4aa; }

@media (min-width: 480px) {
  .flier { height: 260px; }
}

/* Extra photos under the cover image */
.shots {
  display: flex;
  gap: 6px;
  padding: 8px 13px 0;
  flex-wrap: wrap;
}

.shots img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.shots a { display: block; line-height: 0; }

/* Full-screen photo viewer */
.flier, .shots a { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 28, 36, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 7px 0 0;
  font-size: 12.5px;
  font-weight: 700;
}

.links a { text-decoration: none; color: var(--ink); }
.links a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .cards.sellers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .cards.sellers .card { margin-bottom: 0; }
  .cards.sellers .empty { grid-column: 1 / -1; }
}

/* Empty / loading / error states */
.empty {
  margin: 0 0 12px;
  padding: 18px 14px;
  border: 1px dashed #d9cfb6;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 18px 14px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.cta-line { margin: 0; font-size: 13px; }

.cta {
  color: var(--board);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cta:hover { text-decoration: underline; }

.fine-print { margin: 8px 0 0; font-size: 11px; }
