[x-cloak] {
  display: none !important;
}

/* Day and night: two small moons in the upper corner, where theme
   switches live. The chosen moon wears a halo in its own tone. */
.theme-switch {
  align-items: center;
  display: flex;
  gap: 0.25rem;
  position: fixed;
  right: 2.5rem;
  top: 1.5rem;
  z-index: 10;
}

.theme-switch button {
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0;
  padding: 0.25rem;
}

/* The moons keep their own absolute colors in every theme: day is
   always paper, night is always ink */
.theme-switch .moon {
  border: 1px solid #5f594e;
  border-radius: 50%;
  display: block;
  height: 0.7rem;
  opacity: 0.6;
  transition: opacity 0.15s, transform 0.15s;
  width: 0.7rem;
}

.theme-switch .moon-light {
  background: #f1f0e9;
}

.theme-switch .moon-dark {
  background: #44403c;
}

/* Identity lives in the fill (hollow day, solid night); selection
   speaks through presence: the chosen moon full and slightly grown */
.theme-switch button[aria-pressed='true'] .moon {
  opacity: 1;
  transform: scale(1.25);
}

.error-page {
  text-align: center;
  padding: var(--spacing-3xl) 0;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.error-message {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
}

.error-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.error-link:hover {
  color: var(--color-accent-hover);
}
