/* ═══════════════════════════════════════════════
   brand.css — Unified Branding for Mellow Math
   Shared by all interactive chapters
   ═══════════════════════════════════════════════ */

/* ─── Footer ─── */
footer {
  padding: 2rem 2rem 3rem;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.footer-rule {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}

.footer-attr {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
}

.footer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #edeef2;
  letter-spacing: -0.01em;
}

.footer-inst {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: #5c6178;
  letter-spacing: 0.01em;
}

.footer-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #d4a853;
  text-decoration: none;
  margin-top: 0.25rem;
  display: inline-block;
  letter-spacing: 0.08em;
}

.footer-url:hover {
  text-decoration: underline;
}

/* ─── Floating badge ─── */
.floating-badge {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 10000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #8db830;
  background: transparent;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s, transform 0.25s;
  text-shadow: 0 0 6px rgba(141, 184, 48, 0.4), 0 0 16px rgba(141, 184, 48, 0.15);
}

.floating-badge:hover {
  color: #a8d43a;
  text-shadow: 0 0 8px rgba(141, 184, 48, 0.65), 0 0 22px rgba(141, 184, 48, 0.28);
  transform: translateY(-1px);
}
