/* Local Gems — site styles */
:root {
  --forest: #2F4A3A;
  --ink: #1B2620;
  --muted: #55605A;
  --sage-50: #EEF3EE;
  --sage-100: #DCE6DC;
  --cream: #F6F1EA;
  --blush: #FBE7DB;
  --copper: #E08E5F;
  --copper-dark: #B25E35;
  --clay-text: #9A4A22;
  --line: #E3E9E3;
  --radius: 22px;
  --shadow: 0 4px 14px rgba(27, 38, 32, .05);
  --shadow-lift: 0 22px 48px rgba(27, 38, 32, .13);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #FFFFFF; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--forest); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* Top bar */
.topbar { background: var(--forest); color: #E6EEE6; font-size: 13px; text-align: center; padding: 10px 16px; }
.topbar a { color: #F2B38F; font-weight: 600; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--body); font-weight: 600; font-size: 23px; letter-spacing: -0.025em; }
.city-pill { font-size: 12px; font-weight: 600; color: var(--forest); background: var(--sage-50); padding: 4px 10px; border-radius: 999px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--forest); text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--forest); color: #FFFFFF !important; }
.btn-primary:hover { background: var(--ink); }
.btn-copper { background: var(--copper); color: var(--ink) !important; }
.btn-copper:hover { background: #D07B4B; }
.btn-ghost { border-color: #6E8574; color: #FFFFFF !important; }
.btn-outline { border-color: var(--forest); color: var(--forest) !important; background: #FFFFFF; }
.nav .btn { min-height: 44px; padding: 10px 20px; }

/* Hero */
.hero { max-width: 920px; margin: 0 auto; padding: 48px 32px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.badge { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--blush); padding: 8px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 0.98; font-weight: 800; letter-spacing: -0.04em; }
.hero h1 span { color: #4F7357; }
.hero p { margin: 0; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.search { width: 100%; max-width: 680px; display: flex; flex-wrap: wrap; gap: 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 32px; padding: 8px; box-shadow: 0 12px 32px rgba(27, 38, 32, .08); }
.search label { flex: 2 1 220px; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.search label + label { flex: 1 1 150px; border-left: 1px solid var(--line); }
.search input { border: 0; outline: 0; font: inherit; font-size: 15px; width: 100%; padding: 12px 0; background: transparent; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--forest); border-color: var(--forest); color: #FFFFFF; }

/* Moving category tiles */
.marquee { padding: 20px 0 72px; display: flex; flex-direction: column; gap: 18px; }
.track { display: flex; gap: 18px; width: max-content; padding-left: 18px; }
.track-left { animation: scrollLeft 65s linear infinite; }
.track-right { animation: scrollRight 75s linear infinite; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .marquee { overflow-x: auto; } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 230px; height: 160px; border-radius: var(--radius); padding: 18px; text-decoration: none; overflow: hidden; box-shadow: 0 6px 18px rgba(27, 38, 32, .07), inset 0 1px 0 rgba(255, 255, 255, .7); transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile .shape { position: absolute; pointer-events: none; }
.tile .meta, .tile .tname { position: relative; }
.tile .meta { font-size: 12px; font-weight: 600; opacity: .85; }
.tile .tname { font-family: var(--display); font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.tag-trending { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--copper); padding: 4px 8px; border-radius: 6px; }

/* Sections */
.section { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 26px; }
.section-head h2 { font-size: 36px; font-weight: 800; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay-text); margin-bottom: 8px; }
.grid { display: grid; gap: 16px; }
.grid-occasions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid-areas { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.occasion { text-decoration: none; color: var(--ink); border-radius: var(--radius); padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; transition: transform .25s ease, box-shadow .25s ease; }
.occasion:hover, .area:hover, .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.occasion strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; }
.occasion span { font-size: 13px; color: #45504A; }
.band { background: var(--cream); }
.card { background: #FFFFFF; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid #EEF1EE; transition: transform .25s ease, box-shadow .25s ease; }
.card-photo { height: 210px; background: var(--sage-100); position: relative; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.checked { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--forest); background: rgba(255, 255, 255, .94); padding: 6px 10px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 700; color: var(--clay-text); text-transform: uppercase; letter-spacing: .05em; }
.card-body h3 { font-size: 21px; letter-spacing: -0.01em; }
.card-sub { margin: 0; font-size: 14px; color: var(--muted); }
.empty-invite { grid-column: 1 / -1; border: 1px dashed #C9D8CA; border-radius: var(--radius); padding: 40px; text-align: center; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-invite p { margin: 0; color: var(--muted); max-width: 520px; }
.area { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.area strong { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; }
.area .boroughs { font-size: 14px; color: var(--muted); }
.area .count { font-size: 14px; font-weight: 600; color: var(--forest); }
.story { display: flex; flex-wrap: wrap; border-radius: 28px; overflow: hidden; background: var(--sage-50); }
.story-art { flex: 1 1 420px; min-height: 320px; background: var(--sage-100); display: flex; align-items: center; justify-content: center; }
.story-text { flex: 1 1 420px; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.story-text h2 { font-size: 40px; line-height: 1.05; font-weight: 800; }
.story-text p { margin: 0; font-size: 16px; line-height: 1.7; color: #45504A; }
.join-panel { background: var(--forest); color: #FFFFFF; border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.join-panel h2 { font-size: 44px; line-height: 1.02; font-weight: 800; }
.join-panel h2 span { color: #F2B38F; }
.join-panel p { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: #D3DDD5; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 32px; text-align: center; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 8px; }

/* Category page */
.page-head { padding: 28px 0 8px; }
.page-head .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.crumbs { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
.page-head p.lead { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding: 24px 0 80px; }
.filters { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 26px; background: var(--cream); border: 1px solid #EFE6DA; border-radius: var(--radius); padding: 24px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.filters legend { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pill { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; min-height: 44px; border-radius: 12px; cursor: pointer; text-align: left; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
.pill[aria-pressed="true"] { background: var(--forest); color: #FFFFFF; border-color: var(--forest); }
.pill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--forest); }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.results-bar p { margin: 0; color: var(--muted); }
select { font: inherit; font-size: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; color: var(--ink); min-height: 44px; }
.listing { display: flex; flex-wrap: wrap; border: 1px solid #EBEFEC; border-radius: var(--radius); overflow: hidden; background: #FFFFFF; box-shadow: var(--shadow); }
.listing-photo { flex: 0 0 220px; min-height: 180px; background: var(--sage-100); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-body { flex: 1 1 320px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.listing-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.listing-top h2 { font-size: 22px; letter-spacing: -0.01em; }
.price { font-size: 15px; font-weight: 700; color: var(--forest); }
.facts { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.listing-body p.blurb { margin: 0; font-size: 15px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; color: var(--forest); background: var(--sage-50); padding: 5px 10px; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.actions a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.actions a.primary { background: var(--forest); color: #FFFFFF; border-color: var(--forest); }

/* Join page */
.form-card { max-width: 720px; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #CBD5CD; border-radius: 12px; background: #FFFFFF; color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); }
.form-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 auto 32px; max-width: 980px; }
.benefit { background: var(--sage-50); border-radius: var(--radius); padding: 22px; }
.benefit strong { display: block; font-family: var(--display); font-size: 19px; margin-bottom: 4px; }
.benefit span { font-size: 14px; color: #45504A; }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .search { border-radius: 20px; }
  .search label + label { border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { width: 100%; }
  .section-head h2 { font-size: 30px; }
  .story-text, .join-panel { padding: 32px; }
  .join-panel h2, .story-text h2 { font-size: 32px; }
  .filters { max-width: none; }
  .listing-photo { flex-basis: 100%; height: 200px; }
  .form-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
}
