/* TownCause site styles */
:root {
  --cream: #FAF9F6;
  --navy: #1B2A4A;
  --navy-light: #2B3E66;
  --coral: #BF4B2A;
  --coral-dark: #8A3A22;
  --coral-bg: #FBEDE7;
  --sage: #3F5E51;
  --sage-bg: #EDF3F0;
  --date-bg: #F3EFE6;
  --line: #E5E2DA;
  --text: #374151;
  --muted: #4B5563;
  --muted-2: #5B6474;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--coral); }
a:hover { color: var(--coral-dark); }
img { max-width: 100%; }

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

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.brand-city { font-size: 13px; font-weight: 700; color: var(--coral-dark); background: var(--coral-bg); padding: 4px 10px; border-radius: 999px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--coral); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; font: inherit; font-size: 16px; font-weight: 700; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border: 1px solid #C9C4B8; }
.btn-light:hover { border-color: var(--navy); color: var(--navy); }
.nav .btn { min-height: 44px; font-size: 15px; padding: 0 18px; color: #fff; white-space: nowrap; }

/* Hero */
.hero { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; padding-top: 64px; padding-bottom: 56px; }
.hero-main { flex: 1 1 480px; min-width: 0; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
h1 { margin: 0 0 18px; font-family: var(--serif); font-weight: 700; font-size: 52px; line-height: 1.08; letter-spacing: -0.01em; max-width: 880px; }
.lede { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.signup { max-width: 520px; }
.signup iframe { width: 100%; border: 0; min-height: 60px; }
.signup-note { margin: 14px 0 0; font-size: 14px; color: var(--muted-2); }
.signup-note a { font-weight: 700; }
.signup-placeholder { padding: 16px; border: 2px dashed #C9C4B8; border-radius: 12px; font-size: 14px; color: var(--muted); background: #fff; }
.trust { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 560px; }

.issue-card { flex: 1 1 340px; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 32px rgba(27, 42, 74, 0.08); }
.issue-card-head { background: var(--navy); color: #fff; padding: 18px 24px; }
.issue-card-head .name { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.issue-card-head .meta { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #C9D1E0; }
.issue-card-body { padding: 22px 24px 24px; }
.issue-card-body .label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.issue-card-body .title { margin: 0 0 16px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.issue-card-body ul { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--text); }
.issue-card-body li { display: flex; gap: 10px; }
.issue-card-body li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 999px; background: var(--coral); }
.issue-card-body a { font-size: 15px; font-weight: 700; text-decoration: none; }

/* Events */
.events { padding-top: 8px; padding-bottom: 64px; }
.events-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.2; }
.events-head p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid #D6D1C6; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); font-weight: 700; }
.groups { display: flex; flex-direction: column; gap: 32px; }
.group h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-dark); }
.group-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.event-row { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--navy); transition: border-color 0.15s, box-shadow 0.15s; }
.event-row:hover { color: var(--navy); border-color: rgba(27, 42, 74, 0.35); box-shadow: 0 6px 18px rgba(27, 42, 74, 0.08); }
.date-block { flex: none; width: 64px; text-align: center; background: var(--date-bg); border-radius: 12px; padding: 8px 0; }
.date-block .dow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--coral-dark); }
.date-block .day { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.15; }
.date-block .mon { font-size: 11px; font-weight: 600; color: var(--muted-2); }
.event-body { flex: 1 1 auto; min-width: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tag { font-size: 12px; font-weight: 600; color: var(--sage); background: var(--sage-bg); padding: 3px 10px; border-radius: 999px; }
.tag-accent { font-weight: 700; color: var(--coral-dark); background: var(--coral-bg); }
.tag-sample { font-weight: 700; color: #6B4E00; background: #FFF3C4; }
.event-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.25; }
.event-meta { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.event-go { flex: none; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--coral); }
.empty { margin: 0; font-size: 16px; color: var(--muted); }

/* Submit band */
.band { background: var(--navy); color: #fff; border-radius: 20px; padding: 32px 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 64px; }
.band h2 { font-size: 26px; margin-bottom: 6px; }
.band p { margin: 0; font-size: 16px; line-height: 1.55; color: #D5DBE7; }
.band .btn { background: #fff; color: var(--navy); }
.band .btn:hover { background: var(--cream); color: var(--navy); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer .who { margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.site-footer p { margin: 0; line-height: 1.55; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: var(--navy); font-weight: 600; }

/* Event page */
.event-page { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; margin-bottom: 12px; }
.event-page h1 { font-size: 40px; margin: 12px 0 8px; }
.event-org { margin: 0 0 24px; font-size: 17px; font-weight: 600; color: var(--coral-dark); }
.facts { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.45; margin-bottom: 20px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact svg { flex: none; margin-top: 2px; }
.event-desc { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--text); }
.checked { margin: 0 0 24px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sage); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.actions .btn { flex: 1 1 200px; }
.cal-links { display: none; gap: 16px; flex-wrap: wrap; margin: 0 0 28px; font-size: 15px; font-weight: 700; }
.cal-links.open { display: flex; }
.cal-links a, .cal-links button { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--coral); cursor: pointer; text-decoration: underline; }
.organizer-link { margin: 0 0 28px; font-size: 15px; }
.mini-signup { background: var(--navy); color: #fff; border-radius: 16px; padding: 20px; }
.mini-signup h2 { font-size: 20px; margin-bottom: 10px; }
.mini-signup .signup-placeholder { background: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* Simple text pages */
.text-page { max-width: 720px; margin: 0 auto; padding: 40px 24px 64px; font-size: 16px; line-height: 1.7; color: var(--text); }
.text-page h1 { font-size: 40px; color: var(--navy); }
.text-page h2 { font-size: 22px; margin: 32px 0 8px; color: var(--navy); }

/* Phone */
@media (max-width: 760px) {
  .nav .nav-link, .btn-extra { display: none; }
  .nav .btn { padding: 0 14px; font-size: 14px; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; font-size: 18px; }
  .brand-city { font-size: 11px; padding: 3px 8px; }
  .hero { padding-top: 28px; padding-bottom: 24px; gap: 32px; }
  h1 { font-size: 32px; line-height: 1.12; }
  .lede { font-size: 16px; }
  h2 { font-size: 26px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 0 24px 4px; width: calc(100% + 48px); }
  .chip { flex: none; }
  .event-row { gap: 14px; padding: 14px; align-items: flex-start; }
  .date-block { width: 52px; padding: 6px 0; }
  .date-block .day { font-size: 22px; }
  .event-title { font-size: 17px; }
  .event-meta { font-size: 13px; }
  .event-go { display: none; }
  .band { padding: 22px 20px; }
  .band .btn { width: 100%; }
  .event-page h1, .text-page h1 { font-size: 30px; }
}
