@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #050505;
  --text-main: #e0e0e0;
  --text-muted: #666666;
  --accent: #ffffff;
  --ui-bg: rgba(5, 5, 5, 0.8);
  --ui-border: rgba(255, 255, 255, 0.1);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  overflow: hidden;
  background-color: var(--bg);
  font-family: 'Space Mono', monospace;
  color: var(--text-main);
  user-select: none;
  -webkit-user-select: none;
}

body.gallery-active .landing-shell,
body.gallery-active .landing-vignette,
body.gallery-active #landing-canvas {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#landing-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#landing-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.landing-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.92) 0%, rgba(4, 5, 7, 0.82) 28%, rgba(4, 5, 7, 0.18) 58%, rgba(4, 5, 7, 0.48) 100%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.18) 0%, rgba(4, 5, 7, 0) 24%, rgba(4, 5, 7, 0.5) 100%);
}

.landing-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 1.4rem;
  display: grid;
  grid-template-rows: 1fr auto;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.landing-note,
.landing-footer {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-learn-more,
.landing-action,
.landing-footer a {
  pointer-events: auto;
}

.landing-footer,
.landing-note {
  color: var(--text-muted);
}

.landing-main {
  display: flex;
  align-items: flex-end;
}

.landing-copy {
  pointer-events: auto;
  max-width: 32rem;
  margin-bottom: 3.8rem;
  padding: 0;
}

.landing-title {
  margin-top: 0;
  font-size: clamp(1.55rem, 4.3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.42);
}

.landing-deck {
  margin-top: 0.9rem;
  max-width: 23rem;
  color: #9ba1aa;
  font-size: 0.84rem;
  line-height: 1.9;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.38);
}

.landing-learn-more {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-decoration: underline;
  cursor: pointer;
}

.landing-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.landing-artwork {
  margin-top: 1.35rem;
  max-width: 24rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.28);
}

.landing-artwork-kicker {
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-artwork-title {
  margin-top: 0.45rem;
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.55;
}

.landing-artwork-credit {
  margin-top: 0.2rem;
  color: #8a919a;
  font-size: 0.76rem;
  line-height: 1.7;
}

.landing-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ui-border);
  color: var(--text-main);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
}

.landing-action:hover {
  background: var(--text-main);
  color: var(--bg);
}

.landing-action.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.landing-note {
  margin-top: 0.85rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

.landing-footer {
  align-items: center;
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .landing-shell {
    min-height: auto;
    gap: 3rem;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-copy {
    margin-bottom: 0;
  }
}
