/* =========================================================
   JSRay site · footer
   Shared by index.html and studio.html. Both pages carry the
   footer markup inline so the local demo/ files look the same
   as the deployed site, but the styling lives here once.

   Colors follow the page convention: body[data-theme] switches,
   opacity carries hierarchy, 1px inset lines instead of heavy
   borders.
   ========================================================= */

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 48px;
  font: 13px/1.7 -apple-system, "PingFang SC", "Helvetica Neue",
        "Segoe UI", sans-serif;
}
body[data-theme="dark"]  .site-footer { border-top: 1px solid #1F1F23; }
body[data-theme="light"] .site-footer { border-top: 1px solid #E4E4E7; }

.site-footer__brand { margin-bottom: 32px; }
.site-footer__name {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 6px;
}
.site-footer__tagline {
  margin: 0;
  opacity: 0.6;
  font-size: 13.5px;
}

/* auto-fit rather than a fixed count: the columns reflow to two,
   then one, without a media query per breakpoint. */
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 24px;
}

.site-footer__col h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
}
.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__col li { margin-bottom: 7px; }

.site-footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
  border-bottom: 1px solid transparent;
  transition: opacity 150ms ease, border-color 150ms ease;
}
.site-footer a:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}

.site-footer code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
}

/* Integrations that have not shipped yet are listed but not linked:
   docs/projects.md says no route is published before the product
   behind it exists, and a footer link to a 404 is exactly that. */
.site-footer__soon {
  opacity: 0.4;
  cursor: default;
}
.site-footer__soon .tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 6px;
  opacity: 0.75;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  font-size: 12.5px;
  opacity: 0.55;
}
body[data-theme="dark"]  .site-footer__base { border-top: 1px solid #1F1F23; }
body[data-theme="light"] .site-footer__base { border-top: 1px solid #E4E4E7; }

.site-footer__base p { margin: 0; }

@media (max-width: 640px) {
  .site-footer { padding: 40px 20px 36px; }
  .site-footer__base { justify-content: flex-start; }
}
