/* Tribute — In Memory of Charlie Kirk / Vol. II */

:root {
  --ink: #05070d;
  --text: #f7f8fb;
  --muted: #b7c0d1;
  --subtle: #7e8ba1;
  --gold: #ffd700;
  --gold-soft: #ffe48a;
}

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

html,
body {
  height: 100%;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family:
    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 18%,
    #000 82%,
    transparent
  );
}

a {
  color: inherit;
}

::selection {
  background: rgba(255, 215, 0, 0.28);
  color: var(--text);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255, 215, 0, 0.1), transparent);
}

.glow-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    rgba(255, 255, 255, 0.5),
    var(--gold),
    transparent
  );
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.38);
  pointer-events: none;
}

.memorial-back {
  position: fixed;
  top: 1.4rem;
  left: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.memorial-back:hover,
.memorial-back:focus-visible {
  color: var(--gold);
}

.memorial-series-label {
  position: fixed;
  top: 1.55rem;
  right: 1.5rem;
  z-index: 100;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.memorial-stage {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 6rem 1.5rem;
}

.memorial-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(720px, 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.memorial-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.memorial-eyebrow {
  color: var(--gold-soft);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}

.memorial-rule {
  width: min(300px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.28);
  margin-bottom: 1.75rem;
}

.memorial-rule-lower {
  margin-top: 0;
  margin-bottom: 2rem;
}

.memorial-name {
  color: var(--gold);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-shadow:
    0 0 80px rgba(255, 215, 0, 0.2),
    0 24px 72px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.1rem;
}

.memorial-dates {
  color: var(--muted);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}

.memorial-context {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.82;
  text-align: left;
  margin-bottom: 1rem;
}

.memorial-context:last-of-type {
  margin-bottom: 0;
}

.memorial-role {
  color: var(--subtle);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.memorial-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.65rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
  margin-bottom: 1.85rem;
}

.memorial-return:hover,
.memorial-return:focus-visible {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.memorial-attribution {
  color: var(--subtle);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.memorial-attribution a {
  color: var(--gold-soft);
  text-decoration: none;
}

.memorial-attribution a:hover {
  color: var(--gold);
}

.memorial-footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 13, 0.72);
  padding: 2rem 1.5rem;
}

.memorial-footer-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.memorial-sources-label {
  color: var(--gold-soft);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.memorial-sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.memorial-sources-list a {
  color: var(--subtle);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s;
}

.memorial-sources-list a:hover {
  color: var(--gold-soft);
}

@media (max-width: 480px) {
  .memorial-series-label {
    display: none;
  }

  .memorial-stage {
    padding: 5.5rem 1.25rem 4rem;
  }

  .memorial-back {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
