/* ── Shared header ──────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: calc(var(--space) * 1.5) var(--space); }
header { padding-top: max(env(safe-area-inset-top), 16px); text-align: center; }

.hero { display: grid; place-items: center; row-gap: 18px; }
.hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Shared footer ──────────────────────────────────────────────────────── */
footer {
  margin-top: clamp(28px, 6vw, 70px);
  background: linear-gradient(0deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,.06);
}
.ig-wrap { padding: clamp(20px, 5vw, 36px) var(--space) calc(var(--space) * 2); text-align: center; }
footer h2 { color: var(--accent); margin: 0 0 16px; }
.ig-grid {
  display: flex; gap: 12px; justify-content: center; align-items: stretch;
  flex-wrap: nowrap; max-width: var(--container); margin: 0 auto;
  overflow-x: auto; scroll-snap-type: x proximity;
}
.ig-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.06);
  padding: 12px 14px; border-radius: calc(var(--radius) - 6px);
  transition: background .25s ease, transform .08s ease;
  min-height: 52px; scroll-snap-align: start;
  color: inherit; text-decoration: none;
}
.ig-item:hover { background: #1f2125; }
.ig-item:active { transform: translateY(1px); }
.ig-item img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.handle { font-size: 16px; }

.footer-cta {
  margin-top: 24px;
  font-size: clamp(14px, 2.2vw, 16px);
  color: var(--muted);
}
.footer-cta a {
  color: var(--accent-2);
  text-decoration: underline;
}
.footer-copy {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.25);
}

@media (max-width: 600px) {
  .ig-grid { flex-direction: column; flex-wrap: nowrap; overflow-x: clip; }
  .ig-item { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ig-item { transition: none; } }
