/*
Theme Name: Eagle Mountain Farmers Market
Theme URI: https://eaglemountainfarmersmarket.org/
Author: Eagle Mountain Farmers Market
Description: Custom theme for the Eagle Mountain Farmers Market, built from the 2026 redesign. Global header and footer, cream-and-maroon palette, Bitter / Source Sans 3 / Kaushan Script.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emfm
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --cream:      #FDF8F1;
  --tan:        #F4E7D3;
  --border:     #E7DCCB;
  --ink:        #231F1C;
  --muted:      #5D554E;
  --faint:      #9A9088;
  /* --faint is legible on ink; on cream it lands near 2.7:1, so light surfaces
     use this darker sibling instead. */
  --faint-ink:  #746A61;
  --maroon:     #832E31;
  --orange:     #BD5B12;
  --orange-dk:  #9A4A0E;
  --copper:     #A65D30;
  /* --copper is for light surfaces only; on the dark entertainers band it
     lands near 3:1, so that band uses this lifted sibling instead. */
  --copper-lt:  #E3A874;
  --yellow:     #FAD75F;
  /* Form-control edge. --border is a hairline for panels and reads as nothing
     against them; a control needs 3:1 to count as visible (WCAG 1.4.11). */
  --field-line: #94795A;
  --brown:      #603309;
  --green:      #556138;
  --purple:     #452B5A;
  --deep-red:   #720606;

  --serif:  'Bitter', Georgia, serif;
  --sans:   'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script: 'Kaushan Script', cursive;

  --shadow-sm: 0 1px 2px rgba(96,51,9,.06), 0 2px 6px rgba(96,51,9,.06);
  --shadow-lg: 0 2px 4px rgba(96,51,9,.06), 0 8px 20px rgba(96,51,9,.10);

  --wrap: 1280px;
  --radius: 20px;
  --pill: 999px;

  /* Paper grain, inline so it costs no request. Applied to a couple of
     bands rather than the whole page — see .hero::after. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.16'/%3E%3C/svg%3E");
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

/* The browser's own [hidden] rule is only display:none, so any author rule
   that sets display — .vendor-card is flex, .vendor-grid is grid — outranks
   it and the element stays on screen. The filter scripts hide by setting
   .hidden, so without this the vendor chips recount but nothing disappears. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; background: var(--cream); }

body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--orange-dk); text-decoration: none; }
a:hover { color: var(--deep-red); }

img { max-width: 100%; }

input, textarea, select, button { font-family: inherit; }

.site-main { flex: 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap-narrow { max-width: 960px; margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--maroon); color: #fff; padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* A visible focus ring everywhere, including the form fields that switch
   their own outline off. */
:focus-visible,
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible,
.vendor-search input:focus-visible {
  outline: 3px solid var(--orange-dk);
  outline-offset: 2px;
}

@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------
   SCROLL REVEAL
   Opt-in via the .emfm-js class that main.js adds to <html>, so a
   visitor without JavaScript sees everything as normal static copy.
   ------------------------------------------------------------ */
.emfm-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.emfm-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .62s cubic-bezier(.22, .61, .36, 1),
    transform .62s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

@media print {
  .emfm-js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .emfm-js [data-reveal],
  .emfm-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mosaic-item img,
  .booth-card,
  .status-card .status-dot { transition: none; animation: none; }
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.script {
  font-family: var(--script);
  color: var(--copper);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint-ink);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

.section-title {
  font-size: 40px;
  line-height: 1.08;
  color: var(--maroon);
  margin: 0 0 36px;
}

.lede { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }

.rule-diamond {
  display: flex; align-items: center; gap: 14px;
}
.rule-diamond .bar { height: 2px; width: 70px; background: var(--ink); }
.rule-diamond .dot { width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .18s ease, color .18s ease;
}
/* --orange against white sits at 4.50:1, right on the WCAG line. Button
   fills use the darker sibling; --orange stays the accent for rules,
   borders and hover states. */
.btn-primary {
  background: var(--orange-dk);
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: var(--brown); color: #FFFFFF; }

.btn-outline {
  background: var(--cream);
  color: var(--maroon);
  border-color: var(--maroon);
  box-shadow: var(--shadow-lg);
}
.btn-outline:hover { background: var(--tan); color: var(--maroon); }

.btn-quiet {
  padding: 12px 22px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 12px;
  background: transparent;
}
.btn-quiet:hover { background: var(--tan); color: var(--ink); }

.btn-sm { padding: 14px 26px; font-size: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   HEADER (global)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { flex: none; display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-top {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--maroon);
  white-space: nowrap;
}
.brand-bottom {
  font-family: var(--script);
  font-size: 20px;
  line-height: 1;
  color: var(--copper);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 9px 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--maroon); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_parent > a {
  font-weight: 600;
  color: var(--maroon);
  border-bottom-color: var(--orange);
}

/* Sub menus */
.site-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  flex-direction: column;
  align-items: stretch;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }
.site-nav ul ul a { border-bottom: none; padding: 8px 10px; }

.site-nav .nav-cta {
  margin-left: 10px;
  padding: 11px 15px;
  background: var(--orange-dk);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid transparent;
  border-bottom-width: 2px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--pill);
  flex: none;
}
.site-nav .nav-cta:hover { background: var(--brown); color: #FFFFFF; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--maroon);
}

/* ============================================================
   FOOTER (global)
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--border);
  padding: 56px 32px 34px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(244,231,211,.2);
}
.footer-brand-top {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--tan);
  line-height: 1.15;
  margin-bottom: 6px;
}
.footer-brand-bottom {
  font-family: var(--script);
  font-size: 30px;
  color: var(--yellow);
  margin-bottom: 16px;
}
.footer-blurb { font-size: 15.5px; line-height: 1.6; max-width: 38ch; }

.footer-heading {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.footer-links, .footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a { font-size: 15px; color: var(--border); transition: color .18s ease; }
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--faint);
}
.footer-tag {
  font-family: var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--yellow);
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
}
.card-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}

.chip {
  padding: 7px 14px;
  border-radius: 12px;
  background: var(--tan);
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip-white { background: #FFFFFF; padding: 8px 15px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.framed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ============================================================
   HOME
   ============================================================ */

/* ---- Hero ---------------------------------------------------
   Asymmetric: type on the left, a framed photo on the right with
   the live market-status card breaking out of its corner.
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(36px, 5vw, 76px) 32px clamp(64px, 7vw, 96px);
  isolation: isolate;
}

/* Low morning sun over the field. Keeps the top of the page from
   reading as a flat block of cream. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(64% 58% at 20% 12%, rgba(250, 215, 95, .30), transparent 64%),
    radial-gradient(52% 52% at 90% 4%, rgba(189, 91, 18, .12), transparent 62%);
  pointer-events: none;
}

/* Paper grain. Scoped to the two textured bands rather than the whole
   page so nothing has to repaint on scroll. */
.hero::after,
.booths::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: var(--grain);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}

/* The <picture> wrapper is inline by default, which would leave a line-box
   gap under the mark. */
.hero-copy > picture { display: block; }

.hero-mark {
  width: clamp(148px, 17vw, 208px);
  height: auto;
  display: block;
  margin: 0 0 20px -8px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 22px;
  padding: 8px 17px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--maroon);
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--maroon);
  margin: 0 0 24px;
  max-width: 13ch;
  text-wrap: balance;
}
/* The one word that gets to be handwritten. */
.hero h1 em {
  display: inline-block;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.04em;
  text-transform: none;
  letter-spacing: 0;
  color: var(--orange-dk);
  transform: rotate(-2.5deg);
  padding: 0 .05em;
}

.hero .rule-diamond { margin-bottom: 24px; }

.hero-lede {
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.62;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero-visual { position: relative; }

/* Offset second frame — the edge of a printed poster. */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 20px -18px -20px 18px;
  border: 1.5px solid var(--copper);
  border-radius: var(--radius);
  opacity: .5;
  transform: rotate(-1.2deg);
  pointer-events: none;
}

.hero-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: clamp(300px, 42vw, 500px);
  object-fit: cover;
}

/* ---- Live market status ------------------------------------ */
.status-card {
  position: absolute;
  z-index: 2;
  left: -20px;
  bottom: -22px;
  min-width: 250px;
  max-width: 330px;
  padding: 20px 24px 22px;
  background: var(--ink);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(35, 31, 28, .30);
  transform: rotate(1.5deg);
}
.status-card-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
}
.status-card-label .script {
  font-size: 22px;
  line-height: 1.15;
  color: var(--yellow);
}
.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: var(--pill);
  background: var(--yellow);
}
.status-card-value {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.12;
  text-transform: uppercase;
  color: #FFF8EA;
  margin-bottom: 8px;
}
.status-card-meta {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(244, 231, 211, .82);
}

/* Open right now gets a heartbeat; every other state stays still. */
.status-card.status-open .status-dot {
  background: #8FC46E;
  animation: status-pulse 2.4s ease-out infinite;
}
.status-card.status-closed .status-dot { background: var(--faint); }

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143, 196, 110, .55); }
  70%  { box-shadow: 0 0 0 11px rgba(143, 196, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 196, 110, 0); }
}

/* ---- Ticker ------------------------------------------------- */
.ticker {
  background: var(--maroon);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* The track sizes to its content, not the viewport: two identical halves, so
   translating -50% lands exactly one half over and the loop is seamless at any
   width. Pinning the halves to a viewport fraction instead would crush the
   items on narrow screens and print the labels on top of each other. */
.ticker-track { display: flex; width: max-content; animation: roll 40s linear infinite; }
.ticker-half { display: flex; flex: none; align-items: center; min-width: 100vw; }
.ticker-item {
  display: flex;
  flex: none;
  align-items: center;
  gap: 26px;
  padding: 13px 0 13px 26px;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tan);
  white-space: nowrap;
}
.ticker-item::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--yellow);
  transform: rotate(45deg);
  opacity: .9;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-half:last-child { display: none; }
}

/* ---- At a glance -------------------------------------------- */
.facts { padding: clamp(48px, 6vw, 76px) 32px 0; }
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.fact {
  padding: 26px 26px 28px;
  border-left: 1px solid var(--border);
}
.fact:first-child { border-left: none; }
.fact-label {
  font-family: var(--script);
  font-size: 21px;
  line-height: 1.1;
  color: var(--copper);
  margin-bottom: 6px;
}
.fact-value {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.14;
  text-transform: uppercase;
  color: var(--ink);
}
.fact-note {
  margin-top: 9px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint-ink);
}

/* ---- Season + venue ----------------------------------------- */
.split { padding: clamp(52px, 6.5vw, 80px) 32px; }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.split-copy .script { font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.split h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.06;
  color: var(--maroon);
  margin: 0 0 24px;
}
.split p { font-size: 17.5px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
.split-copy .btn { margin-top: 10px; }

.venue-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px 34px 34px 38px;
}
/* Colour spine, so this reads as the venue and not another white box. */
.venue-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 30px;
  width: 5px;
  background: var(--green);
  border-radius: 0 5px 5px 0;
}
.venue-card .script { font-size: 24px; line-height: 1.1; margin-bottom: 8px; }
.venue-card h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; }
.venue-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--orange-dk);
  margin-bottom: 22px;
  border-bottom: 1px solid transparent;
}
.venue-address:hover { color: var(--deep-red); border-bottom-color: currentColor; }
.venue-address-arrow { transition: transform .18s ease; }
.venue-address:hover .venue-address-arrow { transform: translateX(4px); }
.venue-card p { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; }

/* ---- Photo mosaic ------------------------------------------- */
.mosaic { padding: 0 32px clamp(56px, 7vw, 84px); }
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(148px, 16vw, 214px);
  gap: 16px;
}
.mosaic-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tan);
}
.mosaic-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}
.mosaic-item:hover img { transform: scale(1.055); }
.mosaic-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(to top, rgba(35, 31, 28, .82), rgba(35, 31, 28, 0));
  color: var(--tan);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}
.mosaic-tall { grid-row: span 2; }
.mosaic-item:nth-child(2) { grid-column: span 2; }
.mosaic-wide { grid-column: span 3; }

/* ---- Booth types -------------------------------------------- */
.booths {
  position: relative;
  isolation: isolate;
  background: var(--tan);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(56px, 7vw, 84px) 32px;
}

.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head .script { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; margin-bottom: 6px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.06;
  color: var(--maroon);
  margin: 0;
  max-width: 19ch;
}

.booth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.booth-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top: 5px solid var(--booth, var(--maroon));
  border-radius: 5px 5px var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 26px 28px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.booth-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.booth-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: var(--booth, var(--maroon));
  opacity: .22;
  transition: opacity .22s ease;
}
.booth-card:hover .booth-num { opacity: .38; }
.booth-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--booth, var(--maroon));
  padding-right: 58px;
}
.booth-card p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0; }

.booths-foot {
  margin: 30px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}
.booths-foot a { font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---- Why it matters ----------------------------------------- */
.why { padding: clamp(56px, 7vw, 84px) 32px; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.why-grid img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 540px;
  object-fit: cover;
}
.why-copy { background: var(--maroon); padding: clamp(32px, 4vw, 56px); }
.why-copy .script { color: var(--yellow); font-size: 26px; line-height: 1.1; margin-bottom: 8px; }
.why-copy h2 {
  font-size: clamp(26px, 2.9vw, 36px);
  line-height: 1.1;
  color: var(--tan);
  margin: 0 0 24px;
}
.why-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px 20px;
  background: rgba(250, 215, 95, .13);
  border-left: 3px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--tan);
}
.why-stat span {
  flex: none;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
}
.why-copy p { font-size: 16.5px; line-height: 1.7; color: var(--border); margin: 0 0 16px; }
.why-copy p:last-child { margin-bottom: 0; }

/* ---- FAQ ----------------------------------------------------
   Printed, not hidden. A sticky rail carries the heading and the
   "ask us something else" line while the answers scroll past it.
   ------------------------------------------------------------ */
.faq-section { padding: 0 32px clamp(56px, 7vw, 88px); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: start;
}

/* Clears the sticky site header. */
.faq-rail { position: sticky; top: 104px; }
.faq-rail .section-head { margin-bottom: 24px; }
.faq-rail .rule-diamond { margin-bottom: 22px; }
.faq-rail-note {
  margin: 0;
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.faq-rail-note a { font-weight: 600; border-bottom: 1px solid currentColor; }

/* Fills the rail under the note and keeps the poster framing going. */
.faq-rail-photo {
  margin: 32px 0 0;
  max-width: 330px;
}
.faq-rail-photo img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
}
.faq-rail-photo figcaption {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--copper);
}

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.faq-item:first-child { border-top: none; padding-top: 4px; }
.faq-item:last-child { padding-bottom: 0; }

/* Numeral plus the diamond that runs through the rest of the page. */
.faq-num {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--copper);
}
.faq-num::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  transform: rotate(45deg);
}

.faq-q {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(19px, 1.75vw, 23px);
  line-height: 1.25;
  text-transform: none;
  color: var(--maroon);
  max-width: 24ch;
}
.faq-a {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---- Sponsors ----------------------------------------------- */
.sponsors { padding: 0 32px clamp(56px, 7vw, 84px); }
.sponsors .inner {
  border-top: 1px solid var(--border);
  padding-top: 36px;
  text-align: center;
}
.sponsors .script { font-size: 26px; line-height: 1.1; margin-bottom: 10px; }
.sponsors p {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 auto;
  max-width: 34ch;
}

/* ---- Home responsive ---------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 16ch; }
  .hero-lede { max-width: 60ch; }
  .hero-visual { max-width: 620px; }
  .hero-visual::after { inset: 16px -12px -16px 12px; }
  .status-card { left: 12px; bottom: -18px; }
  .facts-strip { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .booth-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid img { min-height: 300px; }
  /* Two up: the tall shot keeps the left column, the rest stack beside it,
     and the wide shot closes the block. Leaving nth-child(2) at span 2 here
     would strand an empty cell in the first row. */
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-rail { position: static; }
  .faq-rail-note { max-width: 60ch; }
  .faq-rail-photo { display: none; }
  /* Stacked, the answers need a rule to separate them from the rail. */
  .faq-item:first-child { border-top: 1px solid var(--border); padding-top: 30px; }
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic-item:nth-child(2) { grid-column: auto; }
  .mosaic-wide { grid-column: span 2; }
}

@media (max-width: 620px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .facts, .split, .booths, .faq-section, .mosaic, .why, .sponsors {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-visual::after { display: none; }
  .hero-photo, .status-card { transform: none; }
  .status-card {
    position: static;
    max-width: none;
    margin-top: 18px;
  }
  .facts-strip { grid-template-columns: 1fr; }
  .fact { border-left: none; }
  .fact + .fact { border-top: 1px solid var(--border); }
  .booth-grid { grid-template-columns: 1fr; }
  .mosaic-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .mosaic-tall { grid-row: span 1; }
  .mosaic-item:nth-child(2),
  .mosaic-wide { grid-column: span 1; }
  .venue-card { padding: 26px 26px 26px 30px; }
}

/* ============================================================
   PAGE HEADS
   ============================================================ */
.page-head { padding: 64px 32px 40px; border-bottom: 1px solid var(--border); }
.page-head .script { font-size: 30px; margin-bottom: 6px; }
.page-head h1 { font-size: 58px; line-height: 1.02; color: var(--maroon); margin: 0 0 20px; max-width: 15ch; }
.page-head p { max-width: 58ch; }

/* ------------------------------------------------------------
   PAGE HEAD, SPLIT (About & Contact only)

   The plain band above is text on the left and nothing on the right — fine
   for a filter page, but this one is headed "who we are" and the emptiness
   read as an unfinished layout rather than as breathing room.
   ------------------------------------------------------------ */
.page-head-split { padding-bottom: 0; border-bottom: none; }
.page-head-split .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center;
}
/* The h1's 15ch cap is what kept it in a narrow ribbon; in a real column it
   can use the width it has. */
.page-head-split h1 { max-width: none; margin-bottom: 22px; }
.page-head-split .lede { max-width: 46ch; }

.page-head-figure { margin: 0; position: relative; }
/* <picture> is inline by default and would leave a baseline gap under it. */
.page-head-figure picture { display: block; }
.page-head-figure img {
  display: block; width: 100%; height: 420px; object-fit: cover;
  /* The source is near-square and the faces sit high in it. Centred, a wide
     crop takes a band across the middle and cuts both foreheads off. */
  object-position: 50% 26%;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
/* The yellow diamond off the top corner — the same mark as .rule-diamond,
   borrowed so the photo reads as part of the set rather than pasted on. */
.page-head-figure::after {
  content: ""; position: absolute; top: -9px; right: 26px;
  width: 18px; height: 18px; background: var(--yellow);
  transform: rotate(45deg);
}
.page-head-figure figcaption {
  margin-top: 14px; font-size: 15px; color: var(--faint-ink);
}
.page-head-figure figcaption .script {
  font-size: 20px; color: var(--copper); margin-right: 4px;
}

/* About & Contact only: the contact block is the last thing on a long page,
   so the headline's second promise gets its own way down there. */
.page-head-jump { margin: 22px 0 0; }
.jump-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 22px;
  border: 1px solid var(--border); border-radius: var(--pill);
  background: #FFFFFF;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--maroon);
  box-shadow: var(--shadow-sm);
  transition: background .18s ease, border-color .18s ease;
}
.jump-link:hover { background: var(--tan); border-color: var(--copper); color: var(--maroon); }
.jump-arrow { transition: transform .22s cubic-bezier(.22, .61, .36, 1); }
.jump-link:hover .jump-arrow { transform: translateY(3px); }

@media (prefers-reduced-motion: reduce) {
  .jump-arrow, .fact-link span[aria-hidden] { transition: none; }
}

/* Season switcher — this season, past seasons, this week.
   Sits under the lede on all three vendor pages, so wherever you land you can
   see the other two exist. */
.season-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.season-pill {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #FFFFFF;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.season-pill:hover { background: var(--tan); border-color: var(--copper); color: var(--maroon); }
.season-pill.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--tan);
}
.season-pill.is-active:hover { background: var(--maroon); color: var(--tan); }
/* This week is a different kind of thing from a year. Colour separates it;
   pushing it to the far edge was tried and just looks stranded in the first
   season, when there is only one year pill to push away from. */
.season-pill.is-week {
  margin-left: 10px;
  background: var(--yellow);
  border-color: var(--maroon);
  color: var(--brown);
}
.season-pill.is-week:hover { background: #FFE698; color: var(--brown); }

/* ============================================================
   VENDOR DIRECTORY
   ============================================================ */
.vendor-section { padding: 32px 32px 88px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; align-items: center; }
.filter-chip {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  background: var(--cream);
  color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.filter-chip:hover { background: var(--tan); }
.filter-chip.is-active { background: var(--maroon); color: var(--tan); font-weight: 600; }
.chip-count {
  display: inline-block;
  margin-left: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--faint-ink);
}
.filter-chip.is-active .chip-count { color: var(--yellow); }

.vendor-search { margin-left: auto; flex: 0 1 260px; min-width: 180px; }
.vendor-search input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #FFFFFF;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.vendor-search input:focus { border-color: var(--orange); }

.vendor-count {
  font-family: var(--script);
  font-size: 20px;
  color: var(--copper);
  margin-bottom: 18px;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.vendor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vendor-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vendor-photo {
  position: relative; /* anchors the booth badge on this week's cards */
  height: 220px;
  /* White, not tan: most vendor logos are supplied on a white or transparent
     background, and a tinted box behind them shows as a visible square. */
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  /* An explicit track, so the row is the 180px the padded box actually has.
     Left to auto it sizes to the image instead, and the max-height below has
     no definite height to be a percentage of. */
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  /* Most vendor images are logos, so fit them rather than crop them. */
  padding: 20px;
}
.vendor-img {
  /* Bounded by the padded box rather than stretched to it: the card is a fixed
     220px tall whatever the image does, so a lazily loaded logo can never shift
     the grid. */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Keeps the tan on cards with no photo, so an empty slot still reads as one
   rather than as a blank white gap. */
.vendor-photo.is-empty { background-color: var(--tan); }
.vendor-photo .placeholder {
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint-ink);
}
.vendor-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vendor-cat {
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-dk);
}
.vendor-name { font-family: var(--serif); font-weight: 800; font-size: 21px; line-height: 1.2; text-transform: uppercase; }
.vendor-city {
  font-size: 13.5px;
  color: var(--faint-ink);
  margin-top: -4px;
}
.vendor-desc { font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* Booth number, on this week's cards only. Borrows the map's .map-pin-* colours
   so a booth is the same colour here as it is on the map. */
.vendor-badge {
  position: absolute;
  top: 12px; left: 12px;
  min-width: 30px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  border-radius: var(--pill);
  background: var(--faint-ink);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(35, 31, 28, .35);
}
/* Attendance ("6 market days") and anything other than plain "here today". */
.vendor-meta {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--faint-ink);
  margin-top: -4px;
}
.vendor-status {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--tan);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper);
}
.vendor-status.is-noshow  { color: var(--deep-red); }
.vendor-status.is-soldout { background: var(--ink); color: var(--cream); }
.vendor-link {
  margin-top: auto; font-family: var(--sans); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}

.no-results {
  padding: 60px 32px; text-align: center; border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.no-results h2, .no-results h3 { font-size: 22px; margin-bottom: 10px; }
.no-results p { font-size: 16px; color: var(--muted); margin: 0; }

.vendor-note {
  margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--border);
  font-size: 14.5px; color: var(--faint-ink);
}

.cta-band {
  margin-top: 56px;
  background: var(--yellow);
  border: 2px solid var(--maroon);
  box-shadow: var(--shadow-lg);
  border-radius: 28px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 34px; color: var(--brown); margin-bottom: 8px; line-height: 1.08; }
.cta-band p { font-size: 17px; font-weight: 600; color: var(--brown); margin: 0; }
.cta-band .btn { padding: 16px 30px; white-space: nowrap; }

/* ============================================================
   BECOME A VENDOR
   ============================================================ */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-band .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(35,31,28,.93) 0%, rgba(35,31,28,.74) 58%, rgba(35,31,28,.42) 100%);
}
.hero-band .inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 80px 32px; }
.badge {
  display: inline-block; padding: 9px 18px; border-radius: var(--pill);
  background: var(--yellow); color: var(--brown); border: 2px solid var(--tan);
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 24px;
}
.hero-band h1 { font-size: 62px; line-height: 1.02; color: var(--tan); margin: 0 0 20px; max-width: 13ch; }
.hero-band p { font-size: 18px; line-height: 1.6; color: var(--border); margin: 0; max-width: 56ch; }

.steps { padding: 76px 32px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.step-num { font-family: var(--serif); font-weight: 800; font-size: 44px; line-height: 1; color: var(--orange); }
.step-card h3 { font-size: 21px; line-height: 1.2; }
.step-card p { font-size: 16px; line-height: 1.65; color: var(--muted); flex: 1; margin: 0; }
.step-card .btn-quiet { align-self: flex-start; border-radius: var(--pill); }

.types {
  background: var(--tan);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 76px 32px;
}
.types .script { font-size: 28px; margin-bottom: 6px; }
.types h2 { font-size: 40px; line-height: 1.08; color: var(--maroon); margin: 0 0 14px; }
.types > .wrap > p { font-size: 17px; color: var(--muted); margin: 0 0 36px; max-width: 60ch; }
.type-list { display: flex; flex-direction: column; gap: 12px; }
.type-item { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.type-head {
  width: 100%; background: transparent; border: none;
  padding: 22px 24px; display: flex; align-items: center; gap: 20px;
  cursor: pointer; text-align: left; color: var(--ink);
}
.type-name { font-family: var(--serif); font-weight: 800; font-size: 19px; line-height: 1.25; text-transform: uppercase; flex: 1; }
.type-fee {
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600; color: var(--muted);
  background: var(--tan); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px 13px; white-space: nowrap;
}
.type-fee.is-free { color: var(--brown); background: var(--yellow); }
.type-sign { font-size: 19px; color: var(--maroon); flex: none; width: 20px; text-align: center; }
.type-body { display: none; padding: 0 24px 26px; border-top: 2px solid var(--tan); }
.type-item.is-open .type-body { display: block; }
.type-body p { padding-top: 20px; margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 76ch; }
.type-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.type-links a {
  font-family: var(--sans); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600;
}

.setup { padding: 76px 32px; }
.setup-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.setup .script { font-size: 28px; margin-bottom: 6px; }
.setup h2 { font-size: 34px; line-height: 1.1; color: var(--maroon); margin: 0 0 28px; }
.setup-list { border-top: 1px solid var(--border); }
.setup-row { padding: 20px 0; border-bottom: 1px solid var(--border); display: flex; gap: 22px; }
.setup-num { font-family: var(--serif); font-weight: 800; font-size: 17px; color: var(--orange); flex: none; width: 30px; }
.setup-text { font-size: 16.5px; line-height: 1.7; color: var(--muted); }

.details-img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
}
.details-card {
  background: var(--ink); color: var(--tan); padding: 34px;
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.details-card .script { color: var(--yellow); font-size: 24px; margin-bottom: 16px; }
.details-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(244,231,211,.2); font-size: 15.5px;
}
.details-row:last-of-type { border-bottom: none; }
.details-row .k { color: var(--faint); }
.details-row .v { font-weight: 600; text-align: right; }
.details-card .btn { display: block; margin-top: 26px; padding: 15px 26px; font-size: 12.5px; }

/* ============================================================
   ENTERTAINERS
   The market has no stage, so the page supplies one: the header is a
   cone of light thrown onto an empty dark field. It is the only dark
   band on the site; everything below it returns to cream.
   ============================================================ */
.stage-head {
  position: relative;
  overflow: hidden;
  /* Contains the -1 layers below, so they sit above this element's own
     background but behind its text. */
  isolation: isolate;
  padding: clamp(72px, 9vw, 124px) 32px clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(76% 60% at 30% 106%, rgba(189, 91, 18, .34), transparent 68%),
    linear-gradient(168deg, #2C1B14 0%, #231F1C 60%, #1A1513 100%);
}

/* The beam. Wider than the section and clipped to a trapezoid so it
   reads as light falling from above rather than a gradient.
   The blur lives on the wrapper and the clip on its ::before, in that
   order — a clip-path applies after a filter, so blurring the clipped
   element directly would leave the cut edges hard. */
.stage-light {
  position: absolute;
  inset: -14% -22% 0;
  z-index: -1;
  pointer-events: none;
  filter: blur(30px);
}
.stage-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(253, 248, 241, .26) 0%,
    rgba(253, 248, 241, .08) 44%,
    transparent 76%
  );
  clip-path: polygon(37% 0, 51% 0, 86% 100%, 2% 100%);
}

/* Grain over the whole band — without it the gradient bands on wide
   screens, and the paper texture ties the header to the rest of the site. */
.stage-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .5;
}

.stage-inner { position: relative; }
.stage-script { font-size: clamp(24px, 3vw, 32px); color: var(--copper-lt); margin-bottom: 4px; }
.stage-title {
  font-size: clamp(52px, 9vw, 104px);
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--cream);
  margin: 0 0 22px;
  text-shadow: 0 0 60px rgba(253, 248, 241, .18);
}
/* Bitter ships here without an italic face, so the emphasis is carried
   by colour instead of a faux-slanted one. */
.stage-title em { font-style: normal; color: var(--copper-lt); }
.stage-lede {
  font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65;
  color: var(--border); margin: 0; max-width: 56ch;
}
.stage-marks {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 32px 0 0; padding: 0;
}
.stage-marks li {
  padding: 9px 18px;
  border: 1px solid rgba(244, 231, 211, .34);
  border-radius: var(--pill);
  background: rgba(244, 231, 211, .05);
  color: var(--tan);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}

/* The house lights come up once, on load. */
@keyframes stage-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes stage-lift { from { opacity: 0; } to { opacity: 1; } }

.stage-inner > * { animation: stage-rise .7s cubic-bezier(.22, .61, .36, 1) backwards; }
.stage-light { animation: stage-lift 1.4s ease .1s backwards; }
.stage-script { animation-delay: .05s; }
.stage-title  { animation-delay: .14s; }
.stage-lede   { animation-delay: .26s; }
.stage-marks  { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .stage-inner > *, .stage-light { animation: none; }
}

/* ---- The bill ------------------------------------------------
   The talents set as a playbill rather than a box of chips: real
   text, centred, between double rules. */
.bill {
  padding: clamp(44px, 5vw, 68px) 32px;
  background: var(--tan);
  border-bottom: 1px solid var(--border);
}
.bill-inner { text-align: center; }
.bill-script { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 18px; }
.bill-list {
  list-style: none; margin: 0; padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 4px 18px;
  border-top: 3px double rgba(166, 93, 48, .45);
  border-bottom: 3px double rgba(166, 93, 48, .45);
}
.bill-list li {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--serif); font-weight: 800; text-transform: uppercase;
  font-size: clamp(16px, 2vw, 25px); line-height: 1.35;
  color: var(--brown);
}
.bill-list li::after {
  content: "";
  width: 7px; height: 7px; flex: none;
  background: var(--copper);
  transform: rotate(45deg);
}
.bill-list li:last-child::after { display: none; }
.bill-note { margin: 18px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--faint-ink); }

/* ---- House rules ---------------------------------------------- */
.rules-section { padding: clamp(56px, 7vw, 84px) 32px; }
.rules-grid { display: grid; grid-template-columns: 1.3fr .95fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.rules-grid h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.08; color: var(--maroon); margin: 0 0 22px; }

.rules-list { list-style: none; margin: 0; padding: 0; }
.rule-row {
  display: grid; grid-template-columns: 74px 1fr; gap: 8px 24px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.rule-row:last-child { border-bottom: 1px solid var(--border); }
.rule-num {
  font-family: var(--serif); font-weight: 800;
  font-size: 46px; line-height: .9;
  color: var(--copper);
  transition: color .25s ease;
}
/* Outlined numerals, filled on hover. Solid copper is the fallback where
   text-stroke is unsupported, so the numeral never disappears. */
@supports (-webkit-text-stroke: 1px currentColor) {
  .rule-num { color: transparent; -webkit-text-stroke: 1.5px var(--copper); }
  .rule-row:hover .rule-num { color: var(--copper); }
}
.rule-row h3 { font-size: 20px; line-height: 1.2; margin: 0 0 10px; }
.rule-row p { font-size: 16.5px; line-height: 1.72; color: var(--muted); margin: 0; }

/* ---- Sign-up card --------------------------------------------- */
.signup-col { position: sticky; top: 96px; }
.signup-box {
  position: relative;
  overflow: hidden;
  background: var(--maroon);
  border: 1px solid rgba(96, 51, 9, .5);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.signup-box::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain); opacity: .35;
  pointer-events: none;
}
.signup-box > * { position: relative; z-index: 1; }
.signup-box h3 { font-size: clamp(24px, 2.4vw, 28px); color: var(--cream); margin: 0 0 12px; line-height: 1.12; }
.signup-box p { font-size: 16px; line-height: 1.6; color: rgba(253, 248, 241, .82); margin: 0 0 24px; }
.signup-actions { display: flex; flex-direction: column; gap: 10px; }

.btn-cream {
  background: var(--cream); color: var(--brown);
  padding: 15px 24px; font-size: 12.5px;
}
.btn-cream:hover { background: var(--tan); color: var(--brown); }
.btn-ghost {
  border: 2px solid rgba(244, 231, 211, .55); color: var(--tan);
  padding: 15px 24px; font-size: 12.5px; font-weight: 600;
}
.btn-ghost:hover { background: rgba(244, 231, 211, .14); color: var(--cream); }

/* ============================================================
   ABOUT
   ============================================================ */
/* Sits under .page-head, so the short top padding — same as .vendor-section. */
.about-section { padding: 72px 32px 56px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.about-grid h2 { font-size: 52px; line-height: 1.02; color: var(--maroon); margin: 0; }
.about-grid .rule-diamond { margin-top: 26px; }
.about-grid .rule-diamond .bar { height: 3px; width: 56px; }

/* Travels with the copy beside it instead of scrolling off and leaving the
   column empty. Same offset as .faq-rail — clears the sticky header. */
.about-rail { position: sticky; top: 104px; }

.about-glance { margin: 34px 0 0; border-top: 1px solid var(--border); }
.about-glance > div {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.about-glance dt { flex: 0 0 82px; }
.about-glance dd {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: 16px; color: var(--ink);
}
.about-copy p { font-size: 19px; line-height: 1.75; color: var(--muted); margin: 0 0 22px; }
.about-copy .btn { margin-top: 10px; padding: 15px 28px; }

/* The strip sits mid-page, above the contact block — no trailing gap. */
.about-photos { padding: 0 32px; }
.about-photos .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.about-photos img {
  width: 100%; height: 220px; object-fit: cover;
  border: 1px solid var(--border); border-radius: var(--radius);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 76px 32px 90px; }
.contact-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr;
  border: 1px solid var(--border); border-radius: var(--radius);
  /* The page headline promises "how to reach us" and this card is the answer,
     so it carries the deeper shadow rather than reading as a footnote. */
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.contact-info { padding: 46px; border-right: 1px solid var(--border); }
.contact-info .script { font-size: 30px; margin-bottom: 4px; }
/* h2, not h1 — the About copy above it owns the page's only h1. */
.contact-info > h2 { font-size: 46px; line-height: 1.05; color: var(--maroon); margin: 0 0 24px; }
.contact-info > p { font-size: 17.5px; line-height: 1.7; color: var(--muted); margin: 0 0 32px; }
.contact-facts { border-top: 1px solid var(--border); }
.contact-fact { padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-fact:last-child { border-bottom: none; }
.contact-fact h3 { font-size: 18px; }
.contact-fact .detail { font-size: 15.5px; color: var(--muted); }
.contact-fact .eyebrow { display: block; margin-bottom: 8px; }

/* Small forward link used under a fact and in the sent panel. The arrow
   travels on hover; the label itself stays put so the line does not reflow. */
.fact-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 10px; font-size: 14.5px; font-weight: 600;
  color: var(--orange-dk);
}
.fact-link span[aria-hidden] { transition: transform .18s ease; }
.fact-link:hover span[aria-hidden] { transform: translateX(4px); }

/* Deep links land here (/contact/ redirects to #contact-form), so clear the
   sticky header instead of tucking the form underneath it. */
.contact-form-side {
  position: relative;
  padding: 46px; background: var(--tan); scroll-margin-top: 80px;
}
/* Same paper grain as the hero, so the panel someone writes a note on reads
   as stock rather than a flat fill. */
.contact-form-side::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .5;
  pointer-events: none;
}
.contact-form-side > * { position: relative; }
.contact-form-side h2 { font-size: 24px; margin-bottom: 26px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
/* .eyebrow's --faint-ink lands at 4.33:1 on tan, under the 4.5:1 line, and
   these are 11px field labels — the one place on the site that cannot afford
   it. Darkened just for this panel. */
.contact-form .eyebrow { color: #6A6057; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 14px;
  /* --border against tan is 1.1:1: the fields had no visible edge at all,
     only their white fill. --field-line clears the 3:1 that WCAG 1.4.11
     asks of a control boundary, against both the panel and the fill. */
  border: 1px solid var(--field-line); background: #FFFFFF;
  font-size: 16px; color: var(--ink); outline: none; border-radius: 12px;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--orange); }
.contact-form .btn { margin-top: 6px; width: 100%; border: none; }

.contact-form .field.has-error input,
.contact-form .field.has-error textarea { border-color: var(--maroon); border-width: 2px; }
.field-error {
  margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--maroon); font-weight: 600;
}

/* Sets expectations in the one moment someone is deciding whether writing in
   is worth it. */
.form-note {
  margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted);
}

/* Stands in for the form while there is no mailer — see 'contact_form' in
   emfm_market(). Centred, because the address is the one thing the panel is
   there to hand over. */
.contact-card { width: 100%; text-align: center; padding: 30px 0; }
.contact-card h2 { font-size: 26px; margin-bottom: 14px; }
.contact-card > p {
  font-size: 16.5px; line-height: 1.7; color: var(--muted);
  margin: 0 auto 26px; max-width: 40ch;
  /* Centred text with a one-word last line looks like a mistake. */
  text-wrap: pretty;
}
.contact-card .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none;
}
/* Spelled out under the button for anyone whose browser opens no mail app —
   the address has to be readable and copyable, not only clickable. */
.contact-card-address {
  display: block; margin-top: 18px;
  font-size: 16px; font-weight: 600; word-break: break-word;
}
.contact-card-address:hover { text-decoration: underline; }
.contact-card .form-note { margin-top: 24px; }

/* The confirmation and the address card are both a fraction of the height of
   the form they replace, so without this they sit at the top of a tall, empty
   tan column. */
.contact-form-side:has(.form-sent),
.contact-form-side:has(.contact-card) { display: flex; align-items: center; }
.form-sent { width: 100%; padding: 56px 8px; text-align: center; }
.form-sent .check {
  width: 56px; height: 56px; margin: 0 auto 22px;
  background: var(--yellow); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 26px;
  color: var(--ink); border-radius: var(--pill);
}
.form-sent h2 { font-size: 26px; margin-bottom: 12px; }
.form-sent p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.form-error {
  background: #FDECEC; border: 1px solid var(--maroon); color: var(--maroon);
  padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5;
  margin-bottom: 18px;
}
.form-error strong { display: block; }
.form-error a { color: var(--deep-red); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; }

/* ============================================================
   DEFAULT CONTENT (fallback pages, posts, blocks)
   ============================================================ */
.default-page { padding: 64px 32px 88px; }
.default-page .entry-title { font-size: 46px; line-height: 1.05; color: var(--maroon); margin: 0 0 28px; }
.entry-content { font-size: 17.5px; line-height: 1.7; color: var(--muted); }
.entry-content h2 { font-size: 32px; color: var(--maroon); margin: 40px 0 16px; }
.entry-content h3 { font-size: 22px; margin: 32px 0 12px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content img { border-radius: var(--radius); }
.post-list-item { padding: 26px 0; border-bottom: 1px solid var(--border); }
.post-list-item h2 { font-size: 26px; margin-bottom: 8px; }
.post-list-item h2 a { color: var(--ink); }
.post-list-item h2 a:hover { color: var(--maroon); }

/* ============================================================
   MARKET MAP
   Booth tracker page. Namespaced .map-* — note that .booth-card and
   .booth-grid belong to the homepage marketing section and are
   unrelated to this.
   ============================================================ */

/* The "last confirmed a while ago" line. The map page carries its own copy of
   this on the placard; this rule is what This Week uses. */
.map-caveat { font-size: 14px; color: var(--copper); margin: 6px 0 0; }

/* ---- The placard header --------------------------------------
   This page answers one question — is there a market, and who is at
   it — so the answer is set as a park sign at the top of it rather
   than as a line of grey text below the fold. Type on the left, the
   live state on a board to the right.
   -------------------------------------------------------------- */
.map-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 5vw, 72px) 32px clamp(48px, 5.5vw, 76px);
  border-bottom: 1px solid var(--border);
}

/* Morning sun off the east side of the park — the same light as the
   home page hero, angled the other way so the two aren't twins. */
.map-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 62% at 88% 8%, rgba(250, 215, 95, .32), transparent 66%),
    radial-gradient(46% 56% at 6% 92%, rgba(166, 93, 48, .13), transparent 64%);
}
.map-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: var(--grain);
}

.map-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: clamp(32px, 4vw, 58px);
  align-items: center;
}

.map-head h1 {
  font-size: clamp(40px, 5.9vw, 78px);
  line-height: .97;
  letter-spacing: -.015em;
  color: var(--maroon);
  margin: 0 0 22px;
  max-width: 12ch;
  text-wrap: balance;
}
/* The site's one handwritten word per headline. */
.map-head h1 em {
  display: inline-block;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.02em;
  text-transform: none;
  letter-spacing: 0;
  color: var(--orange-dk);
  transform: rotate(-2deg);
  padding: 0 .04em;
}
.map-head .script { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; margin-bottom: 4px; }
.map-head .rule-diamond { margin-bottom: 22px; }
.map-head .lede { max-width: 47ch; }
.map-head-jump { margin: 24px 0 0; }
.map-head-jump .jump-arrow { transition: transform .22s cubic-bezier(.22, .61, .36, 1); }
.map-head-jump .jump-link:hover .jump-arrow { transform: translate(3px, -3px); }

/* ---- The board itself ----------------------------------------- */
.map-placard {
  position: relative;
  overflow: hidden;
  padding: 26px 30px 28px;
  background: linear-gradient(158deg, #2C2521 0%, var(--ink) 62%, #1A1513 100%);
  border-radius: 18px;
  /* The second shadow is the edge of the sheet under it — the same printed
     layering as the hero's offset frame, without a second element. */
  box-shadow:
    0 14px 34px rgba(35, 31, 28, .28),
    11px 11px 0 -1px rgba(166, 93, 48, .3);
  transform: rotate(1.2deg);
}
.map-placard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .34;
}
.map-placard > * { position: relative; }

.placard-rose {
  position: absolute;
  top: 50%;
  right: -52px;
  width: 216px;
  height: 216px;
  transform: translateY(-50%) rotate(-8deg);
  color: var(--copper-lt);
  opacity: .11;
  pointer-events: none;
}

.placard-label { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.placard-label .script { font-size: 23px; line-height: 1.15; color: var(--yellow); }

.placard-value {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
  color: #FFF8EA;
  margin: 0 0 8px;
}
.placard-meta { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(244, 231, 211, .8); }

/* Open right now gets the heartbeat; every other state stays still —
   matching the status card on the home page. */
.map-placard .status-dot { background: var(--yellow); }
.map-placard.is-open .status-dot {
  background: #8FC46E;
  animation: status-pulse 2.4s ease-out infinite;
}
.map-placard.is-closed .status-dot { background: var(--faint); }

/* Side by side and close together — the two figures are read against each
   other ("43 of the 100"), so spreading them to the card's edges breaks the
   comparison. */
.placard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 46px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 231, 211, .2);
}
.placard-stats dt {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 231, 211, .68);
  margin-bottom: 4px;
}
.placard-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--yellow);
}

/* Nothing posted yet is a waiting figure, not a zero — dimmed so it doesn't
   read as a number in its own right. */
.placard-stats dd.is-pending { color: rgba(244, 231, 211, .45); }

.placard-foot { margin: 16px 0 0; font-size: 13px; color: rgba(244, 231, 211, .66); }
.placard-caveat { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--copper-lt); }

/* The board is raised on arrival, once. */
@keyframes map-head-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes map-placard-set {
  from { opacity: 0; transform: translateY(22px) rotate(4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(1.2deg); }
}

.map-head-copy > * { animation: map-head-rise .68s cubic-bezier(.22, .61, .36, 1) backwards; }
.map-head-copy > .script      { animation-delay: .04s; }
.map-head-copy > h1           { animation-delay: .12s; }
.map-head-copy > .rule-diamond{ animation-delay: .22s; }
.map-head-copy > .lede        { animation-delay: .3s; }
.map-head-copy > .map-head-jump { animation-delay: .38s; }
.map-placard { animation: map-placard-set .8s cubic-bezier(.22, .61, .36, 1) .18s backwards; }

@media (prefers-reduced-motion: reduce) {
  .map-head-copy > *, .map-placard { animation: none; }
  .map-placard .status-dot { animation: none; }
  .map-head-jump .jump-arrow { transition: none; }
}

/* The board keeps its column longer than the map keeps its list: two figures
   and four short lines still fit beside the headline at tablet width, and
   stacking early leaves half the band empty. */
@media (max-width: 880px) {
  .map-head-grid { grid-template-columns: 1fr; gap: 38px; }
  .map-head h1 { max-width: 15ch; }
  .map-head .lede { max-width: 58ch; }
  .map-placard { max-width: 460px; }
}

.market-map { padding: 36px 32px 88px; }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

/* Nothing to sit beside once the list is gone, so the map takes the width. */
.map-layout.is-solo { grid-template-columns: minmax(0, 1fr); }
.map-layout.is-solo .map-canvas-wrap { position: static; }
.map-layout.is-solo .map-list-wrap { max-width: 640px; }

.map-canvas-wrap { position: sticky; top: 20px; }
.map-canvas {
  height: 560px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tan);
  /* Same printed layering as the placard: the aerial reads as a photograph
     laid on the page rather than a pane cut into it. */
  box-shadow:
    var(--shadow-lg),
    12px 12px 0 -1px rgba(166, 93, 48, .16);
}
.map-noscript {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tan);
}

.map-canvas-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 16px;
}

/* Colour key. The map is the only place a category is carried by colour
   alone, so the key belongs directly under it. */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--faint-ink);
}
.map-key {
  flex: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid #FFFFFF;
  border-radius: var(--pill);
  background: var(--faint-ink);
  box-shadow: 0 1px 3px rgba(35, 31, 28, .3);
}

.map-skip { margin: 0; font-size: 13px; }
/* Only pushed to the far edge when there is a key for it to sit opposite. */
.map-legend + .map-skip { margin-left: auto; }
.map-skip a { color: var(--faint-ink); }
.map-skip a:focus { color: var(--maroon); }

/* Pins. Colour follows vendor category, but the category and status are always
   spelled out in the popup and the list too — colour is never the only signal. */
.map-pin,
.map-row-booth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 2px solid #FFFFFF;
  border-radius: var(--pill);
  background: var(--faint-ink);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(35, 31, 28, .35);
}
.map-pin-farmer       { background: var(--green); }
.map-pin-food-artisan { background: var(--orange); }
.map-pin-food-truck   { background: var(--maroon); }
.map-pin-non-food     { background: var(--purple); }
.map-pin-non-profit   { background: var(--copper); }
.map-pin-youth        { background: var(--yellow); color: var(--ink); }
.map-pin-unknown      { background: var(--brown); }
.map-pin-empty        { background: #FFFFFF; color: var(--faint-ink); border-color: var(--faint-ink); box-shadow: none; }

.map-pin.is-noshow  { opacity: .5; text-decoration: line-through; }
.map-pin.is-soldout { background: #FFFFFF; color: var(--ink); border-color: var(--ink); }
.map-pin.is-packing { border-style: dashed; }

/* On the map, the marker box is zero-sized and sits exactly on the booth; the
   pin is centred over it with a transform. That is what lets the zoom rules
   below resize a pin without sliding it off its spot. Booths are only ~12 ft
   apart, so at zoom 19 a full-size pin would swallow its neighbours. */
.map-pin-wrap { width: 0 !important; height: 0 !important; overflow: visible; }

.map-pin {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  border-width: 1.5px;
  font-size: 9px;
}
.map-canvas.is-z17 .map-pin,
.map-canvas.is-z18 .map-pin {
  min-width: 11px; height: 11px; padding: 0; border-width: 1px;
  font-size: 0; /* Too tight to letter — the pin becomes a dot. */
}
.map-canvas.is-z19 .map-pin { min-width: 20px; height: 20px; padding: 0 3px; border-width: 1.5px; font-size: 9px; }
.map-canvas.is-z20 .map-pin { min-width: 28px; height: 28px; padding: 0 5px; border-width: 2px; font-size: 11px; }
.map-canvas.is-z21 .map-pin { min-width: 36px; height: 36px; padding: 0 6px; border-width: 2px; font-size: 13px; }

.map-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 0 3px var(--yellow), 0 2px 8px rgba(35, 31, 28, .4);
  z-index: 500;
}
/* A selected pin always shows its number, however far out you are. */
.map-canvas.is-z17 .map-pin.is-selected,
.map-canvas.is-z18 .map-pin.is-selected { min-width: 20px; height: 20px; padding: 0 3px; font-size: 9px; }

/* Named areas (food truck row and the like). Labels, not booths. */
.map-zone {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: rgba(35, 31, 28, .72);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-popup { font-family: var(--sans); }
.map-popup strong { display: block; font-family: var(--serif); font-size: 16px; color: var(--maroon); }
.map-popup-photo {
  height: 110px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: var(--tan) center/cover no-repeat;
}
.map-popup-meta { margin: 4px 0 0; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint-ink); }
.map-popup-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.map-popup-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--orange); }

.map-locate a { font-size: 18px; line-height: 30px; text-align: center; }
.map-here { fill: #2C7BE5; fill-opacity: 1; stroke: #FFFFFF; stroke-width: 3; }
.map-accuracy { fill: #2C7BE5; fill-opacity: .12; stroke: #2C7BE5; stroke-opacity: .35; stroke-width: 1; }

.map-list-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--maroon);
}
.map-count { font-family: var(--script); font-size: 19px; color: var(--copper); }

.map-list { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow-y: auto; }
.map-row + .map-row { border-top: 1px solid var(--border); }
.map-row-btn {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
}
.map-row-btn:hover { background: var(--tan); }
.map-row-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.map-row.is-selected .map-row-btn { background: var(--tan); box-shadow: inset 3px 0 0 var(--orange); }
.map-row-booth { flex: 0 0 auto; box-shadow: none; }
.map-row-body { display: block; min-width: 0; }
.map-row-name { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.map-row-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.map-row-cat, .map-row-status {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint-ink);
}
.map-row-status { font-weight: 700; color: var(--copper); }
.map-row-status.is-noshow { color: var(--deep-red); }
.map-row-note {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.map-placeholder {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--tan);
  color: var(--muted);
}
.map-placeholder p { margin: 0 0 10px; }
.map-placeholder p:last-child { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* The home page carries its own breakpoints — see HOME. */
@media (max-width: 1080px) {
  .vendor-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .setup-grid, .rules-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Stacked, the rail has nothing to stay level with. */
  .about-rail { position: static; }
  .about-glance { max-width: 420px; }
  .page-head-split .wrap { grid-template-columns: 1fr; gap: 36px; }
  .page-head-split { padding-bottom: 44px; }
  /* Full width, the photo becomes a 3:1 letterbox and there is nothing left
     of the picture but a stripe. Hold it near its own proportions instead. */
  .page-head-figure { max-width: 560px; }
  .page-head-figure img { height: 360px; }
  /* Stacked, the sign-up card has nothing left to stick beside, and a
     full-width card stretches its two buttons past reading width. */
  .signup-col { position: static; max-width: 560px; }
  .about-photos .grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-canvas-wrap { position: static; }
  .map-list { max-height: none; }
}

/* The primary menu now runs to seven items; below this it no longer fits
   on one line and pushes the page into a horizontal scroll. */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-header .bar { flex-wrap: wrap; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav a { padding: 12px 4px; font-size: 13px; border-bottom: 1px solid var(--border); }
  .site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--orange); }
  .site-nav ul ul { position: static; display: flex; border: none; box-shadow: none; padding: 0 0 0 14px; }
  .site-nav .nav-cta { margin: 14px 0 0; display: block; text-align: center; }
}

@media (max-width: 700px) {
  .steps, .types, .setup, .rules-section, .about-section, .contact-section,
  .vendor-section, .market-map, .page-head, .map-head, .stage-head, .bill { padding-left: 20px; padding-right: 20px; }
  .map-canvas { height: min(62vh, 460px); }
  /* At this width the tilt costs more room than it earns, and the offset
     sheet under the card would run off the screen. */
  .map-placard {
    transform: none;
    box-shadow: 0 10px 26px rgba(35, 31, 28, .26);
    animation: map-head-rise .68s cubic-bezier(.22, .61, .36, 1) .18s backwards;
  }
  .placard-rose { width: 152px; height: 152px; right: -30px; }
  .map-canvas { box-shadow: var(--shadow-lg); }
  .about-photos { padding-left: 20px; padding-right: 20px; }
  .vendor-grid { grid-template-columns: 1fr; }
  .section-title, .types h2 { font-size: 30px; }
  .page-head h1 { font-size: 38px; }
  .hero-band h1 { font-size: 40px; }
  .hero-band .inner { padding: 56px 20px; }
  /* The beam is too narrow to read at phone width, so it widens and the
     numeral column collapses above its text. */
  .stage-light::before { clip-path: polygon(24% 0, 62% 0, 100% 100%, -14% 100%); }
  .rule-row { grid-template-columns: 1fr; gap: 6px; }
  .rule-num { font-size: 34px; }
  .about-grid h2 { font-size: 40px; }
  .about-section { padding-top: 48px; }
  .page-head-figure img { height: 260px; }
  .about-photos .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info, .contact-form-side { padding: 30px 24px; }
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 26px; }
  .season-pill.is-week { margin-left: 0; }
  .site-footer { padding: 44px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .type-head { flex-wrap: wrap; gap: 12px; }
}
