* {
  box-sizing: border-box;
}

.demo-content {
  min-height: 260px;
  padding: 48px clamp(24px, 6vw, 80px);
  font-family: system-ui, sans-serif;
}

.hackclub-footer {
  --footer-bg: #ffffff;
  --grid-line: rgba(23, 21, 29, 0.07);
  --paper: #17151d;
  --muted: rgba(23, 21, 29, 0.68);
  position: relative;
  overflow: visible;
  padding: 96px clamp(24px, 6vw, 80px) 68px;
  background-color: var(--footer-bg);
  background-image:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* White mode only: keep the light artwork and hide dark-mode controls. */
.footer-art {
  position: absolute;
  z-index: 0;
  right: -10px;
  top: 17vh;
  width: clamp(340px, 30vw, 680px);
  height: auto;
  transform: translateY(-40.5%);
  pointer-events: none;
  border-bottom-left-radius: 10vh;
}

.kittens {
  position: absolute;
  z-index: 0;
  left: 10px;
  top: -8vh;
  width: clamp(340px, 30vw, 680px);
  height: auto;
  transform: translateY(-40.5%);
  pointer-events: none;
  border-bottom-left-radius: 10vh;
}

.footer-art-dark,
.footer-art-light + .footer-art-dark,
.theme-toggle {
  display: none !important;
}

.footer-art-light {
  display: block;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 72px;
  margin-bottom: 72px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  width: 320px;
  flex-shrink: 0;
}

.brand {
    position: absolute;
    bottom: -10vh;
    right: 3vw;
  display: inline-block;
  width: max-content;
  margin: 0 0 32px;
}

/* Larger logo, scoped to the footer only. */
.footer-brand .brand img {
  display: block;
  width: 130px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.tagline,
.phone {
  font-size: 22px;
  line-height: 1.25;
}

.tagline {
  margin: 0 0 10px;
}

.phone {
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
  margin: 0 0 36px;
}

.phone small {
  font-size: 0.82em;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 12px;
}

.social {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--paper);
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.15s, transform 0.15s;
}



.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-group {
  min-width: 140px;
}

.footer-group h2 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 16px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-group a {
  display: inline-block;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(23, 21, 29, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.footer-bottom a {
  color: var(--paper);
  text-underline-offset: 2px;
}

.social:hover,
.footer-group a:hover {
  opacity: 0.6;
}

.social:hover {
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .hackclub-footer {
    padding-top: 72px;
  }

  .footer-art {
    width: clamp(300px, 72vw, 520px);
    transform: translateY(-28%);
  }

  .footer-main {
    gap: 44px;
    margin-bottom: 52px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-brand .brand img {
    width: min(320px, 88vw);
  }

  .footer-links {
    gap: 36px;
  }

  .footer-bottom {
    display: block;
  }
}

body {
  margin: 0;
}

footer text,
footer p,
footer h1,
footer h2,
footer h3,
footer button,
footer input[type="email"]::placeholder {
    font-family: "MyFont", sans-serif !important;
}