/* ── Site footer (footer#footer.v3-foot) ──
   One footer on every page: the markup lives in partials/footer.html and is
   copied into each page by scripts/sync-footer.mjs. These rules moved here
   from site-v3.css (plus the home page's inline mono-span colour) so pages
   that do not load site-v3.css render the same footer. Everything is scoped
   under .v3-foot; tokens fall back to the home page values when a page does
   not define them.

   The guard block resets what page-level element rules elsewhere on the site
   would otherwise push into the footer: the blog/legal pages style every
   <nav> as the old sticky header bar (padding, background, border), and the
   /demo page sets display faces, nav-link padding/underline and a condensed
   heading stretch globally. */

.v3-foot {
  /* the footer's own faces: /demo defines --display and --mono as system
     stacks for its body, which must not reach the footer */
  --display: "Bebas Neue", Impact, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  background: var(--v3-black, #080808);
  color: #BDBDBD;
  padding: 0 var(--v3-gutter, clamp(20px, 2.6vw, 36px)) 32px;
  border-top: 1px solid #1A1A1A;
  /* the home body's type, so the footer reads the same on every page */
  font-family: var(--sans, "DM Sans", system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

/* ---------- guard against page-level element rules ---------- */
.v3-foot,
.v3-foot *,
.v3-foot *::before,
.v3-foot *::after { box-sizing: border-box; }
.v3-foot nav.v3-foot__nav {
  position: static;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  align-items: normal;
  justify-content: normal;
  transition: none;
}
.v3-foot .v3-foot__nav h3 { font-stretch: normal; line-height: inherit; }
.v3-foot .v3-foot__nav a {
  padding: 0;
  border: 0;
  letter-spacing: normal;
  text-transform: none;
  transition: none;
}

/* ---------- footer ---------- */
.v3-foot .v3-foot__in { max-width: 1320px; margin: 0 auto; }
.v3-foot .v3-foot__demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0; border-bottom: 1px solid #1E1E1E; }
.v3-foot .v3-foot__demo p { margin: 0; font-family: var(--display, "Bebas Neue", Impact, sans-serif); font-size: 28px; line-height: 1; text-transform: uppercase; color: #F2F2F2; }
.v3-foot .v3-foot__demo div { display: flex; flex-wrap: wrap; gap: 10px; }
.v3-foot .v3-foot__btn {
  padding: 12px 20px;
  border: 1px solid #333;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F2F2F2;
}
.v3-foot .v3-foot__btn--green { border-color: var(--v3-green, #33D69F); background: var(--v3-green, #33D69F); color: var(--v3-green-ink, #06140E); }
.v3-foot .v3-foot__btn:hover { border-color: #F2F2F2; }
.v3-foot .v3-foot__btn--green:hover { color: var(--v3-green-ink, #06140E); filter: brightness(1.05); }
.v3-foot .v3-foot__main { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px 64px; padding: 56px 0 44px; }
.v3-foot .v3-foot__logo { display: inline-flex; }
/* the live footer logo, at the live footer size */
.v3-foot .v3-foot__logo img { display: block; width: 160px; height: 80px; }
.v3-foot .v3-foot__brand p { margin: 20px 0 0; font-family: var(--sans, "DM Sans", system-ui, sans-serif); font-size: 14px; line-height: 1.6; color: #A8A8A8; }
.v3-foot .v3-foot__brand .v3-foot__mono { margin-top: 18px; font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace); font-size: 11px; color: #8A8A8A; }
/* light neutral on the dark band (was the home page's inline override of a blue) */
.v3-foot .v3-foot__mono span { color: #E8E8E8; }
.v3-foot .v3-foot__nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; }
.v3-foot .v3-foot__nav h3 { margin: 0 0 16px; font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #8A8A8A; }
.v3-foot .v3-foot__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.v3-foot .v3-foot__nav li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.v3-foot .v3-foot__nav a { font-family: var(--sans, "DM Sans", system-ui, sans-serif); font-size: 13.5px; line-height: 1.4; color: #C8C8C8; text-decoration: none; }
.v3-foot .v3-foot__nav a:hover { color: #fff; }
.v3-foot .v3-foot__note { margin: 0 0 16px; font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace); font-size: 11px; letter-spacing: 0.08em; color: #A8A8A8; }
.v3-foot .v3-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding-top: 20px; border-top: 1px solid #1E1E1E; }
.v3-foot .v3-foot__legal p { margin: 0; font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace); font-size: 11px; color: #8A8A8A; }
.v3-foot .v3-foot__legal a { font-family: var(--mono, "JetBrains Mono", ui-monospace, monospace); font-size: 11px; color: #C8C8C8; text-decoration: none; }
@media (max-width: 1099px) {
  .v3-foot .v3-foot__main { grid-template-columns: minmax(0, 1fr); }
  .v3-foot .v3-foot__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .v3-foot { padding-bottom: 96px; }
  .v3-foot .v3-foot__demo div { flex-direction: column; width: 100%; }
  .v3-foot .v3-foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
