/* ==========================================================================
   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: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', 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: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 720px;
  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);
  transform: translateY(-110%);
  transition: transform .28s ease;
}

/* Appears once the hero artwork's name has scrolled out of view */
.topbar.shown { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}

.wordmark-link {
  color: inherit;
  text-decoration: none;
}

.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-image {
  width: min(300px, 74vw);
  height: auto;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .topbar { padding: 14px 14px 10px; }
  .section h2 { top: 62px; }
  .wordmark-link {
  color: inherit;
  text-decoration: none;
}

.wordmark { font-size: 40px; }
  .hero { padding: 26px 14px 10px; }
  .hero-image { width: 340px; }
}

/* --------------------------------------------------------------------------
   Section nav cards — doorways, not toggles: they scroll, never hide
   -------------------------------------------------------------------------- */
.navcards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 14px 2px;
}

.navcard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 10px 10px;
  border: 1.5px solid rgba(87, 102, 31, .45);
  border-radius: 12px;
  background: transparent;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 2px 5px rgba(11, 54, 68, .06);
  transition: transform .15s ease, background-color .15s ease;
}

.navcard:hover { transform: translateY(-2px); background: rgba(169, 137, 83, .08); }

.navcard-soon { border-style: dashed; opacity: .85; }
.navcard-soon .navcard-count { color: var(--berry); font-weight: 700; }

/* Photo nav cards — the section title is baked into the image */
.navcard-photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: 100%; /* match row height when a text card in the row is taller */
  border-color: rgba(87, 102, 31, .35);
}

.navcard-photo .navcard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empty sections: skip the dashed "coming soon" look on photo cards */
.navcard-photo.navcard-soon { border-style: solid; opacity: 1; }

.navcard-emoji { display: block; font-size: 26px; line-height: 1.2; }

.navcard-title {
  display: block;
  margin-top: 3px;
  font-weight: 800;
  font-size: 13px;
  color: #4c5a1c;
}

.navcard-count {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

@media (min-width: 640px) {
  .navcards { grid-template-columns: repeat(5, 1fr); }
}

/* Tag pills on cards */
.tags { margin: 5px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(87, 102, 31, .1);
  color: #4c5a1c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Between sections: the artwork's line-heart-line motif */
.rule.section-rule {
  margin: 30px auto 14px;
  font-size: 15px;
  color: rgba(87, 102, 31, .8);
}

/* --------------------------------------------------------------------------
   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; }
}

/* Per-section chip rows: same hanging signs, tucked under their heading */
.section .seccats {
  padding: 2px 2px 12px;
  scroll-padding-inline: 2px;
}

.section .seccats .cat {
  padding: 5px 11px;
  font-size: 11.5px;
}


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

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

.section h2 {
  position: sticky;
  top: 50px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 10px -14px 12px;
  padding: 8px 16px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .6px;
  transition: font-size .22s ease, padding .22s ease, background-color .22s ease,
              box-shadow .22s ease;
}

/* Pinned: condense into a quiet "you are here" bar */
.section h2.h2-stuck {
  padding: 9px 16px;
  font-size: 14px;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(11, 54, 68, .06);
}

.section h2.h2-stuck small { display: none; }

@media (prefers-reduced-motion: reduce) {
  .section h2 { transition: none; }
}

.section h2 small {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.divider {
  margin: 10px 2px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  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: 64px; }
.section { scroll-margin-top: 52px; }

@media (min-width: 480px) { .section { scroll-margin-top: 64px; } }
@media (min-width: 900px) { .section { scroll-margin-top: 71px; } }

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

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

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

/* First card line (town · categories) — tracked serif caps like the artwork */
.meta-sub {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.5;
}

.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;
}

.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); }

/* Instagram glyph: sits on the text baseline, inherits the link colour */
.ig-glyph {
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  margin-right: 0.4em;
  flex: none;
}
.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; }

/* --------------------------------------------------------------------------
   Stats page (stats.html) — private-ish traffic dashboard
   -------------------------------------------------------------------------- */
/* stats.html doesn't load app.js, so the scroll-revealed topbar just stays put */
.stats-page .topbar { position: sticky; top: 0; transform: none; }

.stats-main { padding: 20px 14px 40px; }

.stats-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--board);
}

.stats-sub { margin: 4px 0 16px; font-size: 12.5px; color: var(--muted); }

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 640px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }

.stat-tile {
  padding: 12px 10px;
  border: 1.5px solid rgba(87, 102, 31, .35);
  border-radius: 12px;
  background: var(--paper);
  text-align: center;
}

.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: #4c5a1c;
}

.stat-label { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }

.chart-card {
  margin: 0;
  padding: 12px 12px 6px;
  border: 1.5px solid rgba(87, 102, 31, .35);
  border-radius: 12px;
  background: var(--paper);
}

.chart-caption { display: flex; gap: 14px; margin: 0 0 6px; font-size: 11.5px; color: var(--muted); }

.chart-key::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}

.chart-key-visits::before { background: #57661f; }
.chart-key-views::before { background: var(--sage); }

#chart svg { width: 100%; height: auto; display: block; }

.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-tick { font: 600 9.5px var(--font-body); fill: var(--muted); }
.chart-area { fill: rgba(87, 102, 31, .12); }

.chart-line-visits {
  fill: none;
  stroke: #57661f;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-line-views {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: .85;
}

/* Country breakdown on the stats page */
.geo-card { margin-top: 14px; padding-bottom: 10px; }

.geo-heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--board);
}

.geo-row {
  display: grid;
  grid-template-columns: 22px 110px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 12px;
}

.geo-flag { font-size: 14px; line-height: 1; }

.geo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); }

.geo-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--thumb);
  overflow: hidden;
}

.geo-bar > span { display: block; height: 100%; border-radius: 999px; background: #57661f; min-width: 2px; }

.geo-row:nth-child(even) .geo-bar > span { background: var(--sage); }

.geo-pct { text-align: right; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

.geo-note { margin: 10px 0 2px; font-size: 10.5px; color: var(--muted); }

@media (max-width: 480px) { .geo-row { grid-template-columns: 20px 88px 1fr 40px; } }

/* Chart scrubbing — drag a finger (or hover) to read values */
.chart-card { position: relative; }

#chart svg { touch-action: pan-y; cursor: crosshair; }

.chart-guide { stroke: rgba(87, 102, 31, .45); stroke-width: 1.5; stroke-dasharray: 3 3; }

.chart-dot { stroke: #fff; stroke-width: 2; }
.chart-dot-visits { fill: #57661f; }
.chart-dot-views { fill: var(--sage); }

.chart-tip {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 10px;
  border: 1px solid rgba(87, 102, 31, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 8px rgba(11, 54, 68, .12);
  font-size: 11.5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.chart-tip[hidden] { display: none; }

.chart-tip strong { font-size: 11px; color: var(--ink); }
.tip-visits { font-weight: 800; color: #4c5a1c; }
.tip-views { font-weight: 700; color: var(--sage); }

/* --------------------------------------------------------------------------
   Floating menu button + panel (all pages)
   -------------------------------------------------------------------------- */
.menu-btn {
  position: fixed;
  top: 12px;
  right: max(12px, calc(50% - 348px));
  z-index: 60;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(87, 102, 31, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: 0 2px 10px rgba(11, 54, 68, .14);
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: #4c5a1c;
}

.menu-bars { position: relative; }

.menu-bars::before,
.menu-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -5.5px; }
.menu-bars::after { top: 5.5px; }

.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

.menu-panel {
  position: fixed;
  top: 58px;
  right: max(12px, calc(50% - 348px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 176px;
  padding: 6px;
  border: 1px solid rgba(87, 102, 31, .3);
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: 0 10px 28px rgba(11, 54, 68, .18);
}

.menu-panel[hidden] { display: none; }

.menu-panel a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.menu-panel a:hover { background: rgba(87, 102, 31, .1); }
.menu-panel a.is-current { color: #4c5a1c; font-weight: 700; }

/* Footer nav */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12.5px;
}

.footer-nav a {
  color: var(--board);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }
.footer-dot { color: var(--muted); }

.footer-tag {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-style: italic;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   About page — Rae's letter, in the site's own light key with a few nods
   to the IG post (heart rules, script signature, pulled-out lines)
   -------------------------------------------------------------------------- */

/* No hero image to scroll past here, so the bar stays put at the top */
.about-page .topbar { position: sticky; top: 0; transform: none; }

.about-main { padding: 18px 16px 8px; }

.about-head {
  margin: 6px 2px 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink);
}

.about-sub {
  margin: 0 2px 14px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* The letter */
.about-story {
  max-width: 36em;
  margin: 0 auto;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.about-hey {
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: #4c5a1c;
}

.about-story p {
  margin: 0 0 15px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
}

.about-story .lede { color: var(--muted); font-style: italic; }
.about-story strong { font-weight: 700; }

/* Emphatic single lines, the way the carousel breaks them out */
.about-story .pull {
  margin: 24px 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: #57661f;
}

.rule {
  margin: 22px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1;
  color: rgba(87, 102, 31, .75);
}

.rule::before,
.rule::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  margin: 0 11px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, rgba(87, 102, 31, .45), transparent);
}

.signoff {
  margin: 26px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.signoff-name {
  display: block;
  margin-top: 2px;
  font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  font-size: 38px;
  line-height: 1.2;
  color: #57661f;
}

.signoff-heart { display: block; margin-top: 1px; font-size: 14px; }

/* Closing card — same bordered card language as the rest of the site */
.about-close {
  max-width: 36em;
  margin: 26px auto 8px;
  padding: 22px 18px 24px;
  border: 1.5px solid rgba(87, 102, 31, .35);
  border-radius: 16px;
  background: rgba(87, 102, 31, .04);
  text-align: center;
}

.close-lines {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

.close-tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: #4c5a1c;
}



.about-back {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--board);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.about-back:hover { background: #10475a; }

@media (min-width: 480px) {
  .about-main { padding: 22px 20px 8px; }
  .about-head { font-size: 25px; }
  .about-hey { font-size: 26px; }
  .about-story p { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   Desktop — a real layout, not a stretched phone: persistent header with
   inline nav, side-by-side hero, and cards in a grid
   -------------------------------------------------------------------------- */

/* The header only hides itself on phones; keep it fully off-screen there */
@media (min-width: 760px) {
  .topbar { transform: translateY(calc(-100% - 36px)); }
  .topbar.shown { transform: translateY(0); }
}

.site-nav { display: none; }

@media (min-width: 900px) {
  body { padding: 26px 20px 44px; }

  .site { max-width: 1120px; border-radius: 22px; }

  /* Header: wordmark left, links right — always there, never sliding in */
  .topbar,
  .about-page .topbar,
  .stats-page .topbar {
    position: sticky;
    top: 0;
    max-width: none;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 26px;
    border-radius: 22px 22px 0 0;
    text-align: left;
  }

  .wordmark { font-size: 38px; }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
  }

  .site-nav a:hover { background: rgba(87, 102, 31, .1); }
  .site-nav a[aria-current="page"] { color: #4c5a1c; font-weight: 700; }

  .site-nav-cta {
    background: var(--board);
    color: var(--paper) !important;
    font-weight: 700 !important;
  }

  .site-nav-cta:hover { background: #10475a !important; }

  /* The floating burger is a phone control */
  .menu-btn, .menu-panel { display: none !important; }

  /* Hero stays centred: artwork, then the towns it serves beneath it */
  .hero { padding: 34px 30px 18px; }

  .hero-image { width: 340px; }

  .serving {
    max-width: 34em;
    font-size: 12.5px;
    line-height: 1.95;
  }

  .serving-script { font-size: 34px; margin-bottom: 3px; }

  /* Wider gutters for everything below the hero */
  .navcards { padding: 16px 26px 2px; gap: 14px; }
  .cats { flex-wrap: wrap; overflow-x: visible; }
  .section .seccats { padding: 2px 2px 14px; }
  .section { padding: 10px 26px 6px; }
  .section h2 { top: 69px; margin: 10px -26px 12px; padding: 8px 28px; font-size: 26px; }
  .rule.section-rule { margin: 40px auto 18px; }
  .site-footer { padding: 26px 26px 34px; }

  /* Cards in a grid instead of one long column */
  .cards,
  .cards.sellers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
  }

  .cards .card { margin-bottom: 0; }

  /* The "Coming up" label is a row heading, not a card — let it span */
  .cards > .divider {
    grid-column: 1 / -1;
    margin: 6px 2px 0;
  }

  .flier { height: 230px; }

  /* Reading pages stay a comfortable measure inside the wider shell */
  .about-main {
    max-width: 42em;
    margin: 0 auto;
    padding: 30px 24px 12px;
  }
  .stats-main { padding: 26px 30px 44px; }
  .stats-heading { font-size: 27px; }
}

@media (min-width: 1220px) {
  .site { max-width: 1180px; }
  .hero-image { width: 360px; }
}

/* Sub-links nested under "Find" in the burger menu */
.menu-sub {
  display: flex;
  flex-direction: column;
  margin: -2px 0 2px;
  padding-left: 10px;
}

.menu-sub a {
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.menu-sub a:hover { background: rgba(87, 102, 31, .1); color: var(--ink); }




/* --------------------------------------------------------------------------
   Scroll joystick — hold the knob and pull; further = faster
   -------------------------------------------------------------------------- */
.joy {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.joy[data-side="right"] { right: max(10px, calc(50% - 352px)); }
.joy[data-side="left"] { left: 10px; }

.joy.joy-shown { opacity: 1; pointer-events: auto; }

.joy-knob {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid rgba(87, 102, 31, .4);
  border-radius: 50%;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: 0 4px 14px rgba(11, 54, 68, .18);
  color: #4c5a1c;
  cursor: grab;
  transition: box-shadow .18s ease;
}

.joy-knob svg { width: 15px; height: 24px; }

.joy-live .joy-knob {
  cursor: grabbing;
  border: 2px solid #57661f;
  background: #fff;
  color: #3c481a;
  box-shadow: 0 0 0 5px rgba(87, 102, 31, .14), 0 8px 24px rgba(11, 54, 68, .3);
}

/* The rail hints the vertical travel while the knob is held */
.joy-rail {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 176px;
  border-radius: 999px;
  background: rgba(87, 102, 31, .16);
  opacity: 0;
  transition: opacity .18s ease;
}

.joy-live .joy-rail { opacity: 1; }

/* Pulled far sideways: about to dock on the other edge */
.joy-docking .joy-knob { border-style: dashed; }

/* Desktop has the header nav and plenty of scrollbar — no joystick */
@media (min-width: 900px) {
  .joy { display: none; }
}

/* --------------------------------------------------------------------------
   Get listed — one-question-at-a-time wizard
   -------------------------------------------------------------------------- */
.listed-main {
  max-width: 40em;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.wizard { border-top: 1px solid var(--line); padding-top: 18px; }

.wprogress {
  height: 4px;
  border-radius: 999px;
  background: rgba(87, 102, 31, .14);
  overflow: hidden;
}

.wbar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #57661f;
  transition: width .35s ease;
}

.wcount {
  margin: 8px 0 0;
  min-height: 1em;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.wstep { display: none; padding: 18px 0 6px; }

.wstep.on { display: block; animation: wstep-in .32s ease both; }

@keyframes wstep-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.wstep.shake { animation: wstep-shake .3s ease; }

@keyframes wstep-shake {
  20% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  80% { transform: translateX(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .wstep.on, .wstep.shake { animation: none; }
}

.wq {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
}

.whint { margin: 10px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); }

.winput {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(87, 102, 31, .35);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.winput:focus-visible { outline: 3px solid var(--berry); outline-offset: 1px; }

textarea.winput { resize: vertical; }

.wchoices { display: flex; flex-direction: column; gap: 10px; }

.wchoice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 14px;
  border: 1.5px solid rgba(87, 102, 31, .35);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.wchoice:has(input:checked) { border-color: #57661f; background: rgba(87, 102, 31, .06); }

.wchoice input { accent-color: #57661f; }

#address-reveal { margin-top: 12px; }

.wupload {
  display: inline-block;
  padding: 12px 20px;
  border: 1.5px dashed rgba(87, 102, 31, .5);
  border-radius: 12px;
  color: #4c5a1c;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.wupload:hover { background: rgba(87, 102, 31, .07); }

.wthumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.wthumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.wreview { margin: 0; }

.wrow {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.wrow dt {
  flex: 0 0 84px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.wrow dd { margin: 0; overflow-wrap: anywhere; }

.wactions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }

.wnext {
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--board);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.wnext:hover { background: #10475a; }
.wnext:disabled { opacity: .6; cursor: default; }

.wback, .wskip {
  border: 0;
  padding: 8px 4px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.wback:hover, .wskip:hover { color: var(--ink); }

.wkbd { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.wkbd b { color: #4c5a1c; }

@media (max-width: 640px) { .wkbd { display: none; } }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.listed-status { margin: 12px 0 0; min-height: 1.2em; font-size: 13px; font-weight: 600; color: var(--berry); }

.listed-done { text-align: center; padding: 30px 0 10px; }
.done-emoji { margin: 0; font-size: 40px; }
.done-head { margin: 10px 0 8px; font-family: var(--font-display); font-size: 24px; }
.done-copy { margin: 0 auto 18px; max-width: 30em; font-size: 14.5px; line-height: 1.7; }

/* Processing state + confetti on the Get listed wizard */
.wprocessing { text-align: center; padding: 44px 0 30px; }

.proc-emoji { margin: 0; font-size: 54px; line-height: 1.2; animation: proc-bob 1s ease-in-out infinite; }

@keyframes proc-bob {
  50% { transform: translateY(-7px) rotate(4deg); }
}

.proc-text {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

.proc-dots::after {
  content: '';
  animation: proc-dots 1.4s steps(4) infinite;
}

@keyframes proc-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

@media (prefers-reduced-motion: reduce) {
  .proc-emoji { animation: none; }
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

/* Photo thumbnails on the wizard: cover badge + rotate/star/remove */
.wthumb {
  position: relative;
  width: 104px;
}

.wthumb-img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ground);
}

.wthumb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
}

.wthumb-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #57661f;
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.wthumb-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
}

.wthumb-btn {
  width: 30px;
  height: 28px;
  border: 1px solid rgba(87, 102, 31, .4);
  border-radius: 8px;
  background: #fff;
  color: #4c5a1c;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.wthumb-btn:hover { background: rgba(87, 102, 31, .08); }
