/* Forest City AI: shared styles. No build step.
   The look is the "Town seal": a warm white ground, charcoal type, and the
   gold FC AI seal leading a centred, civic homepage.
   Contrast: gold #C9A24B is for fills only (2.3:1 on white). Use --gold-lg
   for large text (3.1:1) and --gold-text for small text (5.6:1). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
:root {
  --ink: #1E2126;
  --ink-2: #2B2F36;
  --ink-soft: #4A4F58;
  --gold: #C9A24B;       /* fills only: 2.3:1 on white */
  --gold-lg: #B08A2E;    /* large text on white */
  --gold-text: #85641A;  /* small text on white */
  --white: #FDFBF6;
  --tint: #F5EFE1;
  --line: #E4DCC8;
  --max: 1160px;
  --pad: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-stretch: 88%; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-weight: 800; }
h2 { font-weight: 760; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-lg); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip-link:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo { border: 1.5px dashed currentColor; border-radius: 4px; padding: 0 .35em; font-size: .92em; opacity: .85; white-space: normal; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 18px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; font-size: 1.15rem; font-stretch: 88%; letter-spacing: -0.01em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 720; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #D6B25F; transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.link { font-weight: 650; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 680; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--gold-text); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { content: "\2212"; background: var(--gold); color: var(--ink); }
.faq .answer { padding: 0 44px 22px 0; color: var(--ink-soft); }

/* Footer */
.foot { background: var(--ink); color: #D9D4C7; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 44px var(--pad); display: grid; gap: 20px; }
.foot .brand { color: var(--white); }
.foot ul { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot p { font-size: .92rem; color: #A9A497; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Homepage: Town seal */

.nav { border-bottom: 1px solid var(--line); max-width: none; }

.hero { max-width: 900px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--pad) clamp(56px, 8vw, 104px); text-align: center; display: grid; justify-items: center; gap: 26px; }
.hero-seal { width: clamp(132px, 18vw, 190px); filter: drop-shadow(0 14px 28px rgba(133,100,26,.22)); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); max-width: 15ch; }
.when { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; font-weight: 680; }
.when span { padding: 8px 18px; }
.when span + span { border-left: 1.5px solid var(--ink); }
.when span:first-child { background: var(--gold); }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 58ch; }
.hero .cta { justify-content: center; }
.venue { font-size: .95rem; color: var(--ink-soft); }

.sec { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--pad); }
.sec-tint { max-width: none; background: var(--tint); }
.sec-tint > * { max-width: calc(var(--max) - 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.sec-head { text-align: center; display: grid; justify-items: center; gap: 16px; max-width: 760px; margin: 0 auto 52px; }
.sec-head p { color: var(--ink-soft); font-size: 1.1rem; }
.ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold); box-shadow: 0 0 0 5px var(--white), 0 0 0 6.5px var(--gold); }
.sec-tint .ring { box-shadow: 0 0 0 5px var(--tint), 0 0 0 6.5px var(--gold); }

.three { display: grid; gap: 22px; }
.three li { border-top: 3px solid var(--gold); padding-top: 22px; }
.three h3 { margin-bottom: 8px; }
.three p { color: var(--ink-soft); }

.band { background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 112px) var(--pad); }
.band-in { max-width: 820px; margin: 0 auto; text-align: center; display: grid; gap: 24px; justify-items: center; }
.band h2 { color: var(--white); }
.band h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin: 22px auto 0; }
.band p { color: #D9D4C7; font-size: 1.1rem; }
.band .ticks { text-align: left; display: grid; gap: 14px; margin: 8px 0; }
.band .ticks li { position: relative; padding-left: 38px; }
.band .ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); }
.band .ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.band .quiet { font-size: .98rem; color: #A9A497; max-width: 60ch; }

.clock { display: grid; gap: 18px; counter-reset: c; }
.clock li { background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: 26px 24px; text-align: center; display: grid; gap: 8px; justify-items: center; align-content: start; }
.time { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold); font-weight: 780; font-size: 1.15rem; font-stretch: 85%; margin-bottom: 8px; }
.clock p { color: var(--ink-soft); }

.topics { display: grid; gap: 14px; max-width: 760px; margin: 0 auto !important; }
.topic { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; background: var(--white); border-radius: 14px; padding: 20px 24px; border-left: 6px solid var(--gold); }
.t-date { font-weight: 700; color: var(--gold-text); min-width: 7ch; }
.t-name { font-weight: 650; }

.steps { display: grid; gap: 22px; }
.steps li { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 8px 12px; }
.steps .n { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold); }
.steps p { color: var(--ink-soft); }
.founding { text-align: center; max-width: 640px; margin: 40px auto 0; color: var(--ink-soft); }

#faq .faq { max-width: 780px; margin: 0 auto; }

.finale { background: var(--ink); color: var(--white); text-align: center; padding: clamp(64px, 9vw, 112px) var(--pad); display: grid; justify-items: center; gap: 20px; }
.finale img { width: 108px; }
.finale h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.finale p { max-width: 52ch; font-size: 1.12rem; color: #D9D4C7; }
.finale .btn-dark { background: var(--gold); color: var(--ink); }
.finale .btn-dark:hover { background: #D6B25F; }
.finale + * , .foot { border-top: 1px solid #343840; }

.foot-in { justify-items: center; text-align: center; }
.foot ul { justify-content: center; }

@media (min-width: 760px) {
  .three { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .clock { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 559px) {
  .when { flex-direction: column; border-radius: 16px; width: 100%; max-width: 300px; }
  .when span + span { border-left: 0; border-top: 1.5px solid var(--ink); }
}

/* Shared helpers */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(253, 251, 246, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.measure { max-width: 62ch; }
.muted { color: var(--ink-soft); }
.sr-note { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.foot-tag { color: var(--gold); font-weight: 650; }
.foot a { color: var(--white); }
.foot .todo { color: var(--white); }
.foot :focus-visible, .band :focus-visible, .finale :focus-visible { outline-color: var(--gold); }
.btn { border: 0; font: inherit; font-weight: 720; cursor: pointer; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--tint); }

/* Subpages */
.page { padding: clamp(40px, 7vw, 80px) var(--pad) clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 760px; margin: 0 auto; }
.page h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin-bottom: 20px; text-wrap: balance; }
.page h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 22px; }
.page h2 { font-size: 1.4rem; margin: 40px 0 10px; line-height: 1.15; }
.page p { margin-bottom: 1em; }
.page ul:not([class]) { list-style: disc; padding-left: 1.2rem; max-width: 62ch; }
.page ul:not([class]) li::marker { color: var(--gold-lg); }
.page li { margin-bottom: .5rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.center { text-align: center; }
.center .measure { margin-left: auto; margin-right: auto; }
.center .cta-row { justify-content: center; }
.center h1 { margin-left: auto; margin-right: auto; }
.center h1::after { margin-left: auto; margin-right: auto; }
.confirm-mark { width: 120px; margin: 0 auto 24px; filter: drop-shadow(0 12px 24px rgba(133,100,26,.22)); }

.numbered { counter-reset: n; margin-top: 24px; }
.numbered li { counter-increment: n; position: relative; padding: 0 0 22px 60px; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 800; box-shadow: 0 0 0 3px var(--white), 0 0 0 4.5px var(--gold); }
.callout { margin-top: 16px; padding: 22px 26px; background: var(--ink); color: var(--white); border-radius: 16px; border-left: 6px solid var(--gold); }
.callout a { color: var(--gold); }

/* Form */
.join-form { margin-top: 32px; background: var(--tint); border-radius: 20px; padding: clamp(22px, 4vw, 40px); border-top: 6px solid var(--gold); }
.field { position: relative; margin-bottom: 24px; }
.field label { display: block; font-weight: 680; margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .9em; }
.hint { font-size: .93rem; color: var(--ink-soft); margin: 0 0 6px; }
.join-form input[type="text"], .join-form input[type="email"], .join-form select, .join-form textarea {
  width: 100%; background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid #B9B2A0; border-radius: 10px;
}
.join-form textarea { min-height: 7.5rem; resize: vertical; }
.join-form input:focus-visible, .join-form select:focus-visible, .join-form textarea:focus-visible { outline: 3px solid var(--gold-lg); outline-offset: 1px; border-color: var(--ink); }
.join-form [aria-invalid="true"] { border-color: #A3331F; border-width: 2px; }
.counter { font-size: .85rem; color: var(--ink-soft); text-align: right; margin: 4px 0 0; }
.error { color: #A3331F; font-size: .95rem; font-weight: 600; margin: 6px 0 0; }
.error[hidden] { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .25rem; flex: none; accent-color: var(--ink); }
.check label { font-weight: 400; margin: 0; }
.check-body { flex: 1; }
.error-summary { border: 2px solid #A3331F; border-radius: 14px; padding: 16px 20px; margin-top: 24px; background: #FBEDE8; }
.error-summary[hidden] { display: none; }
.error-summary h2 { color: #A3331F; font-size: 1.1rem; margin: 0 0 8px; }
.error-summary ul { list-style: disc; padding-left: 1.2rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px; }
.draft-note { font-size: .88rem; color: var(--ink-soft); }
.draft-note[hidden] { display: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; cursor: pointer; }
.form-error { color: #A3331F; margin-top: 16px; }

@media (max-width: 520px) {
  .brand { font-size: 1.02rem; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .btn-sm { padding: 8px 14px; font-size: .9rem; }
}

#error-summary, .field, input, select, textarea { scroll-margin-top: 6rem; }
section[id] { scroll-margin-top: 5rem; }

.sec-tint .sec-head { margin-bottom: 0; }
