*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-center: #ffffff;
  --bg-edge: #f8f9fa;
  --text-muted: #7b8494;
  --text-subtle: #98a1b0;
  --text-hover: #111827;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, var(--bg-center) 0%, var(--bg-center) 52%, var(--bg-edge) 100%);
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  cursor: pointer;
}

#weave-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeInStage 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInStage {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0 28px calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: fadeInFooter 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tribute-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  max-width: 960px;
  pointer-events: auto;
  user-select: text;
}

.tribute-lead {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.38;
  color: #475569;
}

.tribute-lead .date {
  color: #64748b;
  white-space: nowrap;
}

.tribute-south {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.26rem, 1.85vw, 1.62rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.3;
  color: #0f172a;
}

.divider {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.22), transparent);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: #64748b;
  pointer-events: auto;
}

.copyright {
  white-space: nowrap;
  color: #64748b;
}

.dot {
  opacity: 0.45;
}

.links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.links a:hover,
.links a:focus-visible {
  color: #0f172a;
  transform: translateY(-1px);
  outline: none;
}

.icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .footer {
    padding: 0 24px calc(32px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }

  .tribute-wrap {
    gap: 8px;
    max-width: 340px;
  }

  .tribute-lead {
    font-size: 1.18rem;
    line-height: 1.42;
    color: #334155;
  }

  .tribute-south {
    font-size: 1.38rem;
    line-height: 1.28;
    color: #0f172a;
  }

  .meta {
    flex-direction: column-reverse;
    font-size: 0.82rem;
    gap: 10px;
  }

  .dot {
    display: none;
  }

  .links {
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .links a {
    padding: 6px 4px;
    color: #334155;
  }

  .copyright {
    font-size: 0.74rem;
    color: #94a3b8;
  }
}
