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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #c9e4f2;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.75rem 2rem;
}

.overlay-left,
.overlay-links {
  pointer-events: auto;
}

.name {
  font-family: "Caveat", cursive;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: #3d6d88;
  letter-spacing: 0.02em;
  line-height: 1;
}

.tagline {
  margin-top: 0.15rem;
  margin-left: 0.45rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a8fad;
  letter-spacing: 0.04em;
}

.overlay-links {
  display: flex;
  gap: 1.25rem;
  font-family: "Caveat", cursive;
}

.overlay-links a {
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  color: #3d6d88;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.overlay-links a:hover {
  color: #2a5268;
  opacity: 0.85;
}

body.night-mode {
  background: #142438;
}

body.night-mode .name,
body.night-mode .tagline,
body.night-mode .overlay-links a {
  color: #dbeef7;
}

body.night-mode .tagline {
  color: rgba(219, 238, 247, 0.82);
}

body.night-mode .overlay-links a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .overlay {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }
}
