/* ============================================================
   footer.css — sitewide universal footer (v2 .v2-foot)
   Source markup lives in components/footer.html and is baked into
   every page at build time by build/apply-footer.mjs.
   Tokens read from the site's design system; every var() carries a
   dark fallback so the footer renders even before tokens load.
   ============================================================ */

/* declared here historically and shared with home-v4.css; keep it */
:root { --v4-moonface: #fffaf0; }

.v2-foot {
  margin-top: clamp(32px, 6vh, 64px);
  border-top: 1px solid var(--line-soft, rgba(214, 193, 140, .08));
  background: var(--ink-2, #131523);
  padding: 56px clamp(20px, 5vw, 48px) 48px;
}
.v2-foot .fwrap { max-width: var(--maxw, 1280px); margin: 0 auto; }

/* brand + blurb */
.v2-foot .fbrand {
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 1.15rem;
  color: var(--moon, #f6efd8);
  margin-bottom: 6px;
}
.v2-foot .fbrand b { color: var(--accent, #d6c18c); font-weight: 500; }
.v2-foot .fblurb {
  color: var(--muted, #adaec2);
  font-size: .86rem;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 0 28px;
}

/* pillar columns */
.v2-foot .fcols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px 32px;
  margin-bottom: 26px;
}
.v2-foot h4 {
  font-family: var(--mono, ui-monospace, "SFMono-Regular", monospace);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent, #d6c18c);
  margin: 0 0 10px;
}
.v2-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v2-foot a {
  color: var(--muted, #adaec2);
  font-size: .86rem;
  line-height: 1.7;
  text-decoration: none;
  transition: color var(--dur-fast, .18s) ease;
}
.v2-foot a:hover { color: var(--moon, #f6efd8); }
.v2-foot a:focus-visible {
  outline: 2px solid var(--brass-bright, #efe2b4);
  outline-offset: 2px;
  border-radius: var(--r-1, 8px);
}

/* entity band: every sign, every year */
.v2-foot .fent {
  border-top: 1px solid var(--line-soft, rgba(214, 193, 140, .08));
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .v2-foot .fent { grid-template-columns: 1fr 1fr; }
}
.v2-foot .fent-grid {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px 16px;
}
.v2-foot .fent-grid a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: .82rem;
}
.v2-foot .fent-grid .g {
  color: var(--accent, #d6c18c);
  min-width: 1.1em;
  text-align: center;
}

/* legal / disclaimer note */
.v2-foot .fnote {
  color: var(--faint, #7f8096);
  font-size: .72rem;
  line-height: 1.6;
  margin: 26px 0 0;
  max-width: 74ch;
}

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